Skip to main content
PATCH
/
evaluations
/
monitors
/
{monitor_id}
Update Monitor
curl --request PATCH \
  --url https://api.pandaprobe.com/evaluations/monitors/{monitor_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "metrics": [
    "<string>"
  ],
  "filters": {},
  "sampling_rate": 0.5,
  "model": "<string>",
  "cadence": "<string>",
  "only_if_changed": true,
  "signal_weights": {}
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "target_type": "<string>",
  "metric_names": [
    "<string>"
  ],
  "filters": {},
  "sampling_rate": 123,
  "model": "<string>",
  "cadence": "<string>",
  "only_if_changed": true,
  "status": "<string>",
  "last_run_at": "<string>",
  "last_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "next_run_at": "<string>",
  "created_at": "<string>",
  "updated_at": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

monitor_id
string<uuid>
required

Body

application/json

Partial update of a monitor's configuration.

name
string | null
metrics
string[] | null
filters
Filters · object
sampling_rate
number | null
Required range: 0 <= x <= 1
model
string | null
cadence
string | null
only_if_changed
boolean | null
signal_weights
Signal Weights · object

Response

Successful Response

Full evaluation monitor representation.

id
string<uuid>
required
project_id
string<uuid>
required
name
string
required
target_type
string
required
metric_names
string[]
required
filters
Filters · object
required
sampling_rate
number
required
model
string | null
required
cadence
string
required
only_if_changed
boolean
required
status
string
required
last_run_at
string | null
required
last_run_id
string<uuid> | null
required
next_run_at
string | null
required
created_at
string
required
updated_at
string
required