PATCH /monitors/{monitor_id}

Changed on

Request

  • Base URL
    https://api.monoscope.tech/api/v1
  • URL
    https://api.monoscope.tech/api/v1/monitors/{monitor_id}
  • Auth
    API key in header Authorization

Path parameters

monitor_idstring uuid required

Request body

activeboolean
alert_recovery_thresholdnumber double
alert_thresholdnumber double
check_interval_minsinteger
email_allboolean
emailsstring[]
environmentstring
messagestring
notify_after_minsinteger
querystring
servicestring
severitystring
slack_channelsstring[]
stop_after_countinteger
subjectstring
teamsUUID[]
threshold_sustained_for_minsinteger
time_window_minsinteger
titlestring
trigger_less_thanboolean
unitstring
visualization_typestring
warning_recovery_thresholdnumber double
warning_thresholdnumber double

Example request

{
  "teams": [
    "00000000-0000-0000-0000-000000000000"
  ]
}

Response

alert_last_triggeredstring yyyy-mm-ddThh:MM:ssZ
alert_recovery_thresholdnumber double
alert_thresholdnumber double required
check_interval_minsinteger required
created_atstring yyyy-mm-ddThh:MM:ssZ required
current_status'normal' | 'warning' | 'alerting' required
current_valuenumber double required
dashboard_idstring uuid
deactivated_atstring yyyy-mm-ddThh:MM:ssZ
deleted_atstring yyyy-mm-ddThh:MM:ssZ
environmentstring
idstring uuid required
last_evaluatedstring yyyy-mm-ddThh:MM:ssZ
log_querystring required
log_query_as_sqlstring required
muted_untilstring yyyy-mm-ddThh:MM:ssZ
notification_countinteger required
project_idstring uuid required
renotify_interval_minsinteger
servicestring
stop_after_countinteger
teamsUUID[] required
threshold_sustained_for_minsinteger required
time_window_minsinteger required
trigger_less_thanboolean required
updated_atstring yyyy-mm-ddThh:MM:ssZ required
visualization_typestring required
warning_last_triggeredstring yyyy-mm-ddThh:MM:ssZ
warning_recovery_thresholdnumber double
warning_thresholdnumber double
widget_idstring

Example response

{
  "alert_last_triggered": "2016-07-22T00:00:00Z",
  "created_at": "2016-07-22T00:00:00Z",
  "dashboard_id": "00000000-0000-0000-0000-000000000000",
  "deactivated_at": "2016-07-22T00:00:00Z",
  "deleted_at": "2016-07-22T00:00:00Z",
  "id": "00000000-0000-0000-0000-000000000000",
  "last_evaluated": "2016-07-22T00:00:00Z",
  "muted_until": "2016-07-22T00:00:00Z",
  "project_id": "00000000-0000-0000-0000-000000000000",
  "teams": [
    "00000000-0000-0000-0000-000000000000"
  ],
  "updated_at": "2016-07-22T00:00:00Z",
  "warning_last_triggered": "2016-07-22T00:00:00Z"
}

Changes

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the new optional request property

    • info

      added the optional property / to the response with the status