Try it free

Synthetic monitors API v2 - Update Synthetic monitor definition

  • Reference

Update Synthetic monitor definition for a given monitor ID.

The method is available only for browser and NAM monitors.

The request consumes an application/json payload.

PUTSaaShttps://{your-environment-id}.live.dynatrace.com/api/v2/synthetic/monitors/{monitorId}
PUTEnvironment ActiveGateCluster ActiveGatehttps://{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.write scope.

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

Parameters

To find all model variations that depend on the type of the model, see JSON models.

ParameterTypeDescriptionInRequired
monitorIdstring

The identifier of the monitor.

pathRequired
bodySyntheticMultiProtocolMonitorRequest | SyntheticBrowserMonitorRequest | SyntheticHttpMonitorRequest

The JSON body of the request. Contains the parameters of the monitor.

bodyRequired

Request body objects

The SyntheticMultiProtocolMonitorRequest object

Network availability monitor.

ElementTypeDescriptionRequired
descriptionstring

Monitor description

Optional
enabledboolean

If true, the monitor is enabled.

Optional
frequencyMininteger

The frequency of the monitor, in minutes. Default value depends on the monitor type (1 minute for MULTI_PROTOCOL and HTTP, 15 minutes for BROWSER).

Optional
locationsstring[]

The locations to which the monitor is assigned.

Required
namestring

The name of the monitor.

Required
performanceThresholdsSyntheticMonitorPerformanceThresholdsDto

Performance thresholds configuration.

Optional
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.

Optional
securityContextstring[]

[FEATURE DISABLED] Security context as a list of strings. Up to 10 values, max 200 characters per value. Those fields are only available for SaaS and not for Managed.

Optional
stepsSyntheticMultiProtocolMonitorStepDto[]

The steps of the monitor.

Required
syntheticMonitorOutageHandlingSettingsSyntheticMonitorOutageHandlingSettingsDto

Outage handling configuration.

Optional
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.

Optional
typestring

Monitor type.

The element can hold these values
  • MULTI_PROTOCOL
  • BROWSER
  • HTTP
Required

The SyntheticMonitorPerformanceThresholdsDto object

Performance thresholds configuration.

ElementTypeDescriptionRequired
enabledboolean

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

Required
thresholdsSyntheticMonitorPerformanceThresholdDto[]

The list of performance threshold rules.

Optional

The SyntheticMonitorPerformanceThresholdDto object

The performance threshold rule.

ElementTypeDescriptionRequired
aggregationstring

Aggregation type

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

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

Optional
samplesinteger

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

Optional
stepIndexinteger

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

Optional
thresholdnumber

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

Required
typestring

Type of performance threshold.

The element can hold these values
  • MONITOR
  • STEP
Optional
violatingSamplesinteger

Number of violating request executions in analyzed sliding window.

Optional

The SyntheticMonitorPrimaryGrailTagDto object

Primary grail tag key-value pair.

ElementTypeDescriptionRequired
keystring

Tag key.

Required
valuestring

Tag value.

Required

The SyntheticMultiProtocolMonitorStepDto object

The step of a network availability monitor.

ElementTypeDescriptionRequired
constraintsSyntheticMonitorConstraintDto[]

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

Required
namestring

Step name.

Required
propertiesobject

The properties which apply to all requests in the step.

Required
requestConfigurationsSyntheticMultiProtocolRequestConfigurationDto[]

Request configurations.

Required
requestTypestring

Request type.

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

Target filter.

Optional
targetListstring[]

Target list.

Optional

The SyntheticMonitorConstraintDto object

Synthetic monitor constraint. The allowed type and properties depend on the monitor and step/request context.

ElementTypeDescriptionRequired
propertiesobject

Constraint properties. Most constraint types use operator and value keys. Some protocol-specific constraints may use additional keys, for example DNS_STATUS_CODE can use status.

Required
typestring

