@openstatus/sdk-node 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +412 -0
  3. package/esm/gen/buf/validate/validate_pb.d.ts +4766 -0
  4. package/esm/gen/buf/validate/validate_pb.d.ts.map +1 -0
  5. package/esm/gen/buf/validate/validate_pb.js +361 -0
  6. package/esm/gen/openstatus/health/v1/health_pb.d.ts +89 -0
  7. package/esm/gen/openstatus/health/v1/health_pb.d.ts.map +1 -0
  8. package/esm/gen/openstatus/health/v1/health_pb.js +54 -0
  9. package/esm/gen/openstatus/monitor/v1/assertions_pb.d.ts +240 -0
  10. package/esm/gen/openstatus/monitor/v1/assertions_pb.d.ts.map +1 -0
  11. package/esm/gen/openstatus/monitor/v1/assertions_pb.js +157 -0
  12. package/esm/gen/openstatus/monitor/v1/dns_monitor_pb.d.ts +106 -0
  13. package/esm/gen/openstatus/monitor/v1/dns_monitor_pb.d.ts.map +1 -0
  14. package/esm/gen/openstatus/monitor/v1/dns_monitor_pb.js +22 -0
  15. package/esm/gen/openstatus/monitor/v1/http_monitor_pb.d.ts +236 -0
  16. package/esm/gen/openstatus/monitor/v1/http_monitor_pb.d.ts.map +1 -0
  17. package/esm/gen/openstatus/monitor/v1/http_monitor_pb.js +82 -0
  18. package/esm/gen/openstatus/monitor/v1/monitor_pb.d.ts +269 -0
  19. package/esm/gen/openstatus/monitor/v1/monitor_pb.d.ts.map +1 -0
  20. package/esm/gen/openstatus/monitor/v1/monitor_pb.js +274 -0
  21. package/esm/gen/openstatus/monitor/v1/service_pb.d.ts +602 -0
  22. package/esm/gen/openstatus/monitor/v1/service_pb.d.ts.map +1 -0
  23. package/esm/gen/openstatus/monitor/v1/service_pb.js +151 -0
  24. package/esm/gen/openstatus/monitor/v1/tcp_monitor_pb.d.ts +99 -0
  25. package/esm/gen/openstatus/monitor/v1/tcp_monitor_pb.d.ts.map +1 -0
  26. package/esm/gen/openstatus/monitor/v1/tcp_monitor_pb.js +20 -0
  27. package/esm/mod.d.ts +107 -0
  28. package/esm/mod.d.ts.map +1 -0
  29. package/esm/mod.js +82 -0
  30. package/esm/package.json +3 -0
  31. package/package.json +34 -0
  32. package/script/gen/buf/validate/validate_pb.d.ts +4766 -0
  33. package/script/gen/buf/validate/validate_pb.d.ts.map +1 -0
  34. package/script/gen/buf/validate/validate_pb.js +364 -0
  35. package/script/gen/openstatus/health/v1/health_pb.d.ts +89 -0
  36. package/script/gen/openstatus/health/v1/health_pb.d.ts.map +1 -0
  37. package/script/gen/openstatus/health/v1/health_pb.js +57 -0
  38. package/script/gen/openstatus/monitor/v1/assertions_pb.d.ts +240 -0
  39. package/script/gen/openstatus/monitor/v1/assertions_pb.d.ts.map +1 -0
  40. package/script/gen/openstatus/monitor/v1/assertions_pb.js +160 -0
  41. package/script/gen/openstatus/monitor/v1/dns_monitor_pb.d.ts +106 -0
  42. package/script/gen/openstatus/monitor/v1/dns_monitor_pb.d.ts.map +1 -0
  43. package/script/gen/openstatus/monitor/v1/dns_monitor_pb.js +25 -0
  44. package/script/gen/openstatus/monitor/v1/http_monitor_pb.d.ts +236 -0
  45. package/script/gen/openstatus/monitor/v1/http_monitor_pb.d.ts.map +1 -0
  46. package/script/gen/openstatus/monitor/v1/http_monitor_pb.js +85 -0
  47. package/script/gen/openstatus/monitor/v1/monitor_pb.d.ts +269 -0
  48. package/script/gen/openstatus/monitor/v1/monitor_pb.d.ts.map +1 -0
  49. package/script/gen/openstatus/monitor/v1/monitor_pb.js +277 -0
  50. package/script/gen/openstatus/monitor/v1/service_pb.d.ts +602 -0
  51. package/script/gen/openstatus/monitor/v1/service_pb.d.ts.map +1 -0
  52. package/script/gen/openstatus/monitor/v1/service_pb.js +154 -0
  53. package/script/gen/openstatus/monitor/v1/tcp_monitor_pb.d.ts +99 -0
  54. package/script/gen/openstatus/monitor/v1/tcp_monitor_pb.d.ts.map +1 -0
  55. package/script/gen/openstatus/monitor/v1/tcp_monitor_pb.js +23 -0
  56. package/script/mod.d.ts +107 -0
  57. package/script/mod.d.ts.map +1 -0
  58. package/script/mod.js +91 -0
  59. package/script/package.json +3 -0
