Docs

Type a word or a question. Esc closes the search.

Sign in Start free

Get the outage pattern

Tells whether the monitor's unstable phases of the last 14 days keep starting around the same time of day, and in which window.

GET https://app.upfour.io/v1/monitors/{monitorID}/patterns
GET https://app.upfour.io/v1/monitors/{monitorID}/patterns
Authorization
AuthorizationA pls_ key. It stays in this browser tab. Needs monitor.read.
Path

Sent directly from your browser to https://app.upfour.io/v1. Mutating calls get an automatic Idempotency-Key when the field is empty.

Request
Responsenot sent yet
Fill in a key and press Send request (⌘↵).
The answer appears here.
scope monitor.read stable returns 200

Parameters

FieldTypeDescription
monitorID required uuid path parameter

Returns

A successful request returns 200 with application/json.

Response fields 1 top-level fields
FieldTypeDescription
data MonitorPattern
MonitorPattern · 27 fields
FieldTypeDescription
consecutive_days integer Days in a row with a matching phase, ending with the newest one.
detected boolean True when at least 3 unstable phases (alert episodes with measured downtime) of the last 14 days started on different local days within 7 days and inside one 90-minute window of the time of day. Computed when read, in the Company time zone.
night boolean True when the whole window lies between 22:00 and 06:00 local time.
phases MonitorPatternPhase[] · nullable
Each item · 5 fields
FieldTypeDescription
down_seconds number
episode_id uuid
local_date string
local_time string
started_at string (date-time)
phases_considered integer
rules MonitorPatternRules
MonitorPatternRules · 4 fields
FieldTypeDescription
lookback_days integer
min_phases integer
span_days integer
window_minutes integer
timezone string
drift MonitorPatternDrift
MonitorPatternDrift · 2 fields
FieldTypeDescription
direction string
minutes_per_day number Average minutes the start moves per day; only present when every day moves the same way by a roughly constant amount.
newest MonitorPatternPhase
MonitorPatternPhase · 5 fields
FieldTypeDescription
down_seconds number
episode_id uuid
local_date string
local_time string
started_at string (date-time)
window_end string Latest local time of day (HH:MM) of the matching phases.
window_start string Earliest local time of day (HH:MM) of the matching phases. The window can cross midnight.

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.
404 not_found The requested resource does not exist or is outside the caller's scope.

Every call can also return unauthorized (401), rate_limit_exceeded (429) or internal_error (500 / 502). See Responses and errors.