Constraint type. Allowed values depend on monitor type and step/request context. HTTP monitor step constraints: HTTP_STATUSES, HTTP_RESPONSE_PATTERN, HTTP_RESPONSE_REGEX. Network availability monitor(MULTI_PROTOCOL) step constraints: SUCCESS_RATE_PERCENT. Network availability monitor(MULTI_PROTOCOL) request configuration constraints are request-type specific, for example ICMP_SUCCESS_RATE_PERCENT (ICMP) and DNS_STATUS_CODE (DNS).

Required

The SyntheticMultiProtocolRequestConfigurationDto object

The configuration of a network availability monitor request.

ElementTypeDescriptionRequired
constraintsSyntheticMonitorConstraintDto[]

Request constraints.

Required

The SyntheticMonitorOutageHandlingSettingsDto object

Outage handling configuration.

ElementTypeDescriptionRequired
globalConsecutiveOutageCountThresholdinteger

Number of consecutive failures for all locations.

Optional
globalOutagesboolean

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

Required
localConsecutiveOutageCountThresholdinteger

Number of consecutive failures.

Optional
localLocationOutageCountThresholdinteger

Number of failing locations.

Optional
localOutagesboolean

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

Required
originstring

Indicates the origin of these settings.

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

Only Browser Monitor property. If set to true, execution retry will take place in case the monitor fails.

Optional

The SyntheticTagWithSourceDto object

The tag with source of a monitored entity.

ElementTypeDescriptionRequired
contextstring

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

Custom tags use the CONTEXTLESS value.

Optional
keystring

The key of the tag.

Required
sourcestring

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

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

The value of the tag.

Optional

The SyntheticBrowserMonitorRequest object

Browser monitor update.

ElementTypeDescriptionRequired
configurationSyntheticBrowserMonitorConfigurationDto

Browser Monitor configuration.

Required
descriptionstring

Monitor description

Optional
enabledboolean

If true, the monitor is enabled.

Optional
frequencyMininteger

The frequency of the monitor, in minutes. Default value depends on the monitor type (1 minute for MULTI_PROTOCOL and HTTP, 15 minutes for BROWSER).

Optional
keyPerformanceMetricsKeyPerformanceMetrics

The key performance metrics configuration.

Optional
locationsstring[]

The locations to which the monitor is assigned.

Required
manuallyAssignedEntitiesstring[]

Manually assigned entities.

Optional
namestring

The name of the monitor.

Required
performanceThresholdsSyntheticMonitorPerformanceThresholdsDto

Performance thresholds configuration.

Optional
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.

Optional
securityContextstring[]

[FEATURE DISABLED] Security context as a list of strings. Up to 10 values, max 200 characters per value. Those fields are only available for SaaS and not for Managed.

Optional
stepsSyntheticBrowserMonitorStepDto[]

The steps of the monitor.

Required
syntheticMonitorOutageHandlingSettingsSyntheticMonitorOutageHandlingSettingsDto

Outage handling configuration.

Optional
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.

Optional
typestring

Monitor type.

The element can hold these values
  • MULTI_PROTOCOL
  • BROWSER
  • HTTP
Required

The SyntheticBrowserMonitorConfigurationDto object

Browser Monitor configuration.

ElementTypeDescriptionRequired
blockedRequestsstring[]

All requests matching the specified patterns will be blocked during the execution of the monitor.

Optional
browserPermissionsBrowserPermissionsDto

Permissions settings for browser.

Optional
bypassCSPboolean

Bypass ContentSecurity Policy for monitored pages. If not defined in request, it will be set to false by default.

Optional
chromiumStartupFlagsChromiumStartupFlagsDto

Chromium startup flags of a Browser Monitor.

Optional
clientCertificatesClientCertificateDto[]

Identifier of stored client's certificate.

Optional
cookiesSyntheticMonitorCookieDto[]

Cookies list.

Optional
deviceTestDeviceDto