@@ -0,0 +1,602 @@
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { DNSMonitor } from "./dns_monitor_pb.js";
3
+ import type { HTTPMonitor } from "./http_monitor_pb.js";
4
+ import type { MonitorStatus, Region } from "./monitor_pb.js";
5
+ import type { TCPMonitor } from "./tcp_monitor_pb.js";
6
+ import type { Message } from "@bufbuild/protobuf";
7
+ /**
8
+ * Describes the file openstatus/monitor/v1/service.proto.
9
+ */
10
+ export declare const file_openstatus_monitor_v1_service: GenFile;
11
+ /**
12
+ * CreateHTTPMonitorRequest is the request to create a new HTTP monitor.
13
+ *
14
+ * @generated from message openstatus.monitor.v1.CreateHTTPMonitorRequest
15
+ */
16
+ export type CreateHTTPMonitorRequest = Message<"openstatus.monitor.v1.CreateHTTPMonitorRequest"> & {
17
+ /**
18
+ * Monitor configuration (required).
19
+ *
20
+ * @generated from field: openstatus.monitor.v1.HTTPMonitor monitor = 1;
21
+ */
22
+ monitor?: HTTPMonitor;
23
+ };
24
+ /**
25
+ * Describes the message openstatus.monitor.v1.CreateHTTPMonitorRequest.
26
+ * Use `create(CreateHTTPMonitorRequestSchema)` to create a new message.
27
+ */
28
+ export declare const CreateHTTPMonitorRequestSchema: GenMessage<CreateHTTPMonitorRequest>;
29
+ /**
30
+ * CreateHTTPMonitorResponse is the response after creating an HTTP monitor.
31
+ *
32
+ * @generated from message openstatus.monitor.v1.CreateHTTPMonitorResponse
33
+ */
34
+ export type CreateHTTPMonitorResponse = Message<"openstatus.monitor.v1.CreateHTTPMonitorResponse"> & {
35
+ /**
36
+ * The created monitor with assigned ID.
37
+ *
38
+ * @generated from field: openstatus.monitor.v1.HTTPMonitor monitor = 1;
39
+ */
40
+ monitor?: HTTPMonitor;
41
+ };
42
+ /**
43
+ * Describes the message openstatus.monitor.v1.CreateHTTPMonitorResponse.
44
+ * Use `create(CreateHTTPMonitorResponseSchema)` to create a new message.
45
+ */
46
+ export declare const CreateHTTPMonitorResponseSchema: GenMessage<CreateHTTPMonitorResponse>;
47
+ /**
48
+ * CreateTCPMonitorRequest is the request to create a new TCP monitor.
49
+ *
50
+ * @generated from message openstatus.monitor.v1.CreateTCPMonitorRequest
51
+ */
52
+ export type CreateTCPMonitorRequest = Message<"openstatus.monitor.v1.CreateTCPMonitorRequest"> & {
53
+ /**
54
+ * Monitor configuration (required).
55
+ *
56
+ * @generated from field: openstatus.monitor.v1.TCPMonitor monitor = 1;
57
+ */
58
+ monitor?: TCPMonitor;
59
+ };
60
+ /**
61
+ * Describes the message openstatus.monitor.v1.CreateTCPMonitorRequest.
62
+ * Use `create(CreateTCPMonitorRequestSchema)` to create a new message.
63
+ */
64
+ export declare const CreateTCPMonitorRequestSchema: GenMessage<CreateTCPMonitorRequest>;
65
+ /**
66
+ * CreateTCPMonitorResponse is the response after creating a TCP monitor.
67
+ *
68
+ * @generated from message openstatus.monitor.v1.CreateTCPMonitorResponse
69
+ */
70
+ export type CreateTCPMonitorResponse = Message<"openstatus.monitor.v1.CreateTCPMonitorResponse"> & {
71
+ /**
72
+ * The created monitor with assigned ID.
73
+ *
74
+ * @generated from field: openstatus.monitor.v1.TCPMonitor monitor = 1;
75
+ */
76
+ monitor?: TCPMonitor;
77
+ };
78
+ /**
79
+ * Describes the message openstatus.monitor.v1.CreateTCPMonitorResponse.
80
+ * Use `create(CreateTCPMonitorResponseSchema)` to create a new message.
81
+ */
82
+ export declare const CreateTCPMonitorResponseSchema: GenMessage<CreateTCPMonitorResponse>;
83
+ /**
84
+ * CreateDNSMonitorRequest is the request to create a new DNS monitor.
85
+ *
86
+ * @generated from message openstatus.monitor.v1.CreateDNSMonitorRequest
87
+ */
88
+ export type CreateDNSMonitorRequest = Message<"openstatus.monitor.v1.CreateDNSMonitorRequest"> & {
89
+ /**
90
+ * Monitor configuration (required).
91
+ *
92
+ * @generated from field: openstatus.monitor.v1.DNSMonitor monitor = 1;
93
+ */
94
+ monitor?: DNSMonitor;
95
+ };
96
+ /**
97
+ * Describes the message openstatus.monitor.v1.CreateDNSMonitorRequest.
98
+ * Use `create(CreateDNSMonitorRequestSchema)` to create a new message.
99
+ */
100
+ export declare const CreateDNSMonitorRequestSchema: GenMessage<CreateDNSMonitorRequest>;
101
+ /**
102
+ * CreateDNSMonitorResponse is the response after creating a DNS monitor.
103
+ *
104
+ * @generated from message openstatus.monitor.v1.CreateDNSMonitorResponse
105
+ */
106
+ export type CreateDNSMonitorResponse = Message<"openstatus.monitor.v1.CreateDNSMonitorResponse"> & {
107
+ /**
108
+ * The created monitor with assigned ID.
109
+ *
110
+ * @generated from field: openstatus.monitor.v1.DNSMonitor monitor = 1;
111
+ */
112
+ monitor?: DNSMonitor;
113
+ };
114
+ /**
115
+ * Describes the message openstatus.monitor.v1.CreateDNSMonitorResponse.
116
+ * Use `create(CreateDNSMonitorResponseSchema)` to create a new message.
117
+ */
118
+ export declare const CreateDNSMonitorResponseSchema: GenMessage<CreateDNSMonitorResponse>;
119
+ /**
120
+ * TriggerMonitorRequest is the request to trigger a monitor check.
121
+ *
122
+ * @generated from message openstatus.monitor.v1.TriggerMonitorRequest
123
+ */
124
+ export type TriggerMonitorRequest = Message<"openstatus.monitor.v1.TriggerMonitorRequest"> & {
125
+ /**
126
+ * Monitor ID to trigger (required).
127
+ *
128
+ * @generated from field: string id = 1;
129
+ */
130
+ id: string;
131
+ };
132
+ /**
133
+ * Describes the message openstatus.monitor.v1.TriggerMonitorRequest.
134
+ * Use `create(TriggerMonitorRequestSchema)` to create a new message.
135
+ */
136
+ export declare const TriggerMonitorRequestSchema: GenMessage<TriggerMonitorRequest>;
137
+ /**
138
+ * TriggerMonitorResponse is the response after triggering a monitor.
139
+ *
140
+ * @generated from message openstatus.monitor.v1.TriggerMonitorResponse
141
+ */
142
+ export type TriggerMonitorResponse = Message<"openstatus.monitor.v1.TriggerMonitorResponse"> & {
143
+ /**
144
+ * Whether the trigger was successful.
145
+ *
146
+ * @generated from field: bool success = 1;
147
+ */
148
+ success: boolean;
149
+ };
150
+ /**
151
+ * Describes the message openstatus.monitor.v1.TriggerMonitorResponse.
152
+ * Use `create(TriggerMonitorResponseSchema)` to create a new message.
153
+ */
154
+ export declare const TriggerMonitorResponseSchema: GenMessage<TriggerMonitorResponse>;
155
+ /**
156
+ * DeleteMonitorRequest is the request to delete a monitor.
157
+ *
158
+ * @generated from message openstatus.monitor.v1.DeleteMonitorRequest
159
+ */
160
+ export type DeleteMonitorRequest = Message<"openstatus.monitor.v1.DeleteMonitorRequest"> & {
161
+ /**
162
+ * Monitor ID to delete (required).
163
+ *
164
+ * @generated from field: string id = 1;
165
+ */
166
+ id: string;
167
+ };
168
+ /**
169
+ * Describes the message openstatus.monitor.v1.DeleteMonitorRequest.
170
+ * Use `create(DeleteMonitorRequestSchema)` to create a new message.
171
+ */
172
+ export declare const DeleteMonitorRequestSchema: GenMessage<DeleteMonitorRequest>;
173
+ /**
174
+ * DeleteMonitorResponse is the response after deleting a monitor.
175
+ *
176
+ * @generated from message openstatus.monitor.v1.DeleteMonitorResponse
177
+ */
178
+ export type DeleteMonitorResponse = Message<"openstatus.monitor.v1.DeleteMonitorResponse"> & {
179
+ /**
180
+ * Whether the deletion was successful.
181
+ *
182
+ * @generated from field: bool success = 1;
183
+ */
184
+ success: boolean;
185
+ };
186
+ /**
187
+ * Describes the message openstatus.monitor.v1.DeleteMonitorResponse.
188
+ * Use `create(DeleteMonitorResponseSchema)` to create a new message.
189
+ */
190
+ export declare const DeleteMonitorResponseSchema: GenMessage<DeleteMonitorResponse>;
191
+ /**
192
+ * ListMonitorsRequest is the request to list monitors.
193
+ *
194
+ * @generated from message openstatus.monitor.v1.ListMonitorsRequest
195
+ */
196
+ export type ListMonitorsRequest = Message<"openstatus.monitor.v1.ListMonitorsRequest"> & {
197
+ /**
198
+ * Maximum number of monitors to return (1-100, defaults to 50).
199
+ *
200
+ * @generated from field: optional int32 page_size = 1;
201
+ */
202
+ pageSize?: number;
203
+ /**
204
+ * Token for pagination.
205
+ *
206
+ * @generated from field: optional string page_token = 2;
207
+ */
208
+ pageToken?: string;
209
+ };
210
+ /**
211
+ * Describes the message openstatus.monitor.v1.ListMonitorsRequest.
212
+ * Use `create(ListMonitorsRequestSchema)` to create a new message.
213
+ */
214
+ export declare const ListMonitorsRequestSchema: GenMessage<ListMonitorsRequest>;
215
+ /**
216
+ * ListMonitorsResponse is the response containing a list of monitors.
217
+ *
218
+ * @generated from message openstatus.monitor.v1.ListMonitorsResponse
219
+ */
220
+ export type ListMonitorsResponse = Message<"openstatus.monitor.v1.ListMonitorsResponse"> & {
221
+ /**
222
+ * HTTP monitors in the workspace.
223
+ *
224
+ * @generated from field: repeated openstatus.monitor.v1.HTTPMonitor http_monitors = 1;
225
+ */
226
+ httpMonitors: HTTPMonitor[];
227
+ /**
228
+ * TCP monitors in the workspace.
229
+ *
230
+ * @generated from field: repeated openstatus.monitor.v1.TCPMonitor tcp_monitors = 2;
231
+ */
232
+ tcpMonitors: TCPMonitor[];
233
+ /**
234
+ * DNS monitors in the workspace.
235
+ *
236
+ * @generated from field: repeated openstatus.monitor.v1.DNSMonitor dns_monitors = 3;
237
+ */
238
+ dnsMonitors: DNSMonitor[];
239
+ /**
240
+ * Token for the next page of results.
241
+ *
242
+ * @generated from field: string next_page_token = 4;
243
+ */
244
+ nextPageToken: string;
245
+ /**
246
+ * Total number of monitors across all pages.
247
+ *
248
+ * @generated from field: int32 total_size = 5;
249
+ */
250
+ totalSize: number;
251
+ };
252
+ /**
253
+ * Describes the message openstatus.monitor.v1.ListMonitorsResponse.
254
+ * Use `create(ListMonitorsResponseSchema)` to create a new message.
255
+ */
256
+ export declare const ListMonitorsResponseSchema: GenMessage<ListMonitorsResponse>;
257
+ /**
258
+ * GetMonitorStatusRequest is the request to get the status of all regions for a monitor.
259
+ *
260
+ * @generated from message openstatus.monitor.v1.GetMonitorStatusRequest
261
+ */
262
+ export type GetMonitorStatusRequest = Message<"openstatus.monitor.v1.GetMonitorStatusRequest"> & {
263
+ /**
264
+ * Monitor ID to get status for (required).
265
+ *
266
+ * @generated from field: string id = 1;
267
+ */
268
+ id: string;
269
+ };
270
+ /**
271
+ * Describes the message openstatus.monitor.v1.GetMonitorStatusRequest.
272
+ * Use `create(GetMonitorStatusRequestSchema)` to create a new message.
273
+ */
274
+ export declare const GetMonitorStatusRequestSchema: GenMessage<GetMonitorStatusRequest>;
275
+ /**
276
+ * RegionStatus represents the status of a monitor in a specific region.
277
+ *
278
+ * @generated from message openstatus.monitor.v1.RegionStatus
279
+ */
280
+ export type RegionStatus = Message<"openstatus.monitor.v1.RegionStatus"> & {
281
+ /**
282
+ * The region identifier.
283
+ *
284
+ * @generated from field: openstatus.monitor.v1.Region region = 1;
285
+ */
286
+ region: Region;
287
+ /**
288
+ * The status of the monitor in this region.
289
+ *
290
+ * @generated from field: openstatus.monitor.v1.MonitorStatus status = 2;
291
+ */
292
+ status: MonitorStatus;
293
+ };
294
+ /**
295
+ * Describes the message openstatus.monitor.v1.RegionStatus.
296
+ * Use `create(RegionStatusSchema)` to create a new message.
297
+ */
298
+ export declare const RegionStatusSchema: GenMessage<RegionStatus>;
299
+ /**
300
+ * GetMonitorStatusResponse is the response containing the status of all regions for a monitor.
301
+ *
302
+ * @generated from message openstatus.monitor.v1.GetMonitorStatusResponse
303
+ */
304
+ export type GetMonitorStatusResponse = Message<"openstatus.monitor.v1.GetMonitorStatusResponse"> & {
305
+ /**
306
+ * Monitor ID.
307
+ *
308
+ * @generated from field: string id = 1;
309
+ */
310
+ id: string;
311
+ /**
312
+ * Status for each region.
313
+ *
314
+ * @generated from field: repeated openstatus.monitor.v1.RegionStatus regions = 2;
315
+ */
316
+ regions: RegionStatus[];
317
+ };
318
+ /**
319
+ * Describes the message openstatus.monitor.v1.GetMonitorStatusResponse.
320
+ * Use `create(GetMonitorStatusResponseSchema)` to create a new message.
321
+ */
322
+ export declare const GetMonitorStatusResponseSchema: GenMessage<GetMonitorStatusResponse>;
323
+ /**
324
+ * MonitorConfig represents the type-specific configuration for a monitor.
325
+ *
326
+ * @generated from message openstatus.monitor.v1.MonitorConfig
327
+ */
328
+ export type MonitorConfig = Message<"openstatus.monitor.v1.MonitorConfig"> & {
329
+ /**
330
+ * @generated from oneof openstatus.monitor.v1.MonitorConfig.config
331
+ */
332
+ config: {
333
+ /**
334
+ * HTTP monitor configuration.
335
+ *
336
+ * @generated from field: openstatus.monitor.v1.HTTPMonitor http = 1;
337
+ */
338
+ value: HTTPMonitor;
339
+ case: "http";
340
+ } | {
341
+ /**
342
+ * TCP monitor configuration.
343
+ *
344
+ * @generated from field: openstatus.monitor.v1.TCPMonitor tcp = 2;
345
+ */
346
+ value: TCPMonitor;
347
+ case: "tcp";
348
+ } | {
349
+ /**
350
+ * DNS monitor configuration.
351
+ *
352
+ * @generated from field: openstatus.monitor.v1.DNSMonitor dns = 3;
353
+ */
354
+ value: DNSMonitor;
355
+ case: "dns";
356
+ } | {
357
+ case: undefined;
358
+ value?: undefined;
359
+ };
360
+ };
361
+ /**
362
+ * Describes the message openstatus.monitor.v1.MonitorConfig.
363
+ * Use `create(MonitorConfigSchema)` to create a new message.
364
+ */
365
+ export declare const MonitorConfigSchema: GenMessage<MonitorConfig>;
366
+ /**
367
+ * GetMonitorSummaryRequest is the request to get aggregated metrics for a monitor.
368
+ *
369
+ * @generated from message openstatus.monitor.v1.GetMonitorSummaryRequest
370
+ */
371
+ export type GetMonitorSummaryRequest = Message<"openstatus.monitor.v1.GetMonitorSummaryRequest"> & {
372
+ /**
373
+ * Monitor ID to get summary for (required).
374
+ *
375
+ * @generated from field: string id = 1;
376
+ */
377
+ id: string;
378
+ /**
379
+ * Time range for metrics aggregation (defaults to 1 day if unspecified).
380
+ *
381
+ * @generated from field: openstatus.monitor.v1.TimeRange time_range = 2;
382
+ */
383
+ timeRange: TimeRange;
384
+ /**
385
+ * Optional filter by regions. If empty, returns metrics for all regions.
386
+ *
387
+ * @generated from field: repeated openstatus.monitor.v1.Region regions = 3;
388
+ */
389
+ regions: Region[];
390
+ };
391
+ /**
392
+ * Describes the message openstatus.monitor.v1.GetMonitorSummaryRequest.
393
+ * Use `create(GetMonitorSummaryRequestSchema)` to create a new message.
394
+ */
395
+ export declare const GetMonitorSummaryRequestSchema: GenMessage<GetMonitorSummaryRequest>;
396
+ /**
397
+ * GetMonitorSummaryResponse is the response containing aggregated metrics for a monitor.
398
+ *
399
+ * @generated from message openstatus.monitor.v1.GetMonitorSummaryResponse
400
+ */
401
+ export type GetMonitorSummaryResponse = Message<"openstatus.monitor.v1.GetMonitorSummaryResponse"> & {
402
+ /**
403
+ * Monitor ID.
404
+ *
405
+ * @generated from field: string id = 1;
406
+ */
407
+ id: string;
408
+ /**
409
+ * Timestamp of the last check in RFC 3339 format.
410
+ *
411
+ * @generated from field: string last_ping_at = 2;
412
+ */
413
+ lastPingAt: string;
414
+ /**
415
+ * Total number of successful requests.
416
+ *
417
+ * @generated from field: int64 total_successful = 3;
418
+ */
419
+ totalSuccessful: bigint;
420
+ /**
421
+ * Total number of degraded requests.
422
+ *
423
+ * @generated from field: int64 total_degraded = 4;
424
+ */
425
+ totalDegraded: bigint;
426
+ /**
427
+ * Total number of failed requests.
428
+ *
429
+ * @generated from field: int64 total_failed = 5;
430
+ */
431
+ totalFailed: bigint;
432
+ /**
433
+ * 50th percentile (median) latency in milliseconds.
434
+ *
435
+ * @generated from field: int64 p50 = 6;
436
+ */
437
+ p50: bigint;
438
+ /**
439
+ * 75th percentile latency in milliseconds.
440
+ *
441
+ * @generated from field: int64 p75 = 7;
442
+ */
443
+ p75: bigint;
444
+ /**
445
+ * 90th percentile latency in milliseconds.
446
+ *
447
+ * @generated from field: int64 p90 = 8;
448
+ */
449
+ p90: bigint;
450
+ /**
451
+ * 95th percentile latency in milliseconds.
452
+ *
453
+ * @generated from field: int64 p95 = 9;
454
+ */
455
+ p95: bigint;
456
+ /**
457
+ * 99th percentile latency in milliseconds.
458
+ *
459
+ * @generated from field: int64 p99 = 10;
460
+ */
461
+ p99: bigint;
462
+ /**
463
+ * Time range used for the metrics.
464
+ *
465
+ * @generated from field: openstatus.monitor.v1.TimeRange time_range = 11;
466
+ */
467
+ timeRange: TimeRange;
468
+ /**
469
+ * Regions included in the metrics.
470
+ *
471
+ * @generated from field: repeated openstatus.monitor.v1.Region regions = 12;
472
+ */
473
+ regions: Region[];
474
+ };
475
+ /**
476
+ * Describes the message openstatus.monitor.v1.GetMonitorSummaryResponse.
477
+ * Use `create(GetMonitorSummaryResponseSchema)` to create a new message.
478
+ */
479
+ export declare const GetMonitorSummaryResponseSchema: GenMessage<GetMonitorSummaryResponse>;
480
+ /**
481
+ * TimeRange represents the time period for metrics aggregation.
482
+ *
483
+ * @generated from enum openstatus.monitor.v1.TimeRange
484
+ */
485
+ export declare enum TimeRange {
486
+ /**
487
+ * Unspecified time range.
488
+ *
489
+ * @generated from enum value: TIME_RANGE_UNSPECIFIED = 0;
490
+ */
491
+ TIME_RANGE_UNSPECIFIED = 0,
492
+ /**
493
+ * Last 24 hours.
494
+ *
495
+ * @generated from enum value: TIME_RANGE_1D = 1;
496
+ */
497
+ TIME_RANGE_1D = 1,
498
+ /**
499
+ * Last 7 days.
500
+ *
501
+ * @generated from enum value: TIME_RANGE_7D = 2;
502
+ */
503
+ TIME_RANGE_7D = 2,
504
+ /**
505
+ * Last 14 days.
506
+ *
507
+ * @generated from enum value: TIME_RANGE_14D = 3;
508
+ */
509
+ TIME_RANGE_14D = 3
510
+ }
511
+ /**
512
+ * Describes the enum openstatus.monitor.v1.TimeRange.
513
+ */
514
+ export declare const TimeRangeSchema: GenEnum<TimeRange>;
515
+ /**
516
+ * MonitorService provides CRUD and operational commands for monitors.
517
+ *
518
+ * @generated from service openstatus.monitor.v1.MonitorService
519
+ */
520
+ export declare const MonitorService: GenService<{
521
+ /**
522
+ * CreateHTTPMonitor creates a new HTTP monitor.
523
+ *
524
+ * @generated from rpc openstatus.monitor.v1.MonitorService.CreateHTTPMonitor
525
+ */
526
+ createHTTPMonitor: {
527
+ methodKind: "unary";
528
+ input: typeof CreateHTTPMonitorRequestSchema;
529
+ output: typeof CreateHTTPMonitorResponseSchema;
530
+ };
531
+ /**
532
+ * CreateTCPMonitor creates a new TCP monitor.
533
+ *
534
+ * @generated from rpc openstatus.monitor.v1.MonitorService.CreateTCPMonitor
535
+ */
536
+ createTCPMonitor: {
537
+ methodKind: "unary";
538
+ input: typeof CreateTCPMonitorRequestSchema;
539
+ output: typeof CreateTCPMonitorResponseSchema;
540
+ };
541
+ /**
542
+ * CreateDNSMonitor creates a new DNS monitor.
543
+ *
544
+ * @generated from rpc openstatus.monitor.v1.MonitorService.CreateDNSMonitor
545
+ */
546
+ createDNSMonitor: {
547
+ methodKind: "unary";
548
+ input: typeof CreateDNSMonitorRequestSchema;
549
+ output: typeof CreateDNSMonitorResponseSchema;
550
+ };
551
+ /**
552
+ * TriggerMonitor initiates an immediate check for a monitor.
553
+ *
554
+ * @generated from rpc openstatus.monitor.v1.MonitorService.TriggerMonitor
555
+ */
556
+ triggerMonitor: {
557
+ methodKind: "unary";
558
+ input: typeof TriggerMonitorRequestSchema;
559
+ output: typeof TriggerMonitorResponseSchema;
560
+ };
561
+ /**
562
+ * DeleteMonitor removes a monitor.
563
+ *
564
+ * @generated from rpc openstatus.monitor.v1.MonitorService.DeleteMonitor
565
+ */
566
+ deleteMonitor: {
567
+ methodKind: "unary";
568
+ input: typeof DeleteMonitorRequestSchema;
569
+ output: typeof DeleteMonitorResponseSchema;
570
+ };
571
+ /**
572
+ * ListMonitors returns a list of monitors.
573
+ *
574
+ * @generated from rpc openstatus.monitor.v1.MonitorService.ListMonitors
575
+ */
576
+ listMonitors: {
577
+ methodKind: "unary";
578
+ input: typeof ListMonitorsRequestSchema;
579
+ output: typeof ListMonitorsResponseSchema;
580
+ };
581
+ /**
582
+ * GetMonitorStatus returns the status of all regions for a monitor.
583
+ *
584
+ * @generated from rpc openstatus.monitor.v1.MonitorService.GetMonitorStatus
585
+ */
586
+ getMonitorStatus: {
587
+ methodKind: "unary";
588
+ input: typeof GetMonitorStatusRequestSchema;
589
+ output: typeof GetMonitorStatusResponseSchema;
590
+ };
591
+ /**
592
+ * GetMonitorSummary returns aggregated metrics and statistics for a monitor.
593
+ *
594
+ * @generated from rpc openstatus.monitor.v1.MonitorService.GetMonitorSummary
595
+ */
596
+ getMonitorSummary: {
597
+ methodKind: "unary";
598
+ input: typeof GetMonitorSummaryRequestSchema;
599
+ output: typeof GetMonitorSummaryResponseSchema;
600
+ };
601
+ }>;
602
+ //# sourceMappingURL=service_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service_pb.d.ts","sourceRoot":"","sources":["../../../../../src/gen/openstatus/monitor/v1/service_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,OAAO,EACP,OAAO,EACP,UAAU,EACV,UAAU,EACX,MAAM,8BAA8B,CAAC;AAQtC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,kCAAkC,EAAE,OAU9C,CAAC;AAEJ;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAChC,OAAO,CAAC,gDAAgD,CAAC,GACzD;IACA;;;;OAIG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,8BAA8B,EAAE,UAAU,CACrD,wBAAwB,CAE0B,CAAC;AAErD;;;;GAIG;AACH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