Synthetic NAM API v2 - GET synthetic monitor definition

  • Reference
  • Published Jul 08, 2024

Get a synthetic monitor definition for the given monitor ID

The request produces an application/json payload.

GETManagedDynatrace for Governmenthttps://{your-domain}/e/{your-environment-id}/api/v2/synthetic/monitors/{monitorId}
Environment and Cluster ActiveGate (default port 9999)https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/synthetic/monitors/{monitorId}

Authentication

To execute this request, you need an access token with settings.read scope.

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

Parameters

ParameterTypeDescriptionInRequired
monitorIdstring

The identifier of the monitor.

pathRequired

Response

Response codes

CodeTypeDescription
200SyntheticMultiProtocolMonitorResponse

Success

4XXErrorEnvelope

Client side error.

5XXErrorEnvelope

Server side error.

Response body objects

The SyntheticMultiProtocolMonitorResponse object

Network Availability monitor.

ElementTypeDescription
descriptionstring

Monitor description

enabledboolean

If true, the monitor is enabled.

entityIdstring

The entity id of the monitor.

frequencyMininteger

The frequency of the monitor, in minutes.

locationsstring[]

The locations to which the monitor is assigned.

modificationTimestampinteger

The timestamp of the last modification

namestring

The name of the monitor.

performanceThresholdsSyntheticMonitorPerformanceThresholdsDto

Performance thresholds configuration.

primaryGrailTagsSyntheticMonitorPrimaryGrailTagDto[]

Primary Grail tags as a list of key-value pairs. Up to 10 tags. Those fields are only available for SaaS and not for Managed.

stepsSyntheticMultiProtocolMonitorStepDto[]

The steps of the monitor.

syntheticMonitorOutageHandlingSettingsSyntheticMonitorOutageHandlingSettingsDto

Outage handling configuration.

tagsSyntheticTagWithSourceDto[]

A set of tags assigned to the monitor.

You can specify only the value of the tag here and the CONTEXTLESS context and source 'USER' will be added automatically. But preferred option is usage of SyntheticTagWithSourceDto model.

typestring

Monitor type.

The element can hold these values
  • MULTI_PROTOCOL
  • BROWSER

The SyntheticMonitorPerformanceThresholdsDto object

Performance thresholds configuration.

ElementTypeDescription
enabledboolean

Performance threshold is enabled (true) or disabled (false).

thresholdsSyntheticMonitorPerformanceThresholdDto[]

The list of performance threshold rules.

The SyntheticMonitorPerformanceThresholdDto object

The performance threshold rule.

ElementTypeDescription
aggregationstring

Aggregation type

The element can hold these values
  • AVG
  • MAX
  • MIN
dealertingSamplesinteger

Number of most recent non-violating request executions that closes the problem.

samplesinteger

Number of request executions in analyzed sliding window (sliding window size).

stepIndexinteger

Specify the step's index to which a threshold applies. If threshold is monitor-level, no index is needed.

thresholdnumber

Notify if monitor request takes longer than X time units to execute. For Network Availability monitors the time unit is milliseconds, for browser monitors - seconds.

typestring

Type of performance threshold.

The element can hold these values
  • MONITOR
  • STEP
violatingSamplesinteger

Number of violating request executions in analyzed sliding window.

The SyntheticMonitorPrimaryGrailTagDto object

Primary grail tag key-value pair.

ElementTypeDescription
keystring

Tag key.

valuestring

Tag value.

The SyntheticMultiProtocolMonitorStepDto object

The step of a network availability monitor.

ElementTypeDescription
constraintsSyntheticMonitorConstraintDto[]

The list of constraints which apply to all requests in the step.

namestring

Step name.

propertiesobject

The properties which apply to all requests in the step.

requestConfigurationsSyntheticMultiProtocolRequestConfigurationDto[]

Request configurations.

requestTypestring

Request type.

The element can hold these values
  • ICMP
  • TCP
  • DNS
targetFilterstring

Target filter.

targetListstring[]

Target list.

The SyntheticMonitorConstraintDto object

Synthetic monitor constraint.