Test device of a Browser Monitor.

Required
enablementEnablementDto

Browser monitor enablement settings.

Optional
experimentalPropertiesMonitorPropertyDto[]

Experimental properties list.

Optional
filteredRequestsFilteredRequestsDto

Filtered requests of a Browser Monitor.

Optional
ignoredErrorCodesIgnoredErrorCodesDto

Ignored Error Codes of a Browser Monitor.

Optional
javaScriptSettingsJavaScriptAgentSettingsDto

JavaScript Agent Settings.

Optional
monitorFramesboolean

Capture performance metrics for pages loaded in frames. If not defined in request, it will be set to false by default.

Optional
networkThrottlingNetworkThrottlingDto

Network throttling of a Browser Monitor.

Optional
proxyProxyDto

Browser Monitor proxy.

Optional
requestHeaderOptionsRequestHeaderOptionsDto

Header Options of a Browser Monitor.

Optional
useIESupportedAgentboolean

useIESupportedAgent flag. If not defined in request, it will be set to false by default.

Optional
userAgentstring

User agent

Optional

The BrowserPermissionsDto object

Permissions settings for browser.

ElementTypeDescriptionRequired
cameraboolean

Camera permission. If not defined in request, it will be set to false by default.

Optional
locationboolean

Location permission. If not defined in request, it will be set to false by default.

Optional
microphoneboolean

Microphone permission. If not defined in request, it will be set to false by default.

Optional
notificationsboolean

Notifications permission. If not defined in request, it will be set to false by default.

Optional

The ChromiumStartupFlagsDto object

Chromium startup flags of a Browser Monitor.

ElementTypeDescriptionRequired
autoplay-policystring

autoplay-policy type.

The element can hold these values
  • no-user-gesture-required
  • document-user-activation-required
Optional
disable-featuresobject

disable-features map

Optional
disable-site-isolation-trialsboolean

disable-site-isolation-trials flag.

Optional
disable-web-securityboolean

disable-web-security flag. If no value is passed, it will be set to false by default.

Optional
host-resolver-rulesstring

host-resolver-rules.

Optional
ignore-certificate-errorsboolean

ignore-certificate-errors flag.

Optional
ssl-version-maxstring

ssl-version-max.

Optional
ssl-version-minstring

ssl-version-min.

Optional
test-typeboolean

test-type flag.

Optional

The ClientCertificateDto object

Client certificate.

ElementTypeDescriptionRequired
credentialIdstring

Certificate CV id.

Required
domainstring

Domain certificate will be applied to.

Required

The SyntheticMonitorCookieDto object

Cookie dto for Synthetic Monitor step.

ElementTypeDescriptionRequired
domainstring

Cookie domain.

Required
namestring

Cookie name.

Required
pathstring

Cookie path.

Optional
valuestring

Cookie value.

Required

The TestDeviceDto object

Test device of a Browser Monitor.

ElementTypeDescriptionRequired
heightinteger

Device height in px.

Required
mobileboolean

Device is mobile. If not defined in request, it will be set to false by default.

Optional
namestring

Device name.

Required
touchEnabledboolean

Device is touch enabled. If not defined in request, it will be set to false by default.

Optional
widthinteger

Device width in px.

Required

The EnablementDto object

Browser monitor enablement settings.

ElementTypeDescriptionRequired
enableOnGrailboolean

Enable 3rd gen JS agent reporting. Relevant only for grail-enabled SaaS environments.

Required
originstring

Indicates the origin of these settings.

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

The MonitorPropertyDto object

Property of a Browser Monitor.

ElementTypeDescriptionRequired
namestring

Property name.

Required
valuestring

Property value.

Required

The FilteredRequestsDto object

Filtered requests of a Browser Monitor.

ElementTypeDescriptionRequired
modestring

Filter mode for filtered requests.

The element can hold these values
  • BLOCK
  • ALLOW
Required
requestsRequestFilterDto[]

