Create a monitor
Changed onSpaces method and path for this operation:
<div><span class="operation-verb post">post</span> <span class="operation-path">/s/{space_id}/api/synthetics/monitors</span></div>Refer to Spaces for more information.
Create a new monitor with the specified attributes. A monitor can be one of the following types: HTTP, TCP, ICMP, or Browser. The required and default fields may vary based on the monitor type.
You must have all privileges for the Synthetics feature in the Observability section of the Kibana feature privileges.<br/><br/>[Required authorization] Route required privileges: uptime-read AND uptime-write.
Request
- Base URLhttps://localhost:5601
- URLhttps://localhost:5601/api/synthetics/monitors
- Auth
- API key in header Authorization
- or HTTP basic
Query parameters
A custom ID for the new monitor. Generated if omitted.
If true, store the namespace as sent. Otherwise, a default namespace is replaced with one derived from the space ID.
Headers
A required header to protect against CSRF attacks
Request body
Response
A successful response. The response may include a warnings array when the monitor configuration has non-critical issues. For example, if a browser monitor specifies a timeout but has no private locations configured, a warning is returned indicating the timeout will have no effect.
Changes
- info
added the new optional request property
//
- info