Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/sdk-node. SDK for openstatus www.openstatus.dev
Something went wrong. Try again.
5.0 kB · 173 lines
TypeScript
at getMonitor
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174// @generated by protoc-gen-es v2.11.0 with parameter "target=ts,import_extension=ts"// @generated from file openstatus/maintenance/v1/maintenance.proto (package openstatus.maintenance.v1, syntax proto3)/* eslint-disable */
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";import type { Message } from "@bufbuild/protobuf";
/** * Describes the file openstatus/maintenance/v1/maintenance.proto. */export const file_openstatus_maintenance_v1_maintenance: GenFile = /*@__PURE__*/ fileDesc( "CitvcGVuc3RhdHVzL21haW50ZW5hbmNlL3YxL21haW50ZW5hbmNlLnByb3RvEhlvcGVuc3RhdHVzLm1haW50ZW5hbmNlLnYxIq8BChJNYWludGVuYW5jZVN1bW1hcnkSCgoCaWQYASABKAkSDQoFdGl0bGUYAiABKAkSDwoHbWVzc2FnZRgDIAEoCRIMCgRmcm9tGAQgASgJEgoKAnRvGAUgASgJEg8KB3BhZ2VfaWQYBiABKAkSGgoScGFnZV9jb21wb25lbnRfaWRzGAcgAygJEhIKCmNyZWF0ZWRfYXQYCCABKAkSEgoKdXBkYXRlZF9hdBgJIAEoCSKoAQoLTWFpbnRlbmFuY2USCgoCaWQYASABKAkSDQoFdGl0bGUYAiABKAkSDwoHbWVzc2FnZRgDIAEoCRIMCgRmcm9tGAQgASgJEgoKAnRvGAUgASgJEg8KB3BhZ2VfaWQYBiABKAkSGgoScGFnZV9jb21wb25lbnRfaWRzGAcgAygJEhIKCmNyZWF0ZWRfYXQYCCABKAkSEgoKdXBkYXRlZF9hdBgJIAEoCUJbWllnaXRodWIuY29tL29wZW5zdGF0dXNocS9vcGVuc3RhdHVzL3BhY2thZ2VzL3Byb3RvL29wZW5zdGF0dXMvbWFpbnRlbmFuY2UvdjE7bWFpbnRlbmFuY2V2MWIGcHJvdG8z", );
/** * MaintenanceSummary represents metadata for a maintenance window (used in list responses). * * @generated from message openstatus.maintenance.v1.MaintenanceSummary */export type MaintenanceSummary = & Message<"openstatus.maintenance.v1.MaintenanceSummary"> & { /** * Unique identifier for the maintenance. * * @generated from field: string id = 1; */ id: string;
/** * Title of the maintenance. * * @generated from field: string title = 2; */ title: string;
/** * Message describing the maintenance. * * @generated from field: string message = 3; */ message: string;
/** * Start time of the maintenance window (RFC 3339 format). * * @generated from field: string from = 4; */ from: string;
/** * End time of the maintenance window (RFC 3339 format). * * @generated from field: string to = 5; */ to: string;
/** * ID of the page this maintenance is associated with. * * @generated from field: string page_id = 6; */ pageId: string;
/** * IDs of affected page components. * * @generated from field: repeated string page_component_ids = 7; */ pageComponentIds: string[];
/** * Timestamp when the maintenance was created (RFC 3339 format). * * @generated from field: string created_at = 8; */ createdAt: string;
/** * Timestamp when the maintenance was last updated (RFC 3339 format). * * @generated from field: string updated_at = 9; */ updatedAt: string; };
/** * Describes the message openstatus.maintenance.v1.MaintenanceSummary. * Use `create(MaintenanceSummarySchema)` to create a new message. */export const MaintenanceSummarySchema: GenMessage< MaintenanceSummary> = /*@__PURE__*/ messageDesc(file_openstatus_maintenance_v1_maintenance, 0);
/** * Maintenance represents a maintenance window with full details. * * @generated from message openstatus.maintenance.v1.Maintenance */export type Maintenance = Message<"openstatus.maintenance.v1.Maintenance"> & { /** * Unique identifier for the maintenance. * * @generated from field: string id = 1; */ id: string;
/** * Title of the maintenance. * * @generated from field: string title = 2; */ title: string;
/** * Message describing the maintenance. * * @generated from field: string message = 3; */ message: string;
/** * Start time of the maintenance window (RFC 3339 format). * * @generated from field: string from = 4; */ from: string;
/** * End time of the maintenance window (RFC 3339 format). * * @generated from field: string to = 5; */ to: string;
/** * ID of the page this maintenance is associated with. * * @generated from field: string page_id = 6; */ pageId: string;
/** * IDs of affected page components. * * @generated from field: repeated string page_component_ids = 7; */ pageComponentIds: string[];
/** * Timestamp when the maintenance was created (RFC 3339 format). * * @generated from field: string created_at = 8; */ createdAt: string;
/** * Timestamp when the maintenance was last updated (RFC 3339 format). * * @generated from field: string updated_at = 9; */ updatedAt: string;};
/** * Describes the message openstatus.maintenance.v1.Maintenance. * Use `create(MaintenanceSchema)` to create a new message. */export const MaintenanceSchema: GenMessage<Maintenance> = /*@__PURE__*/ messageDesc(file_openstatus_maintenance_v1_maintenance, 1);