Get a synthetic monitor definition for the given monitor ID
The request produces an application/json
payload.
GET | SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/synthetic/monitors/{monitorId} |
Environment ActiveGateCluster ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/synthetic/monitors/{monitorId} |
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.
The identifier of the monitor.
SyntheticMultiProtocolMonitorDto
objectNetwork Availability monitor.
Monitor description
If true, the monitor is enabled.
The entity id of the monitor.
The frequency of the monitor, in minutes.
The locations to which the monitor is assigned.
The timestamp of the last modification
The name of the monitor.
Outage handling configuration.
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.
BROWSER
HTTP
MULTI_PROTOCOL
THIRD_PARTY
SyntheticMonitorPerformanceThresholdsDto
objectPerformance thresholds configuration.
Performance threshold is enabled (true
) or disabled (false
).
SyntheticMonitorPerformanceThresholdDto
objectThe performance threshold rule.
Aggregation type
AVG
MAX
MIN
Number of most recent non-violating request executions that closes the problem
Number of request executions in analyzed sliding window (sliding window size)
Specify the step's index to which a threshold applies.
Notify if monitor request takes longer than X milliseconds to execute.
Number of violating request executions in analyzed sliding window
SyntheticMultiProtocolMonitorStepDto
objectThe step of a network availability monitor.
The list of constraints which apply to all requests in the step.
Step name.
The properties which apply to all requests in the step.
Request type.
ICMP
TCP
DNS
Target filter.
Target list.
SyntheticMultiProtocolMonitorConstraintDto
objectThe network availability monitor constraint.
The properties of the constraint.
Constraint type.
SyntheticMultiProtocolRequestConfigurationDto
objectThe configuration of a network availability monitor request.
SyntheticMonitorOutageHandlingSettingsDto
objectOutage handling configuration.
Number of consecutive failures for all locations.
Generate a problem and send an alert when the monitor is unavailable at all configured locations.
Number of consecutive failures.
Number of failing locations.
Generate a problem and send an alert when the monitor is unavailable for one or more consecutive runs at any location.
SyntheticTagWithSourceDto
objectThe tag with source of a monitored entity.
The origin of the tag, such as AWS or Cloud Foundry.
Custom tags use the CONTEXTLESS
value.
The key of the tag.
The source of the tag, such as USER, RULE_BASED or AUTO.
AUTO
RULE_BASED
USER
The value of the tag.
{"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"}]},"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"}