Requests to be filtered.

Required

The RequestFilterDto object

Request filter for Browser Monitor.

ElementTypeDescriptionRequired
matchingPatternstring

Regex for request that filter will be applied to.

Required
typestring

Filter type.

The element can hold these values
  • STARTS_WITH
  • ENDS_WITH
  • CONTAINS
  • EQUALS
  • REGEX
Required

The IgnoredErrorCodesDto object

Ignored Error Codes of a Browser Monitor.

ElementTypeDescriptionRequired
matchingDocumentRequestsstring

Ignoring status codes will be applied to requests matching pattern.

Optional
statusCodesstring

Status codes to be ignored.

Optional

The JavaScriptAgentSettingsDto object

JavaScript Agent Settings.

ElementTypeDescriptionRequired
customPropertiesstring

Custom configuration properties

Optional
experimentalValuesboolean

Experimental values support. If not defined in request, it will be set to false by default.

Optional
fetchRequestsboolean

Capture fetch() requests. If not defined in request, it will be set to true by default.

Optional
javaScriptErrorsboolean

Enable this setting to monitor JavaScript errors. The window.onError handler is used for capturing JavaScript errors. If not defined in request, it will be set to true by default.

Optional
javaScriptFrameworkSupportFrameworkOptionsDto

JS framework options of a JS Agent.

Optional
timedActionsboolean

Within JavaScript frameworks, XHRs are often sent via setTimeout methods. Enable this setting to detect actions that trigger such XHRs. If not defined in request, it will be set to true by default.

Optional
timeoutSettingsTimeoutSettingsDto

Timeout settings of a Browser Monitor.

Optional
visuallyCompleteOptionsVisuallyCompleteOptionsDto

Visually Complete Options of a Browser Monitor.

Optional
xmlHttpRequestsboolean

Capture xml Http requests (XHR). If not defined in request, it will be set to true by default.

Optional

The FrameworkOptionsDto object

JS framework options of a JS Agent.

ElementTypeDescriptionRequired
activeXObjectboolean

activeXObject support. If not defined in request, it will be set to false by default.

Optional
angularboolean

Angular support. If not defined in request, it will be set to false by default.

Optional
dojoboolean

Dojo support. If not defined in request, it will be set to false by default.

Optional
extJsboolean

extJs support. If not defined in request, it will be set to false by default.

Optional
icefacesboolean

icefaces support. If not defined in request, it will be set to false by default.

Optional
jQueryboolean

jquery support. If not defined in request, it will be set to false by default.

Optional
mooToolsboolean

mooTools support. If not defined in request, it will be set to false by default.

Optional
prototypeboolean

prototype support. If not defined in request, it will be set to false by default.

Optional

The TimeoutSettingsDto object

Timeout settings of a Browser Monitor.

ElementTypeDescriptionRequired
temporaryActionLimitinteger

Cascading setTimeout calls number limit. If not defined in request, it will be set to 1 by default.

Optional
temporaryActionTotalTimeoutinteger

No additional timeout actions will be created once this time limit is reached. Value must be higher than 0 ms. If not defined in request, it will be set to 100 by default.

Optional

The VisuallyCompleteOptionsDto object

Visually Complete Options of a Browser Monitor.

ElementTypeDescriptionRequired
excludedElementsstring[]

Query CSS selectors to specify mutation nodes (elements that change) to ignore in Visually complete and Speed index calculation.

Optional
excludedUrlsstring[]

Use regular expressions to define URLs for images and iFrames to exclude from detection by the Visually complete module.

Optional
imageSizeThresholdinteger

Use this setting to define the minimum visible area per element (in pixels) for an element to be counted towards Visually complete and Speed index. If not defined in request, it will be set to 50 by default.

Optional
inactivityTimeoutinteger

The time the Visually complete module waits for inactivity and no further mutations on the page after the load action. If not defined in request, it will be set to 1000 by default.

