Preview an import
Previews a monitor import without applying it.
POST https://app.upfour.io/v1/monitors/batch/dry-run
Body
rowsBatchMonitorRowInput[]required
Nested fields 19 fields
| Field | Type | Description |
|---|---|---|
allow_duplicate optional | boolean | |
client_id optional | uuid · nullable | |
confirmation_period optional | integer | |
dns_expected optional | string | |
dns_query optional | string | |
dns_type optional | string one ofAAAAAMXCNAMETXTNS | |
expected_status_code optional | integer · nullable | |
fields optional | map of any | Per-row overrides of monitor fields by name. Any other key of the row object is read as an entry of fields, too. |
interval_seconds optional | integer | |
keyword optional | string | |
line optional | integer | |
monitor_type optional | string one ofhttptcppingdns | |
name optional | string | |
raw optional | string | |
recovery_period optional | integer | |
regions optional | string[] one ofeuusasiaaudefault | |
tcp_host optional | string | |
tcp_port optional | integer · nullable | |
url optional | string |
All other fields65 fields
create_pausedboolean
default_alert_planboolean · nullable
defaultsCreateMonitorInput
Nested fields 58 fields
| Field | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
alert_channel_names optional | string[] | ||||||||||
alert_plan_name optional | string | ||||||||||
alert_type optional | string one of""statuskeywordkeyword_absenceexpected_status_code | ||||||||||
auth_password optional | string | Basic-auth password. Write-only: responses carry has_auth_password instead. | |||||||||
auth_password_action optional | string one of""keepreplaceclear | ||||||||||
auth_username optional | string | ||||||||||
capture_on_incident_open optional | boolean · nullable | ||||||||||
client_id optional | uuid · nullable | ||||||||||
client_name optional | string | ||||||||||
confirmation_period optional | integer | ||||||||||
creation_key optional | uuid · nullable | ||||||||||
default_alert_plan optional | boolean | ||||||||||
degraded_alert_enabled optional | boolean | ||||||||||
degraded_threshold_ms optional | integer · nullable | ||||||||||
dns_expected optional | string | ||||||||||
dns_query optional | string | ||||||||||
dns_server optional | string | ||||||||||
dns_type optional | string one of""AAAAAMXCNAMETXTNS | ||||||||||
domain_expiry_alert_days optional | integer · nullable | ||||||||||
escalation_policy_id optional | uuid · nullable | ||||||||||
expected_status_code optional | integer · nullable | ||||||||||
follow_redirects optional | boolean · nullable | ||||||||||
http_method optional | string | ||||||||||
interval_seconds optional | integer | ||||||||||
ip_version optional | string one of""46 | ||||||||||
keep_cookies optional | boolean | ||||||||||
keyword optional | string | ||||||||||
keyword_case_insensitive optional | boolean · nullable | ||||||||||
maintenance_from optional | string · nullable | ||||||||||
maintenance_timezone optional | string | ||||||||||
maintenance_to optional | string · nullable | ||||||||||
maintenance_weekdays optional | string[] one ofmontuewedthufrisatsun | ||||||||||
metadata optional | map of string max 100 keyseach value max length 4096 | On update, omitted or null leaves the stored metadata unchanged, {} removes all keys and any other object replaces them. | |||||||||
monitor_group_id optional | uuid · nullable | ||||||||||
monitor_group_name optional | string | ||||||||||
monitor_type optional | string one ofhttptcppingdns | ||||||||||
name optional | string | ||||||||||
notification_channel_ids optional | uuid[] | ||||||||||
notification_mode optional | string one ofquietimmediate | ||||||||||
notify_recovery optional | boolean · nullable | ||||||||||
pronounceable_name optional | string | ||||||||||
proxy_host optional | string | ||||||||||
proxy_port optional | integer · nullable | ||||||||||
public_name optional | string · nullable | ||||||||||
recovery_period optional | integer | ||||||||||
regions optional | string[] one ofeuusasiaaudefault | ||||||||||
request_body optional | string | ||||||||||
request_headers optional | RequestHeader[] | Custom request headers, at most 20 and 8 KB in total. On update they are kept unless request_headers_action is replace or clear. | |||||||||
Each item · 2 fields
| |||||||||||
request_headers_action optional | string one ofkeepreplaceclear | ||||||||||
request_timeout_s optional | integer | ||||||||||
ssl_expiry_alert_days optional | integer · nullable | ||||||||||
ssl_verification optional | boolean · nullable | ||||||||||
state optional | string one of""UPDOWNPAUSED | UP, DOWN or PAUSED (any case); empty creates the monitor running. | |||||||||
tcp_host optional | string | ||||||||||
tcp_port optional | integer · nullable | ||||||||||
url optional | string | ||||||||||
dry_run_idstring
escalation_policy_iduuid · nullable
notification_channel_idsuuid[]
sourcestring
Returns
A successful request returns 200 with application/json.
Response fields 1 top-level fields
| Field | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data | BatchMonitorResponse | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
BatchMonitorResponse · 160 fields
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Errors
Only the errors this operation can return. Every error uses the same envelope.
| Status | Code | Meaning |
|---|---|---|
| 400 | bad_request | The request is malformed or fails validation. |
| 400 | import_invalid | The import body is not valid. When: A batch monitor import whose body cannot be parsed; the message names the problem. Fix: Correct the body and send it again. Stable codes next to the English message: import_invalid (the body is not a valid import), import_rows_out_of_range (error.details.min_rows and max_rows: 1 to 500 rows per import). Notes on single rows carry a code and, where the sentence names something, details (field, option or line). |
| 400 | import_rows_out_of_range | The import has too few or too many rows. When: A batch monitor import with fewer than min_rows or more than max_rows rows, both in details. Fix: Send between min_rows and max_rows rows per request. |
| 413 | import_too_large | The import body is over the size limit. When: A batch monitor import larger than details.max_bytes. Fix: Split the import into several requests. import_too_large: the import body is larger than 2 MiB (error.details.max_bytes). Nothing is imported. |
| 403 | permission_denied | The credentials do not permit this action. |
Every call can also return unauthorized (401), rate_limit_exceeded (429) or internal_error (500 / 502). See Responses and errors.