ElementTypeDescription
propertiesobject

The properties of the constraint.

typestring

Constraint type.

The SyntheticMultiProtocolRequestConfigurationDto object

The configuration of a network availability monitor request.

ElementTypeDescription
constraintsSyntheticMonitorConstraintDto[]

Request constraints.

The SyntheticMonitorOutageHandlingSettingsDto object

Outage handling configuration.

ElementTypeDescription
globalConsecutiveOutageCountThresholdinteger

Number of consecutive failures for all locations.

globalOutagesboolean

Generate a problem and send an alert when the monitor is unavailable at all configured locations.

localConsecutiveOutageCountThresholdinteger

Number of consecutive failures.

localLocationOutageCountThresholdinteger

Number of failing locations.

localOutagesboolean

Generate a problem and send an alert when the monitor is unavailable for one or more consecutive runs at any location.

originstring

Indicates the origin of these settings.

The element can hold these values
  • MONITOR
  • TENANT
  • DEFAULT
  • UNKNOWN

The SyntheticTagWithSourceDto object

The tag with source of a monitored entity.

ElementTypeDescription
contextstring

The origin of the tag, such as AWS or Cloud Foundry.

Custom tags use the CONTEXTLESS value.

keystring

The key of the tag.

sourcestring

The source of the tag, such as USER, RULE_BASED or AUTO.

The element can hold these values
  • AUTO
  • RULE_BASED
  • USER
valuestring

The value of the tag.

The ErrorEnvelope object

ElementTypeDescription
errorError-

The Error object

ElementTypeDescription
codeinteger

The HTTP status code

constraintViolationsConstraintViolation[]

A list of constraint violations

messagestring

The error message

The ConstraintViolation object

A list of constraint violations

ElementTypeDescription
locationstring-
messagestring-
parameterLocationstring-
The element can hold these values
  • HEADER
  • PATH
  • PAYLOAD_BODY
  • QUERY
pathstring-

Response body JSON models

{
"description": "My network availability monitor description",
"enabled": "true",
"entityId": "MULTIPROTOCOL_MONITOR-63653CB579F573D1",
"frequencyMin": "60",
"locations": [
"SYNTHETIC_LOCATION-D3A5BFD8676A4F19"
],
"name": "My network availability monitor",
"performanceThresholds": {
"enabled": "true",
"thresholds": [
{
"aggregation": "AVG",
"dealertingSamples": "5",
"samples": "5",
"stepIndex": "0",
"threshold": "200",
"violatingSamples": "3"
}
]
},
"primaryGrailTags": [
{
"key": "sample key",
"value": "sample value"
},
{
"key": "another sample key",
"value": "another sample value"
}
],
"steps": [
{
"constraints": [
{
"properties": {
"operator": ">=",
"value": "95"
},
"type": "SUCCESS_RATE_PERCENT"
}
],
"name": "Step 1",
"properties": {
"ICMP_IP_VERSION": "4",
"ICMP_NUMBER_OF_PACKETS": "8",
"ICMP_TIMEOUT_FOR_REPLY": "PT1S"
},
"requestConfigurations": [
{
"constraints": [
{
"properties": {
"operator": "=",
"value": "100"
},
"type": "ICMP_SUCCESS_RATE_PERCENT"
}
]
}
],
"requestType": "ICMP",
"targetFilter": "ipMask == 127.0.0.1/24",
"targetList": [
"127.0.0.1",
"127.0.0.2"
]
}
],
"syntheticMonitorOutageHandlingSettings": {
"globalConsecutiveOutageCountThreshold": "1",
"globalOutages": "true",
"localConsecutiveOutageCountThreshold": "3",
"localLocationOutageCountThreshold": "3",
"localOutages": "true"
},
"tags": [
{
"key": "sample key",
"value": "sample value"
},
{
"key": "sample key"
}
],
"type": "MULTI_PROTOCOL"
}
{
"error": {
"code": 1,
"constraintViolations": [
{
"location": "string",
"message": "string",
"parameterLocation": "HEADER",
"path": "string"
}
],
"message": "string"
}
}