Optional
mutationTimeoutinteger

The time the Visually complete module waits after an XHR or custom action closes to start the calculation. If not defined in request, it will be set to 50 by default.

Optional

The NetworkThrottlingDto object

Network throttling of a Browser Monitor.

ElementTypeDescriptionRequired
downloadinteger

Download throughput. If not defined in request, it will be set to -1 by default.

Optional
latencyinteger

Latency. If not defined in request, it will be set to 0 by default.

Optional
namestring

Predefined network type. If not defined in request, it will be set to "" by default.

Optional
uploadinteger

Upload throughput. If not defined in request, it will be set to -1 by default.

Optional

The ProxyDto object

Browser Monitor proxy.

ElementTypeDescriptionRequired
pacUrlstring

pacUrl

Required

The RequestHeaderOptionsDto object

Header Options of a Browser Monitor.

ElementTypeDescriptionRequired
matchingPatternsstring[]

Apply headers to requests matching pattern.

Required
requestHeadersMonitorRequestHeader[]

Request headers list.

Required

The MonitorRequestHeader object

A header of the Http request

ElementTypeDescriptionRequired
namestring

Header's name.

Required
valuestring

Header's value.

Required

The KeyPerformanceMetrics object

The key performance metrics configuration.

ElementTypeDescriptionRequired
loadActionKpmstring

Load action key performance metric.

The element can hold these values
  • USER_ACTION_DURATION
  • VISUALLY_COMPLETE
  • SPEED_INDEX
  • DOM_INTERACTIVE
  • LOAD_EVENT_START
  • LOAD_EVENT_END
  • RESPONSE_START
  • RESPONSE_END
  • LARGEST_CONTENTFUL_PAINT
  • CUMULATIVE_LAYOUT_SHIFT
Optional
xhrActionKpmstring

XHR action key performance metric.

The element can hold these values
  • USER_ACTION_DURATION
  • VISUALLY_COMPLETE
  • RESPONSE_START
  • RESPONSE_END
Optional

The SyntheticBrowserMonitorStepDto object

Base step of Browser Monitor.

ElementTypeDescriptionRequired
entityIdstring

Entity Id.

Optional
namestring

The name of Browser Monitor step.

Required
typestring

Defines the actual set of fields depending on the value. See one of the following objects:

  • NAVIGATE -> NavigateStepDto
  • CLICK -> InteractionStepDto
  • TAP -> InteractionStepDto
  • KEYSTROKES -> KeyStrokesStepDto
  • JAVASCRIPT -> JavaScriptStepDto
  • SELECT_OPTION -> SelectOptionStepDto
  • COOKIE -> CookieStepDto
The element can hold these values
  • CLICK
  • COOKIE
  • JAVASCRIPT
  • KEYSTROKES
  • NAVIGATE
  • SELECT_OPTION
  • TAP
Required

The SyntheticHttpMonitorRequest object

Http monitor's settings.

ElementTypeDescriptionRequired
advancedSettingsSyntheticHttpMonitorAdvancedDto

Http monitor's settings.

Optional
cookiesSyntheticMonitorCookieDto[]

The cookies of the monitor.

Optional
descriptionstring

Monitor description

Optional
enabledboolean

If true, the monitor is enabled.

Optional
frequencyMininteger

The frequency of the monitor, in minutes. Default value depends on the monitor type (1 minute for MULTI_PROTOCOL and HTTP, 15 minutes for BROWSER).

Optional
locationsstring[]

The locations to which the monitor is assigned.

Required
manuallyAssignedEntitiesstring[]

Manually assigned entities.

Optional
namestring

The name of the monitor.

Required
performanceThresholdsSyntheticMonitorPerformanceThresholdsDto

Performance thresholds configuration.

Optional
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.

Optional
securityContextstring[]

[FEATURE DISABLED] Security context as a list of strings. Up to 10 values, max 200 characters per value. Those fields are only available for SaaS and not for Managed.

