← Back to index
Reference #
Enums #
Periodicity #
| Value |
Description |
PERIODICITY_30S |
Every 30 seconds |
PERIODICITY_1M |
Every 1 minute |
PERIODICITY_5M |
Every 5 minutes |
PERIODICITY_10M |
Every 10 minutes |
PERIODICITY_30M |
Every 30 minutes |
PERIODICITY_1H |
Every 1 hour |
HTTPMethod #
| Value |
Description |
HTTP_METHOD_GET |
GET |
HTTP_METHOD_POST |
POST |
HTTP_METHOD_HEAD |
HEAD |
HTTP_METHOD_PUT |
PUT |
HTTP_METHOD_PATCH |
PATCH |
HTTP_METHOD_DELETE |
DELETE |
HTTP_METHOD_TRACE |
TRACE |
HTTP_METHOD_CONNECT |
CONNECT |
HTTP_METHOD_OPTIONS |
OPTIONS |
MonitorStatus #
| Value |
Description |
ACTIVE |
Monitor is healthy |
DEGRADED |
Latency threshold exceeded |
ERROR |
Monitor is failing |
TimeRange #
| Value |
Description |
TIME_RANGE_1D |
Last 24 hours |
TIME_RANGE_7D |
Last 7 days |
TIME_RANGE_14D |
Last 14 days |
StatusReportStatus #
| Value |
Description |
INVESTIGATING |
Actively investigating the issue |
IDENTIFIED |
Root cause has been identified |
MONITORING |
Fix deployed, monitoring |
RESOLVED |
Issue fully resolved |
PageComponentImpact #
| Value |
Description |
UNSPECIFIED |
No impact set (legacy reports) |
OPERATIONAL |
Component is operational |
DEGRADED_PERFORMANCE |
Component performance is degraded |
PARTIAL_OUTAGE |
Component is partially down |
MAJOR_OUTAGE |
Component is down |
OverallStatus #
| Value |
Description |
OPERATIONAL |
All systems operational |
DEGRADED |
Performance is degraded |
PARTIAL_OUTAGE |
Some systems are down |
MAJOR_OUTAGE |
Major systems are down |
MAINTENANCE |
Scheduled maintenance |
UNKNOWN |
Status cannot be determined |
NotificationProvider #
| Value |
Description |
DISCORD |
Discord webhook |
EMAIL |
Email notification |
GOOGLE_CHAT |
Google Chat webhook |
GRAFANA_ONCALL |
Grafana OnCall |
MS_TEAMS |
Microsoft Teams |
NTFY |
Ntfy push service |
PAGERDUTY |
PagerDuty |
OPSGENIE |
Opsgenie |
SLACK |
Slack webhook |
SMS |
SMS notification |
TELEGRAM |
Telegram bot |
WEBHOOK |
Custom webhook |
WHATSAPP |
WhatsApp |
OpsgenieRegion #
| Value |
Description |
US |
US region |
EU |
EU region |
PageAccessType #
| Value |
Description |
PUBLIC |
Publicly accessible |
PASSWORD_PROTECTED |
Requires password |
AUTHENTICATED |
Requires authentication |
PageTheme #
| Value |
Description |
SYSTEM |
Follow system theme |
LIGHT |
Light theme |
DARK |
Dark theme |
PageComponentType #
| Value |
Description |
MONITOR |
Linked to a monitor |
STATIC |
Static component (manual) |
Locale #
| Value |
Description |
UNSPECIFIED |
No locale set |
EN |
English |
FR |
French |
DE |
German |
TR |
Turkish |
HI |
Hindi |
KO |
Korean |
PageMetricType #
Which metric the status bars represent (PageConfiguration.metricType, returned
by getStatusPageOverview).
| Value |
Description |
UNSPECIFIED |
Not set |
DURATION |
Response time |
REQUESTS |
Request counts |
MANUAL |
Manually managed component |
PageBarType #
How the status bar is computed (PageConfiguration.barType).
| Value |
Description |
UNSPECIFIED |
Not set |
ABSOLUTE |
Absolute values |
MANUAL |
Manually managed statuses |
PrivateLocationStatus #
Computed health of a private location, derived from the agent heartbeat.
Read-only — it cannot be set through the API.
| Value |
Description |
UNSPECIFIED |
Unknown status |
ACTIVE |
Agent is reporting normally |
ERROR |
Agent has stopped reporting |
SubscriberSource #
| Value |
Description |
UNSPECIFIED |
Source not set |
SELF_SIGNUP |
Created by the user via the subscribe form |
VENDOR |
Added by an operator, skipping verification |
IMPORT |
Imported from a third-party status-page provider |
ComponentDayStatus #
Resolved status of a component on a given day (returned by
getPageComponentDailySummary).
| Value |
Description |
UNSPECIFIED |
No status |
OPERATIONAL |
Operational |
DEGRADED |
Degraded performance |
DOWN |
Down |
MAINTENANCE |
Under maintenance |
EMPTY |
No data for the day |
ComponentEventType #
| Value |
Description |
UNSPECIFIED |
No type |
MAINTENANCE |
Maintenance window |
INCIDENT |
Incident |
REPORT |
Status report |
ComponentEventStatus #
| Value |
Description |
UNSPECIFIED |
No status |
OPERATIONAL |
Operational |
DEGRADED |
Degraded performance |
DOWN |
Down |
MAINTENANCE |
Under maintenance |
NumberComparator #
| Value |
Description |
EQUAL |
Equal to target |
NOT_EQUAL |
Not equal to target |
GREATER_THAN |
Greater than target |
GREATER_THAN_OR_EQUAL |
Greater than or equal |
LESS_THAN |
Less than target |
LESS_THAN_OR_EQUAL |
Less than or equal |
StringComparator #
| Value |
Description |
CONTAINS |
Contains target string |
NOT_CONTAINS |
Does not contain target |
EQUAL |
Equal to target |
NOT_EQUAL |
Not equal to target |
EMPTY |
Value is empty |
NOT_EMPTY |
Value is not empty |
GREATER_THAN |
Lexicographically greater |
GREATER_THAN_OR_EQUAL |
Lexicographically >= target |
LESS_THAN |
Lexicographically less |
LESS_THAN_OR_EQUAL |
Lexicographically <= target |
RecordComparator #
| Value |
Description |
EQUAL |
Equal to target |
NOT_EQUAL |
Not equal to target |
CONTAINS |
Contains target string |
NOT_CONTAINS |
Does not contain target |
ServingStatus #
| Value |
Description |
SERVING |
Service is healthy and serving |
NOT_SERVING |
Service is not healthy |
Regions #
Monitor from 28 global locations across multiple providers.
import { Region } from "@openstatus/sdk-node";
regions: [Region.FLY_AMS, Region.FLY_IAD, Region.KOYEB_FRA];
| Enum Value |
Location |
FLY_AMS |
Amsterdam |
FLY_ARN |
Stockholm |
FLY_BOM |
Mumbai |
FLY_CDG |
Paris |
FLY_DFW |
Dallas |
FLY_EWR |
Newark |
FLY_FRA |
Frankfurt |
FLY_GRU |
São Paulo |
FLY_IAD |
Washington D.C. |
FLY_JNB |
Johannesburg |
FLY_LAX |
Los Angeles |
FLY_LHR |
London |
FLY_NRT |
Tokyo |
FLY_ORD |
Chicago |
FLY_SJC |
San Jose |
FLY_SIN |
Singapore |
FLY_SYD |
Sydney |
FLY_YYZ |
Toronto |
Koyeb Regions (6) #
| Enum Value |
Location |
KOYEB_FRA |
Frankfurt |
KOYEB_PAR |
Paris |
KOYEB_SFO |
San Francisco |
KOYEB_SIN |
Singapore |
KOYEB_TYO |
Tokyo |
KOYEB_WAS |
Washington |
Railway Regions (4) #
| Enum Value |
Location |
RAILWAY_US_WEST2 |
US West |
RAILWAY_US_EAST4 |
US East |
RAILWAY_EUROPE_WEST4 |
Europe West |
RAILWAY_ASIA_SOUTHEAST1 |
Asia Southeast |
Assertions #
Status Code Assertions #
Validate HTTP response status codes using NumberComparator.
import { NumberComparator } from "@openstatus/sdk-node";
statusCodeAssertions: [
{ comparator: NumberComparator.EQUAL, target: BigInt(200) },
{ comparator: NumberComparator.LESS_THAN, target: BigInt(400) },
];
Body Assertions #
Validate response body content using StringComparator.
import { StringComparator } from "@openstatus/sdk-node";
bodyAssertions: [
{ comparator: StringComparator.CONTAINS, target: '"status":"ok"' },
{ comparator: StringComparator.NOT_EMPTY, target: "" },
];
Validate response headers using StringComparator with a header key.
import { StringComparator } from "@openstatus/sdk-node";
headerAssertions: [
{
key: "content-type",
comparator: StringComparator.CONTAINS,
target: "application/json",
},
];
DNS Record Assertions #
Validate DNS records using RecordComparator. Supported record types: A,
AAAA, CNAME, MX, TXT.
import { RecordComparator } from "@openstatus/sdk-node";
recordAssertions: [
{
record: "A",
comparator: RecordComparator.EQUAL,
target: "93.184.216.34",
},
{
record: "CNAME",
comparator: RecordComparator.CONTAINS,
target: "cdn",
},
];
TypeScript Type Exports #
All types and enums exported from @openstatus/sdk-node:
Monitor Types #
HTTPMonitor, Headers, OpenTelemetryConfig — HTTP monitor configuration
TCPMonitor — TCP monitor configuration
DNSMonitor — DNS monitor configuration
StatusCodeAssertion, BodyAssertion, HeaderAssertion, RecordAssertion —
assertion types
CreateHTTPMonitorRequest, CreateHTTPMonitorResponse — HTTP monitor CRUD
CreateTCPMonitorRequest, CreateTCPMonitorResponse — TCP monitor CRUD
CreateDNSMonitorRequest, CreateDNSMonitorResponse — DNS monitor CRUD
UpdateHTTPMonitorRequest, UpdateHTTPMonitorResponse
UpdateTCPMonitorRequest, UpdateTCPMonitorResponse
UpdateDNSMonitorRequest, UpdateDNSMonitorResponse
ListMonitorsRequest, ListMonitorsResponse
DeleteMonitorRequest, DeleteMonitorResponse
TriggerMonitorRequest, TriggerMonitorResponse
GetMonitorStatusRequest, GetMonitorStatusResponse, RegionStatus
GetMonitorSummaryRequest, GetMonitorSummaryResponse
GetMonitorRequest, GetMonitorResponse, MonitorConfig
ListMonitorHTTPResponseLogsRequest, ListMonitorHTTPResponseLogsResponse
GetMonitorHTTPResponseLogRequest, GetMonitorHTTPResponseLogResponse
HTTPResponseLogListItem, HTTPResponseLogDetail, HTTPResponseLogTiming,
HTTPResponseLogPagination
Monitor Enums #
Periodicity — check interval
Region — monitoring region
MonitorStatus — active / degraded / error
HTTPMethod — HTTP methods
TimeRange — metrics time range
HTTPResponseLogRequestStatus, HTTPResponseLogTrigger — HTTP response log
filters
NumberComparator, StringComparator, RecordComparator — assertion
comparators
Health Types #
CheckRequest, CheckResponse
ServingStatus — serving / not serving
Status Report Types #
StatusReport, StatusReportSummary, StatusReportUpdate, ComponentImpact
CreateStatusReportRequest, CreateStatusReportResponse
GetStatusReportRequest, GetStatusReportResponse
ListStatusReportsRequest, ListStatusReportsResponse
UpdateStatusReportRequest, UpdateStatusReportResponse
DeleteStatusReportRequest, DeleteStatusReportResponse
AddStatusReportUpdateRequest, AddStatusReportUpdateResponse
StatusReportStatus — investigating / identified / monitoring / resolved
PageComponentImpact — per-component impact set by a status report update
Status Page Types #
StatusPage, StatusPageSummary
CustomTheme — per-mode CSS variable overrides on a status page
PageConfiguration — rich rendering config returned by
getStatusPageOverview
PageComponent, PageComponentGroup
PageSubscriber
EmailChannel, WebhookChannel, WebhookChannelHeader
CreateStatusPageRequest, CreateStatusPageResponse
GetStatusPageRequest, GetStatusPageResponse
ListStatusPagesRequest, ListStatusPagesResponse
UpdateStatusPageRequest, UpdateStatusPageResponse
DeleteStatusPageRequest, DeleteStatusPageResponse
AddMonitorComponentRequest, AddMonitorComponentResponse
AddStaticComponentRequest, AddStaticComponentResponse
RemoveComponentRequest, RemoveComponentResponse
UpdateComponentRequest, UpdateComponentResponse
GetPageComponentRequest, GetPageComponentResponse
CreateComponentGroupRequest, CreateComponentGroupResponse
DeleteComponentGroupRequest, DeleteComponentGroupResponse
UpdateComponentGroupRequest, UpdateComponentGroupResponse
SubscribeToPageRequest, SubscribeToPageResponse
CreatePageSubscriptionRequest, CreatePageSubscriptionResponse
UnsubscribeFromPageRequest, UnsubscribeFromPageResponse
ListSubscribersRequest, ListSubscribersResponse
GetStatusPageContentRequest, GetStatusPageContentResponse
GetOverallStatusRequest, GetOverallStatusResponse, ComponentStatus
GetStatusPageOverviewRequest, GetStatusPageOverviewResponse
GetPageComponentDailySummaryRequest, GetPageComponentDailySummaryResponse,
PageComponentDailySummary, ComponentDayBucket, ComponentEvent
OverallStatus, PageAccessType, PageTheme, PageComponentType, Locale,
SubscriberSource, ComponentDayStatus, ComponentEventType,
ComponentEventStatus, PageMetricType, PageBarType
Maintenance Types #
Maintenance, MaintenanceSummary
CreateMaintenanceRequest, CreateMaintenanceResponse
GetMaintenanceRequest, GetMaintenanceResponse
ListMaintenancesRequest, ListMaintenancesResponse
UpdateMaintenanceRequest, UpdateMaintenanceResponse
DeleteMaintenanceRequest, DeleteMaintenanceResponse
Notification Types #
Notification, NotificationSummary
NotificationData
DiscordData, EmailData, GoogleChatData, GrafanaOncallData,
MsTeamsData, NtfyData, OpsgenieData, PagerDutyData, SlackData,
SmsData, TelegramData, WebhookData, WebhookHeader, WhatsappData
CreateNotificationRequest, CreateNotificationResponse
GetNotificationRequest, GetNotificationResponse
ListNotificationsRequest, ListNotificationsResponse
UpdateNotificationRequest, UpdateNotificationResponse
DeleteNotificationRequest, DeleteNotificationResponse
SendTestNotificationRequest, SendTestNotificationResponse
CheckNotificationLimitRequest, CheckNotificationLimitResponse
NotificationProvider, OpsgenieRegion
Private Location Types #
PrivateLocation, PrivateLocationSummary
CreatePrivateLocationRequest, CreatePrivateLocationResponse
GetPrivateLocationRequest, GetPrivateLocationResponse
ListPrivateLocationsRequest, ListPrivateLocationsResponse
UpdatePrivateLocationRequest, UpdatePrivateLocationResponse
DeletePrivateLocationRequest, DeletePrivateLocationResponse
PrivateLocationStatus — unspecified / active / error
Client Types #
OpenStatusClient — client interface
OpenStatusClientOptions — client configuration
createOpenStatusClient — factory function
openstatus — default client instance