• Home
  • Dynatrace API
  • Configuration
  • AWS credentials
  • PUT monitored services

AWS credentials API - PUT monitored services

Updates the list of AWS services that are monitored by an AWS configuration. Note that the request overwrites an existing configuration. Any services that you want to continue monitoring must be presented in the payload.

The request consumes an application/json payload.

PUTManagedDynatrace for Governmenthttps://{your-domain}/e/{your-environment-id}/aws/credentials/{id}/services
SaaShttps://{your-environment-id}.live.dynatrace.com/aws/credentials/{id}/services
Environment ActiveGatehttps://{your-activegate-domain}/e/{your-environment-id}/aws/credentials/{id}/services

Authentication

To execute this request, you need an access token with `WriteConfig` (Write configuration) scope.

To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
idstring

The ID of the AWS credentials to be updated with new monitored services configuration.

pathrequired
bodyAwsMonitoredServicesDto

The JSON body of the request. Contains updated monitored services configuration for AWS credentials.

bodyoptional

Request body objects

The AwsMonitoredServicesDto object

ElementTypeDescriptionRequired
metadataConfigurationMetadata

Metadata useful for debugging

optional
servicesAwsSupportingServiceConfig[]

A list of AWS services to be monitored. Available services are listed by /aws/supportedServices operation.

For each service, a list of metrics and dimensions can be specified. A list of supported metrics and dimensions for a given service can be checked in documentation.

List of metrics can be skipped (set to null), resulting in recommended (default) set of metrics and dimensions being chosen for monitoring. For built-in services, adjusting the list of metrics is not supported, therefore it needs to be null.

required

The ConfigurationMetadata object

Metadata useful for debugging

ElementTypeDescriptionRequired
configurationVersionsinteger[]

A sorted list of the version numbers of the configuration.

optional
currentConfigurationVersionsstring[]

A sorted list of version numbers of the configuration.

optional
clusterVersionstring

Dynatrace version.

optional

The AwsSupportingServiceConfig object

A service to be monitored.

ElementTypeDescriptionRequired
namestring

The name of the service. Valid supported service names can be discovered using /aws/supportedServices restAPI

required
monitoredMetricsAwsSupportingServiceMetric[]

A list of metrics to be monitored for this service. If the list is null then recommended list of metrics for this service will be monitored.

optional

The AwsSupportingServiceMetric object

A metric of service to be monitored.

ElementTypeDescriptionRequired
namestring

The name of the metric of the service.

required
statisticstring

The statistic (aggregation) to be used for the metric. AVG_MIN_MAX value is 3 statistics at once: AVERAGE, MINIMUM and MAXIMUM

The element can hold these values
  • AVERAGE
  • AVG_MIN_MAX
  • MAXIMUM
  • MINIMUM
  • SAMPLE_COUNT
  • SUM
required
dimensionsstring[]

A list of metric's dimensions names.

required

Request body JSON model

This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.

json
{ "metadata": { "configurationVersions": [ 4, 2 ], "currentConfigurationVersions": [ "1.0.4", "1.23" ], "clusterVersion": "1.192.1" }, "services": [ { "name": "string", "monitoredMetrics": [ { "name": "string", "statistic": "AVERAGE", "dimensions": [ "string" ] } ] } ] }

Response

Response codes

CodeTypeDescription
204

Success. The AWS credentials configuration has been updated. Response doesn't have a body.

400ErrorEnvelope

Failed. The input is invalid.

Validate payload

We recommend that you validate the payload before submitting it with an actual request. A response code of 204 indicates a valid payload.

The request consumes an application/json payload.

The request consumes an application/json payload.

POSTManagedDynatrace for Governmenthttps://{your-domain}/e/{your-environment-id}/aws/credentials/{id}/services/validator
SaaShttps://{your-environment-id}.live.dynatrace.com/aws/credentials/{id}/services/validator
Environment ActiveGatehttps://{your-activegate-domain}/e/{your-environment-id}/aws/credentials/{id}/services/validator

Authentication

To execute this request, you need an access token with `WriteConfig` (Write configuration) scope.

To learn how to obtain and use it, see Tokens and authentication.

Response

Response codes

CodeTypeDescription
204

Validated. The submitted configuration is valid. Response doesn't have a body.

400ErrorEnvelope

Failed. The input is invalid.

Related topics
  • Amazon Web Services Integrations

    Integrate Dynatrace on AWS