Optional
stepsSyntheticHttpMonitorStepDto[]

The steps of the monitor.

Required
syntheticMonitorOutageHandlingSettingsSyntheticMonitorOutageHandlingSettingsDto

Outage handling configuration.

Optional
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.

Optional
typestring

Monitor type.

The element can hold these values
  • MULTI_PROTOCOL
  • BROWSER
  • HTTP
Required

The SyntheticHttpMonitorAdvancedDto object

Http monitor's settings.

ElementTypeDescriptionRequired
connectTimeoutinteger

Connect timeout per request in ms.

Optional
dnsQueryTimeoutinteger

DNS query timeout in ms.

Optional
maxCustomScriptSizeinteger

Maximum size of each pre- or post- execution script size in bytes.

Optional
maxHeaderSizeinteger

Maximum size of each request header in bytes.

Optional
maxRequestBodySizeinteger

Maximum request body size in bytes.

Optional
maxResponseBodyReadByScriptSizeinteger

Maximum size of response body read by post-execution script in bytes.

Optional
maxResponseBodySizeinteger

Maximum response body size in bytes.

Optional
monitorExecutionTimeoutinteger

Monitor execution timeout in ms.

Optional
requestTimeoutinteger

Request timeout in ms.

Optional
scriptExecutionTimeoutinteger

Pre- or post- execution script timeout in ms.

Optional

The SyntheticHttpMonitorStepDto object

The step of a Http monitor.

ElementTypeDescriptionRequired
authenticationSyntheticHttpAuthenticationDto

The Http step's authentication.

Optional
configurationSyntheticHttpConfigurationDto

The Http step's configuration.

Optional
constraintsSyntheticMonitorConstraintDto[]

The list of constraints.

Required
entityIdstring

Entity Id.

Optional
methodTypestring

Method type.

The element can hold these values
  • GET
  • POST
  • PUT
  • DELETE
  • HEAD
  • OPTIONS
  • PATCH
Required
namestring

Step name.

Required
postScriptstring

PostScript.

Optional
preScriptstring

PreScript.

Optional
requestBodystring

Request body.

Optional
requestTimeoutinteger

Request timeout in s.

Optional
urlstring

Step url.

Required

The SyntheticHttpAuthenticationDto object

The Http step's authentication.

ElementTypeDescriptionRequired
credentialsstring

Credential vault identifier.

Required
kdcIpstring

KDC IP in case KERBEROS auth type is selected.

Optional
realmNamestring

Realm name in case KERBEROS type is selected.

Optional
typestring

Authentication type.

The element can hold these values
  • BASIC_AUTHENTICATION
  • NTLM
  • KERBEROS
Required

The SyntheticHttpConfigurationDto object

The Http step's configuration.

ElementTypeDescriptionRequired
acceptAnyCertificateboolean

If true accept any certificate flag.

Optional
clientCertificateIdstring

Identifier of stored client's certificate.

Optional
doNotPersistSensitiveDataboolean

If true the step's data aren't stored and displayed.

Optional
followRedirectsboolean

If true follow redirects.

Optional
headersMonitorRequestHeader[]

The headers.

Optional
sslCertificateExpirationDaysToAlertinteger

Number of days within SSL certificate expires.

Optional

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.

{
"description": "My network availability monitor description",
"enabled": "true",
"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"
}
],
"securityContext": [
"sample security context",
"another security context"
],
"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"
}

Response

Response codes

CodeTypeDescription
204-

Success. Response doesn't have a body.

4XXErrorEnvelope

Client side error.

5XXErrorEnvelope

Server side error.

Response body objects

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

{
"error": {
"code": 1,
"constraintViolations": [
{
"location": "string",
"message": "string",
"parameterLocation": "HEADER",
"path": "string"
}
],
"message": "string"
}
}

Related topics

  • Synthetic Monitoring