@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.
- package/LICENSE +21 -0
- package/README.md +412 -0
- package/esm/gen/buf/validate/validate_pb.d.ts +4766 -0
- package/esm/gen/buf/validate/validate_pb.d.ts.map +1 -0
- package/esm/gen/buf/validate/validate_pb.js +361 -0
- package/esm/gen/openstatus/health/v1/health_pb.d.ts +89 -0
- package/esm/gen/openstatus/health/v1/health_pb.d.ts.map +1 -0
- package/esm/gen/openstatus/health/v1/health_pb.js +54 -0
- package/esm/gen/openstatus/monitor/v1/assertions_pb.d.ts +240 -0
- package/esm/gen/openstatus/monitor/v1/assertions_pb.d.ts.map +1 -0
- package/esm/gen/openstatus/monitor/v1/assertions_pb.js +157 -0
- package/esm/gen/openstatus/monitor/v1/dns_monitor_pb.d.ts +106 -0
- package/esm/gen/openstatus/monitor/v1/dns_monitor_pb.d.ts.map +1 -0
- package/esm/gen/openstatus/monitor/v1/dns_monitor_pb.js +22 -0
- package/esm/gen/openstatus/monitor/v1/http_monitor_pb.d.ts +236 -0
- package/esm/gen/openstatus/monitor/v1/http_monitor_pb.d.ts.map +1 -0
- package/esm/gen/openstatus/monitor/v1/http_monitor_pb.js +82 -0
- package/esm/gen/openstatus/monitor/v1/monitor_pb.d.ts +269 -0
- package/esm/gen/openstatus/monitor/v1/monitor_pb.d.ts.map +1 -0
- package/esm/gen/openstatus/monitor/v1/monitor_pb.js +274 -0
- package/esm/gen/openstatus/monitor/v1/service_pb.d.ts +602 -0
- package/esm/gen/openstatus/monitor/v1/service_pb.d.ts.map +1 -0
- package/esm/gen/openstatus/monitor/v1/service_pb.js +151 -0
- package/esm/gen/openstatus/monitor/v1/tcp_monitor_pb.d.ts +99 -0
- package/esm/gen/openstatus/monitor/v1/tcp_monitor_pb.d.ts.map +1 -0
- package/esm/gen/openstatus/monitor/v1/tcp_monitor_pb.js +20 -0
- package/esm/mod.d.ts +107 -0
- package/esm/mod.d.ts.map +1 -0
- package/esm/mod.js +82 -0
- package/esm/package.json +3 -0
- package/package.json +34 -0
- package/script/gen/buf/validate/validate_pb.d.ts +4766 -0
- package/script/gen/buf/validate/validate_pb.d.ts.map +1 -0
- package/script/gen/buf/validate/validate_pb.js +364 -0
- package/script/gen/openstatus/health/v1/health_pb.d.ts +89 -0
- package/script/gen/openstatus/health/v1/health_pb.d.ts.map +1 -0
- package/script/gen/openstatus/health/v1/health_pb.js +57 -0
- package/script/gen/openstatus/monitor/v1/assertions_pb.d.ts +240 -0
- package/script/gen/openstatus/monitor/v1/assertions_pb.d.ts.map +1 -0
- package/script/gen/openstatus/monitor/v1/assertions_pb.js +160 -0
- package/script/gen/openstatus/monitor/v1/dns_monitor_pb.d.ts +106 -0
- package/script/gen/openstatus/monitor/v1/dns_monitor_pb.d.ts.map +1 -0
- package/script/gen/openstatus/monitor/v1/dns_monitor_pb.js +25 -0
- package/script/gen/openstatus/monitor/v1/http_monitor_pb.d.ts +236 -0
- package/script/gen/openstatus/monitor/v1/http_monitor_pb.d.ts.map +1 -0
- package/script/gen/openstatus/monitor/v1/http_monitor_pb.js +85 -0
- package/script/gen/openstatus/monitor/v1/monitor_pb.d.ts +269 -0
- package/script/gen/openstatus/monitor/v1/monitor_pb.d.ts.map +1 -0
- package/script/gen/openstatus/monitor/v1/monitor_pb.js +277 -0
- package/script/gen/openstatus/monitor/v1/service_pb.d.ts +602 -0
- package/script/gen/openstatus/monitor/v1/service_pb.d.ts.map +1 -0
- package/script/gen/openstatus/monitor/v1/service_pb.js +154 -0
- package/script/gen/openstatus/monitor/v1/tcp_monitor_pb.d.ts +99 -0
- package/script/gen/openstatus/monitor/v1/tcp_monitor_pb.d.ts.map +1 -0
- package/script/gen/openstatus/monitor/v1/tcp_monitor_pb.js +23 -0
- package/script/mod.d.ts +107 -0
- package/script/mod.d.ts.map +1 -0
- package/script/mod.js +91 -0
- package/script/package.json +3 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file openstatus/health/v1/health.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_openstatus_health_v1_health: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* CheckRequest is the request message for health checks.
|
|
9
|
+
*
|
|
10
|
+
* @generated from message openstatus.health.v1.CheckRequest
|
|
11
|
+
*/
|
|
12
|
+
export type CheckRequest = Message<"openstatus.health.v1.CheckRequest"> & {
|
|
13
|
+
/**
|
|
14
|
+
* Optional service name to check. If empty, checks overall service health.
|
|
15
|
+
*
|
|
16
|
+
* @generated from field: string service = 1;
|
|
17
|
+
*/
|
|
18
|
+
service: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message openstatus.health.v1.CheckRequest.
|
|
22
|
+
* Use `create(CheckRequestSchema)` to create a new message.
|
|
23
|
+
*/
|
|
24
|
+
export declare const CheckRequestSchema: GenMessage<CheckRequest>;
|
|
25
|
+
/**
|
|
26
|
+
* CheckResponse is the response message for health checks.
|
|
27
|
+
*
|
|
28
|
+
* @generated from message openstatus.health.v1.CheckResponse
|
|
29
|
+
*/
|
|
30
|
+
export type CheckResponse = Message<"openstatus.health.v1.CheckResponse"> & {
|
|
31
|
+
/**
|
|
32
|
+
* The serving status of the service.
|
|
33
|
+
*
|
|
34
|
+
* @generated from field: openstatus.health.v1.CheckResponse.ServingStatus status = 1;
|
|
35
|
+
*/
|
|
36
|
+
status: CheckResponse_ServingStatus;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Describes the message openstatus.health.v1.CheckResponse.
|
|
40
|
+
* Use `create(CheckResponseSchema)` to create a new message.
|
|
41
|
+
*/
|
|
42
|
+
export declare const CheckResponseSchema: GenMessage<CheckResponse>;
|
|
43
|
+
/**
|
|
44
|
+
* ServingStatus represents the health status of the service.
|
|
45
|
+
*
|
|
46
|
+
* @generated from enum openstatus.health.v1.CheckResponse.ServingStatus
|
|
47
|
+
*/
|
|
48
|
+
export declare enum CheckResponse_ServingStatus {
|
|
49
|
+
/**
|
|
50
|
+
* SERVING_STATUS_UNSPECIFIED indicates an unknown status.
|
|
51
|
+
*
|
|
52
|
+
* @generated from enum value: SERVING_STATUS_UNSPECIFIED = 0;
|
|
53
|
+
*/
|
|
54
|
+
UNSPECIFIED = 0,
|
|
55
|
+
/**
|
|
56
|
+
* SERVING_STATUS_SERVING indicates the service is healthy and serving.
|
|
57
|
+
*
|
|
58
|
+
* @generated from enum value: SERVING_STATUS_SERVING = 1;
|
|
59
|
+
*/
|
|
60
|
+
SERVING = 1,
|
|
61
|
+
/**
|
|
62
|
+
* SERVING_STATUS_NOT_SERVING indicates the service is not healthy.
|
|
63
|
+
*
|
|
64
|
+
* @generated from enum value: SERVING_STATUS_NOT_SERVING = 2;
|
|
65
|
+
*/
|
|
66
|
+
NOT_SERVING = 2
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Describes the enum openstatus.health.v1.CheckResponse.ServingStatus.
|
|
70
|
+
*/
|
|
71
|
+
export declare const CheckResponse_ServingStatusSchema: GenEnum<CheckResponse_ServingStatus>;
|
|
72
|
+
/**
|
|
73
|
+
* HealthService provides health check endpoints for load balancer probes.
|
|
74
|
+
*
|
|
75
|
+
* @generated from service openstatus.health.v1.HealthService
|
|
76
|
+
*/
|
|
77
|
+
export declare const HealthService: GenService<{
|
|
78
|
+
/**
|
|
79
|
+
* Check returns the current serving status of the service.
|
|
80
|
+
*
|
|
81
|
+
* @generated from rpc openstatus.health.v1.HealthService.Check
|
|
82
|
+
*/
|
|
83
|
+
check: {
|
|
84
|
+
methodKind: "unary";
|
|
85
|
+
input: typeof CheckRequestSchema;
|
|
86
|
+
output: typeof CheckResponseSchema;
|
|
87
|
+
};
|
|
88
|
+
}>;
|
|
89
|
+
//# sourceMappingURL=health_pb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"health_pb.d.ts","sourceRoot":"","sources":["../../../../../src/gen/openstatus/health/v1/health_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,OAAO,EACP,OAAO,EACP,UAAU,EACV,UAAU,EACX,MAAM,8BAA8B,CAAC;AAOtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,gCAAgC,EAAE,OAG5C,CAAC;AAEJ;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,mCAAmC,CAAC,GAAG;IACxE;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,UAAU,CAAC,YAAY,CACN,CAAC;AAEnD;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,oCAAoC,CAAC,GAAG;IAC1E;;;;OAIG;IACH,MAAM,EAAE,2BAA2B,CAAC;CACrC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,aAAa,CACR,CAAC;AAEnD;;;;GAIG;AACH,oBAAY,2BAA2B;IACrC;;;;OAIG;IACH,WAAW,IAAI;IAEf;;;;OAIG;IACH,OAAO,IAAI;IAEX;;;;OAIG;IACH,WAAW,IAAI;CAChB;AAED;;GAEG;AACH,eAAO,MAAM,iCAAiC,EAAE,OAAO,CACrD,2BAA2B,CAEqB,CAAC;AAEnD;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC;IACrC;;;;OAIG;IACH,KAAK,EAAE;QACL,UAAU,EAAE,OAAO,CAAC;QACpB,KAAK,EAAE,OAAO,kBAAkB,CAAC;QACjC,MAAM,EAAE,OAAO,mBAAmB,CAAC;KACpC,CAAC;CACH,CACiD,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts,import_extension=ts"
|
|
3
|
+
// @generated from file openstatus/health/v1/health.proto (package openstatus.health.v1, syntax proto3)
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.HealthService = exports.CheckResponse_ServingStatusSchema = exports.CheckResponse_ServingStatus = exports.CheckResponseSchema = exports.CheckRequestSchema = exports.file_openstatus_health_v1_health = void 0;
|
|
7
|
+
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
8
|
+
/**
|
|
9
|
+
* Describes the file openstatus/health/v1/health.proto.
|
|
10
|
+
*/
|
|
11
|
+
exports.file_openstatus_health_v1_health = (0, codegenv2_1.fileDesc)("CiFvcGVuc3RhdHVzL2hlYWx0aC92MS9oZWFsdGgucHJvdG8SFG9wZW5zdGF0dXMuaGVhbHRoLnYxIh8KDENoZWNrUmVxdWVzdBIPCgdzZXJ2aWNlGAEgASgJIr8BCg1DaGVja1Jlc3BvbnNlEkEKBnN0YXR1cxgBIAEoDjIxLm9wZW5zdGF0dXMuaGVhbHRoLnYxLkNoZWNrUmVzcG9uc2UuU2VydmluZ1N0YXR1cyJrCg1TZXJ2aW5nU3RhdHVzEh4KGlNFUlZJTkdfU1RBVFVTX1VOU1BFQ0lGSUVEEAASGgoWU0VSVklOR19TVEFUVVNfU0VSVklORxABEh4KGlNFUlZJTkdfU1RBVFVTX05PVF9TRVJWSU5HEAIyYQoNSGVhbHRoU2VydmljZRJQCgVDaGVjaxIiLm9wZW5zdGF0dXMuaGVhbHRoLnYxLkNoZWNrUmVxdWVzdBojLm9wZW5zdGF0dXMuaGVhbHRoLnYxLkNoZWNrUmVzcG9uc2VCUVpPZ2l0aHViLmNvbS9vcGVuc3RhdHVzaHEvb3BlbnN0YXR1cy9wYWNrYWdlcy9wcm90by9vcGVuc3RhdHVzL2hlYWx0aC92MTtoZWFsdGh2MWIGcHJvdG8z");
|
|
12
|
+
/**
|
|
13
|
+
* Describes the message openstatus.health.v1.CheckRequest.
|
|
14
|
+
* Use `create(CheckRequestSchema)` to create a new message.
|
|
15
|
+
*/
|
|
16
|
+
exports.CheckRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_openstatus_health_v1_health, 0);
|
|
17
|
+
/**
|
|
18
|
+
* Describes the message openstatus.health.v1.CheckResponse.
|
|
19
|
+
* Use `create(CheckResponseSchema)` to create a new message.
|
|
20
|
+
*/
|
|
21
|
+
exports.CheckResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_openstatus_health_v1_health, 1);
|
|
22
|
+
/**
|
|
23
|
+
* ServingStatus represents the health status of the service.
|
|
24
|
+
*
|
|
25
|
+
* @generated from enum openstatus.health.v1.CheckResponse.ServingStatus
|
|
26
|
+
*/
|
|
27
|
+
var CheckResponse_ServingStatus;
|
|
28
|
+
(function (CheckResponse_ServingStatus) {
|
|
29
|
+
/**
|
|
30
|
+
* SERVING_STATUS_UNSPECIFIED indicates an unknown status.
|
|
31
|
+
*
|
|
32
|
+
* @generated from enum value: SERVING_STATUS_UNSPECIFIED = 0;
|
|
33
|
+
*/
|
|
34
|
+
CheckResponse_ServingStatus[CheckResponse_ServingStatus["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
35
|
+
/**
|
|
36
|
+
* SERVING_STATUS_SERVING indicates the service is healthy and serving.
|
|
37
|
+
*
|
|
38
|
+
* @generated from enum value: SERVING_STATUS_SERVING = 1;
|
|
39
|
+
*/
|
|
40
|
+
CheckResponse_ServingStatus[CheckResponse_ServingStatus["SERVING"] = 1] = "SERVING";
|
|
41
|
+
/**
|
|
42
|
+
* SERVING_STATUS_NOT_SERVING indicates the service is not healthy.
|
|
43
|
+
*
|
|
44
|
+
* @generated from enum value: SERVING_STATUS_NOT_SERVING = 2;
|
|
45
|
+
*/
|
|
46
|
+
CheckResponse_ServingStatus[CheckResponse_ServingStatus["NOT_SERVING"] = 2] = "NOT_SERVING";
|
|
47
|
+
})(CheckResponse_ServingStatus || (exports.CheckResponse_ServingStatus = CheckResponse_ServingStatus = {}));
|
|
48
|
+
/**
|
|
49
|
+
* Describes the enum openstatus.health.v1.CheckResponse.ServingStatus.
|
|
50
|
+
*/
|
|
51
|
+
exports.CheckResponse_ServingStatusSchema = (0, codegenv2_1.enumDesc)(exports.file_openstatus_health_v1_health, 1, 0);
|
|
52
|
+
/**
|
|
53
|
+
* HealthService provides health check endpoints for load balancer probes.
|
|
54
|
+
*
|
|
55
|
+
* @generated from service openstatus.health.v1.HealthService
|
|
56
|
+
*/
|
|
57
|
+
exports.HealthService = (0, codegenv2_1.serviceDesc)(exports.file_openstatus_health_v1_health, 0);
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file openstatus/monitor/v1/assertions.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_openstatus_monitor_v1_assertions: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* StatusCodeAssertion defines an assertion for HTTP status codes.
|
|
9
|
+
*
|
|
10
|
+
* @generated from message openstatus.monitor.v1.StatusCodeAssertion
|
|
11
|
+
*/
|
|
12
|
+
export type StatusCodeAssertion = Message<"openstatus.monitor.v1.StatusCodeAssertion"> & {
|
|
13
|
+
/**
|
|
14
|
+
* Target status code to compare against (100-599).
|
|
15
|
+
*
|
|
16
|
+
* @generated from field: int64 target = 1;
|
|
17
|
+
*/
|
|
18
|
+
target: bigint;
|
|
19
|
+
/**
|
|
20
|
+
* Comparison operation (required, must not be UNSPECIFIED).
|
|
21
|
+
*
|
|
22
|
+
* @generated from field: openstatus.monitor.v1.NumberComparator comparator = 2;
|
|
23
|
+
*/
|
|
24
|
+
comparator: NumberComparator;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Describes the message openstatus.monitor.v1.StatusCodeAssertion.
|
|
28
|
+
* Use `create(StatusCodeAssertionSchema)` to create a new message.
|
|
29
|
+
*/
|
|
30
|
+
export declare const StatusCodeAssertionSchema: GenMessage<StatusCodeAssertion>;
|
|
31
|
+
/**
|
|
32
|
+
* BodyAssertion defines an assertion for response body content.
|
|
33
|
+
*
|
|
34
|
+
* @generated from message openstatus.monitor.v1.BodyAssertion
|
|
35
|
+
*/
|
|
36
|
+
export type BodyAssertion = Message<"openstatus.monitor.v1.BodyAssertion"> & {
|
|
37
|
+
/**
|
|
38
|
+
* Target value to compare against.
|
|
39
|
+
*
|
|
40
|
+
* @generated from field: string target = 1;
|
|
41
|
+
*/
|
|
42
|
+
target: string;
|
|
43
|
+
/**
|
|
44
|
+
* Comparison operation (required, must not be UNSPECIFIED).
|
|
45
|
+
*
|
|
46
|
+
* @generated from field: openstatus.monitor.v1.StringComparator comparator = 2;
|
|
47
|
+
*/
|
|
48
|
+
comparator: StringComparator;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Describes the message openstatus.monitor.v1.BodyAssertion.
|
|
52
|
+
* Use `create(BodyAssertionSchema)` to create a new message.
|
|
53
|
+
*/
|
|
54
|
+
export declare const BodyAssertionSchema: GenMessage<BodyAssertion>;
|
|
55
|
+
/**
|
|
56
|
+
* HeaderAssertion defines an assertion for response headers.
|
|
57
|
+
*
|
|
58
|
+
* @generated from message openstatus.monitor.v1.HeaderAssertion
|
|
59
|
+
*/
|
|
60
|
+
export type HeaderAssertion = Message<"openstatus.monitor.v1.HeaderAssertion"> & {
|
|
61
|
+
/**
|
|
62
|
+
* Target value to compare against.
|
|
63
|
+
*
|
|
64
|
+
* @generated from field: string target = 1;
|
|
65
|
+
*/
|
|
66
|
+
target: string;
|
|
67
|
+
/**
|
|
68
|
+
* Comparison operation (required, must not be UNSPECIFIED).
|
|
69
|
+
*
|
|
70
|
+
* @generated from field: openstatus.monitor.v1.StringComparator comparator = 2;
|
|
71
|
+
*/
|
|
72
|
+
comparator: StringComparator;
|
|
73
|
+
/**
|
|
74
|
+
* Header key to check (required).
|
|
75
|
+
*
|
|
76
|
+
* @generated from field: string key = 3;
|
|
77
|
+
*/
|
|
78
|
+
key: string;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Describes the message openstatus.monitor.v1.HeaderAssertion.
|
|
82
|
+
* Use `create(HeaderAssertionSchema)` to create a new message.
|
|
83
|
+
*/
|
|
84
|
+
export declare const HeaderAssertionSchema: GenMessage<HeaderAssertion>;
|
|
85
|
+
/**
|
|
86
|
+
* RecordAssertion defines an assertion for DNS records.
|
|
87
|
+
*
|
|
88
|
+
* @generated from message openstatus.monitor.v1.RecordAssertion
|
|
89
|
+
*/
|
|
90
|
+
export type RecordAssertion = Message<"openstatus.monitor.v1.RecordAssertion"> & {
|
|
91
|
+
/**
|
|
92
|
+
* DNS record type (e.g., "A", "AAAA", "CNAME", "MX", "TXT").
|
|
93
|
+
*
|
|
94
|
+
* @generated from field: string record = 1;
|
|
95
|
+
*/
|
|
96
|
+
record: string;
|
|
97
|
+
/**
|
|
98
|
+
* Comparison operation (required, must not be UNSPECIFIED).
|
|
99
|
+
*
|
|
100
|
+
* @generated from field: openstatus.monitor.v1.RecordComparator comparator = 2;
|
|
101
|
+
*/
|
|
102
|
+
comparator: RecordComparator;
|
|
103
|
+
/**
|
|
104
|
+
* Target value to compare against.
|
|
105
|
+
*
|
|
106
|
+
* @generated from field: string target = 3;
|
|
107
|
+
*/
|
|
108
|
+
target: string;
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* Describes the message openstatus.monitor.v1.RecordAssertion.
|
|
112
|
+
* Use `create(RecordAssertionSchema)` to create a new message.
|
|
113
|
+
*/
|
|
114
|
+
export declare const RecordAssertionSchema: GenMessage<RecordAssertion>;
|
|
115
|
+
/**
|
|
116
|
+
* NumberComparator defines comparison operations for numeric values.
|
|
117
|
+
*
|
|
118
|
+
* @generated from enum openstatus.monitor.v1.NumberComparator
|
|
119
|
+
*/
|
|
120
|
+
export declare enum NumberComparator {
|
|
121
|
+
/**
|
|
122
|
+
* @generated from enum value: NUMBER_COMPARATOR_UNSPECIFIED = 0;
|
|
123
|
+
*/
|
|
124
|
+
UNSPECIFIED = 0,
|
|
125
|
+
/**
|
|
126
|
+
* @generated from enum value: NUMBER_COMPARATOR_EQUAL = 1;
|
|
127
|
+
*/
|
|
128
|
+
EQUAL = 1,
|
|
129
|
+
/**
|
|
130
|
+
* @generated from enum value: NUMBER_COMPARATOR_NOT_EQUAL = 2;
|
|
131
|
+
*/
|
|
132
|
+
NOT_EQUAL = 2,
|
|
133
|
+
/**
|
|
134
|
+
* @generated from enum value: NUMBER_COMPARATOR_GREATER_THAN = 3;
|
|
135
|
+
*/
|
|
136
|
+
GREATER_THAN = 3,
|
|
137
|
+
/**
|
|
138
|
+
* @generated from enum value: NUMBER_COMPARATOR_GREATER_THAN_OR_EQUAL = 4;
|
|
139
|
+
*/
|
|
140
|
+
GREATER_THAN_OR_EQUAL = 4,
|
|
141
|
+
/**
|
|
142
|
+
* @generated from enum value: NUMBER_COMPARATOR_LESS_THAN = 5;
|
|
143
|
+
*/
|
|
144
|
+
LESS_THAN = 5,
|
|
145
|
+
/**
|
|
146
|
+
* @generated from enum value: NUMBER_COMPARATOR_LESS_THAN_OR_EQUAL = 6;
|
|
147
|
+
*/
|
|
148
|
+
LESS_THAN_OR_EQUAL = 6
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Describes the enum openstatus.monitor.v1.NumberComparator.
|
|
152
|
+
*/
|
|
153
|
+
export declare const NumberComparatorSchema: GenEnum<NumberComparator>;
|
|
154
|
+
/**
|
|
155
|
+
* StringComparator defines comparison operations for string values.
|
|
156
|
+
*
|
|
157
|
+
* @generated from enum openstatus.monitor.v1.StringComparator
|
|
158
|
+
*/
|
|
159
|
+
export declare enum StringComparator {
|
|
160
|
+
/**
|
|
161
|
+
* @generated from enum value: STRING_COMPARATOR_UNSPECIFIED = 0;
|
|
162
|
+
*/
|
|
163
|
+
UNSPECIFIED = 0,
|
|
164
|
+
/**
|
|
165
|
+
* @generated from enum value: STRING_COMPARATOR_CONTAINS = 1;
|
|
166
|
+
*/
|
|
167
|
+
CONTAINS = 1,
|
|
168
|
+
/**
|
|
169
|
+
* @generated from enum value: STRING_COMPARATOR_NOT_CONTAINS = 2;
|
|
170
|
+
*/
|
|
171
|
+
NOT_CONTAINS = 2,
|
|
172
|
+
/**
|
|
173
|
+
* @generated from enum value: STRING_COMPARATOR_EQUAL = 3;
|
|
174
|
+
*/
|
|
175
|
+
EQUAL = 3,
|
|
176
|
+
/**
|
|
177
|
+
* @generated from enum value: STRING_COMPARATOR_NOT_EQUAL = 4;
|
|
178
|
+
*/
|
|
179
|
+
NOT_EQUAL = 4,
|
|
180
|
+
/**
|
|
181
|
+
* @generated from enum value: STRING_COMPARATOR_EMPTY = 5;
|
|
182
|
+
*/
|
|
183
|
+
EMPTY = 5,
|
|
184
|
+
/**
|
|
185
|
+
* @generated from enum value: STRING_COMPARATOR_NOT_EMPTY = 6;
|
|
186
|
+
*/
|
|
187
|
+
NOT_EMPTY = 6,
|
|
188
|
+
/**
|
|
189
|
+
* @generated from enum value: STRING_COMPARATOR_GREATER_THAN = 7;
|
|
190
|
+
*/
|
|
191
|
+
GREATER_THAN = 7,
|
|
192
|
+
/**
|
|
193
|
+
* @generated from enum value: STRING_COMPARATOR_GREATER_THAN_OR_EQUAL = 8;
|
|
194
|
+
*/
|
|
195
|
+
GREATER_THAN_OR_EQUAL = 8,
|
|
196
|
+
/**
|
|
197
|
+
* @generated from enum value: STRING_COMPARATOR_LESS_THAN = 9;
|
|
198
|
+
*/
|
|
199
|
+
LESS_THAN = 9,
|
|
200
|
+
/**
|
|
201
|
+
* @generated from enum value: STRING_COMPARATOR_LESS_THAN_OR_EQUAL = 10;
|
|
202
|
+
*/
|
|
203
|
+
LESS_THAN_OR_EQUAL = 10
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Describes the enum openstatus.monitor.v1.StringComparator.
|
|
207
|
+
*/
|
|
208
|
+
export declare const StringComparatorSchema: GenEnum<StringComparator>;
|
|
209
|
+
/**
|
|
210
|
+
* RecordComparator defines comparison operations for DNS records.
|
|
211
|
+
*
|
|
212
|
+
* @generated from enum openstatus.monitor.v1.RecordComparator
|
|
213
|
+
*/
|
|
214
|
+
export declare enum RecordComparator {
|
|
215
|
+
/**
|
|
216
|
+
* @generated from enum value: RECORD_COMPARATOR_UNSPECIFIED = 0;
|
|
217
|
+
*/
|
|
218
|
+
UNSPECIFIED = 0,
|
|
219
|
+
/**
|
|
220
|
+
* @generated from enum value: RECORD_COMPARATOR_EQUAL = 1;
|
|
221
|
+
*/
|
|
222
|
+
EQUAL = 1,
|
|
223
|
+
/**
|
|
224
|
+
* @generated from enum value: RECORD_COMPARATOR_NOT_EQUAL = 2;
|
|
225
|
+
*/
|
|
226
|
+
NOT_EQUAL = 2,
|
|
227
|
+
/**
|
|
228
|
+
* @generated from enum value: RECORD_COMPARATOR_CONTAINS = 3;
|
|
229
|
+
*/
|
|
230
|
+
CONTAINS = 3,
|
|
231
|
+
/**
|
|
232
|
+
* @generated from enum value: RECORD_COMPARATOR_NOT_CONTAINS = 4;
|
|
233
|
+
*/
|
|
234
|
+
NOT_CONTAINS = 4
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Describes the enum openstatus.monitor.v1.RecordComparator.
|
|
238
|
+
*/
|
|
239
|
+
export declare const RecordComparatorSchema: GenEnum<RecordComparator>;
|
|
240
|
+
//# sourceMappingURL=assertions_pb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assertions_pb.d.ts","sourceRoot":"","sources":["../../../../../src/gen/openstatus/monitor/v1/assertions_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,OAAO,EACP,OAAO,EACP,UAAU,EACX,MAAM,8BAA8B,CAAC;AAGtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oB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C1B;;OAEG;IACH,WAAW,IAAI;IAEf;;OAEG;IACH,KAAK,IAAI;IAET;;OAEG;IACH,SAAS,IAAI;IAEb;;OAEG;IACH,YAAY,IAAI;IAEhB;;OAEG;IACH,qBAAqB,IAAI;IAEzB;;OAEG;IACH,SAAS,IAAI;IAEb;;OAEG;IACH,kBAAkB,IAAI;CACvB;AAED;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,OAAO,CAAC,gBAAgB,CACT,CAAC;AAErD;;;;GAIG;AACH,oBAAY,gBAAgB;IAC1B;;OAEG;IACH,WAAW,IAAI;IAEf;;OAEG;IACH,QAAQ,IAAI;IAEZ;;OAEG;IACH,YAAY,IAAI;IAEhB;;OAEG;IACH,KAAK,IAAI;IAET;;OAEG;IACH,SAAS,IAAI;IAEb;;OAEG;IACH,KAAK,IAAI;IAET;;OAEG;IACH,SAAS,IAAI;IAEb;;OAEG;IACH,YAAY,IAAI;IAEhB;;OAEG;IACH,qBAAqB,IAAI;IAEzB;;OAEG;IACH,SAAS,IAAI;IAEb;;OAEG;IACH,kBAAkB,KAAK;CACxB;AAED;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,OAAO,CAAC,gBAAgB,CACT,CAAC;AAErD;;;;GAIG;AACH,oBAAY,gBAAgB;IAC1B;;OAEG;IACH,WAAW,IAAI;IAEf;;OAEG;IACH,KAAK,IAAI;IAET;;OAEG;IACH,SAAS,IAAI;IAEb;;OAEG;IACH,QAAQ,IAAI;IAEZ;;OAEG;IACH,YAAY,IAAI;CACjB;AAED;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,OAAO,CAAC,gBAAgB,CACT,CAAC"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts,import_extension=ts"
|
|
3
|
+
// @generated from file openstatus/monitor/v1/assertions.proto (package openstatus.monitor.v1, syntax proto3)
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.RecordComparatorSchema = exports.RecordComparator = exports.StringComparatorSchema = exports.StringComparator = exports.NumberComparatorSchema = exports.NumberComparator = exports.RecordAssertionSchema = exports.HeaderAssertionSchema = exports.BodyAssertionSchema = exports.StatusCodeAssertionSchema = exports.file_openstatus_monitor_v1_assertions = void 0;
|
|
7
|
+
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
8
|
+
const validate_pb_js_1 = require("../../../buf/validate/validate_pb.js");
|
|
9
|
+
/**
|
|
10
|
+
* Describes the file openstatus/monitor/v1/assertions.proto.
|
|
11
|
+
*/
|
|
12
|
+
exports.file_openstatus_monitor_v1_assertions = (0, codegenv2_1.fileDesc)("CiZvcGVuc3RhdHVzL21vbml0b3IvdjEvYXNzZXJ0aW9ucy5wcm90bxIVb3BlbnN0YXR1cy5tb25pdG9yLnYxIngKE1N0YXR1c0NvZGVBc3NlcnRpb24SGgoGdGFyZ2V0GAEgASgDQgq6SAciBRjXBChkEkUKCmNvbXBhcmF0b3IYAiABKA4yJy5vcGVuc3RhdHVzLm1vbml0b3IudjEuTnVtYmVyQ29tcGFyYXRvckIIukgFggECIAAiZgoNQm9keUFzc2VydGlvbhIOCgZ0YXJnZXQYASABKAkSRQoKY29tcGFyYXRvchgCIAEoDjInLm9wZW5zdGF0dXMubW9uaXRvci52MS5TdHJpbmdDb21wYXJhdG9yQgi6SAWCAQIgACJ+Cg9IZWFkZXJBc3NlcnRpb24SDgoGdGFyZ2V0GAEgASgJEkUKCmNvbXBhcmF0b3IYAiABKA4yJy5vcGVuc3RhdHVzLm1vbml0b3IudjEuU3RyaW5nQ29tcGFyYXRvckIIukgFggECIAASFAoDa2V5GAMgASgJQge6SARyAhABIpgBCg9SZWNvcmRBc3NlcnRpb24SLgoGcmVjb3JkGAEgASgJQh66SBtyGVIBQVIEQUFBQVIFQ05BTUVSAk1YUgNUWFQSRQoKY29tcGFyYXRvchgCIAEoDjInLm9wZ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QVRPUl9FUVVBTBABEh8KG1JFQ09SRF9DT01QQVJBVE9SX05PVF9FUVVBTBACEh4KGlJFQ09SRF9DT01QQVJBVE9SX0NPTlRBSU5TEAMSIgoeUkVDT1JEX0NPTVBBUkFUT1JfTk9UX0NPTlRBSU5TEARCU1pRZ2l0aHViLmNvbS9vcGVuc3RhdHVzaHEvb3BlbnN0YXR1cy9wYWNrYWdlcy9wcm90by9vcGVuc3RhdHVzL21vbml0b3IvdjE7bW9uaXRvcnYxYgZwcm90bzM", [validate_pb_js_1.file_buf_validate_validate]);
|
|
13
|
+
/**
|
|
14
|
+
* Describes the message openstatus.monitor.v1.StatusCodeAssertion.
|
|
15
|
+
* Use `create(StatusCodeAssertionSchema)` to create a new message.
|
|
16
|
+
*/
|
|
17
|
+
exports.StatusCodeAssertionSchema = (0, codegenv2_1.messageDesc)(exports.file_openstatus_monitor_v1_assertions, 0);
|
|
18
|
+
/**
|
|
19
|
+
* Describes the message openstatus.monitor.v1.BodyAssertion.
|
|
20
|
+
* Use `create(BodyAssertionSchema)` to create a new message.
|
|
21
|
+
*/
|
|
22
|
+
exports.BodyAssertionSchema = (0, codegenv2_1.messageDesc)(exports.file_openstatus_monitor_v1_assertions, 1);
|
|
23
|
+
/**
|
|
24
|
+
* Describes the message openstatus.monitor.v1.HeaderAssertion.
|
|
25
|
+
* Use `create(HeaderAssertionSchema)` to create a new message.
|
|
26
|
+
*/
|
|
27
|
+
exports.HeaderAssertionSchema = (0, codegenv2_1.messageDesc)(exports.file_openstatus_monitor_v1_assertions, 2);
|
|
28
|
+
/**
|
|
29
|
+
* Describes the message openstatus.monitor.v1.RecordAssertion.
|
|
30
|
+
* Use `create(RecordAssertionSchema)` to create a new message.
|
|
31
|
+
*/
|
|
32
|
+
exports.RecordAssertionSchema = (0, codegenv2_1.messageDesc)(exports.file_openstatus_monitor_v1_assertions, 3);
|
|
33
|
+
/**
|
|
34
|
+
* NumberComparator defines comparison operations for numeric values.
|
|
35
|
+
*
|
|
36
|
+
* @generated from enum openstatus.monitor.v1.NumberComparator
|
|
37
|
+
*/
|
|
38
|
+
var NumberComparator;
|
|
39
|
+
(function (NumberComparator) {
|
|
40
|
+
/**
|
|
41
|
+
* @generated from enum value: NUMBER_COMPARATOR_UNSPECIFIED = 0;
|
|
42
|
+
*/
|
|
43
|
+
NumberComparator[NumberComparator["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
44
|
+
/**
|
|
45
|
+
* @generated from enum value: NUMBER_COMPARATOR_EQUAL = 1;
|
|
46
|
+
*/
|
|
47
|
+
NumberComparator[NumberComparator["EQUAL"] = 1] = "EQUAL";
|
|
48
|
+
/**
|
|
49
|
+
* @generated from enum value: NUMBER_COMPARATOR_NOT_EQUAL = 2;
|
|
50
|
+
*/
|
|
51
|
+
NumberComparator[NumberComparator["NOT_EQUAL"] = 2] = "NOT_EQUAL";
|
|
52
|
+
/**
|
|
53
|
+
* @generated from enum value: NUMBER_COMPARATOR_GREATER_THAN = 3;
|
|
54
|
+
*/
|
|
55
|
+
NumberComparator[NumberComparator["GREATER_THAN"] = 3] = "GREATER_THAN";
|
|
56
|
+
/**
|
|
57
|
+
* @generated from enum value: NUMBER_COMPARATOR_GREATER_THAN_OR_EQUAL = 4;
|
|
58
|
+
*/
|
|
59
|
+
NumberComparator[NumberComparator["GREATER_THAN_OR_EQUAL"] = 4] = "GREATER_THAN_OR_EQUAL";
|
|
60
|
+
/**
|
|
61
|
+
* @generated from enum value: NUMBER_COMPARATOR_LESS_THAN = 5;
|
|
62
|
+
*/
|
|
63
|
+
NumberComparator[NumberComparator["LESS_THAN"] = 5] = "LESS_THAN";
|
|
64
|
+
/**
|
|
65
|
+
* @generated from enum value: NUMBER_COMPARATOR_LESS_THAN_OR_EQUAL = 6;
|
|
66
|
+
*/
|
|
67
|
+
NumberComparator[NumberComparator["LESS_THAN_OR_EQUAL"] = 6] = "LESS_THAN_OR_EQUAL";
|
|
68
|
+
})(NumberComparator || (exports.NumberComparator = NumberComparator = {}));
|
|
69
|
+
/**
|
|
70
|
+
* Describes the enum openstatus.monitor.v1.NumberComparator.
|
|
71
|
+
*/
|
|
72
|
+
exports.NumberComparatorSchema = (0, codegenv2_1.enumDesc)(exports.file_openstatus_monitor_v1_assertions, 0);
|
|
73
|
+
/**
|
|
74
|
+
* StringComparator defines comparison operations for string values.
|
|
75
|
+
*
|
|
76
|
+
* @generated from enum openstatus.monitor.v1.StringComparator
|
|
77
|
+
*/
|
|
78
|
+
var StringComparator;
|
|
79
|
+
(function (StringComparator) {
|
|
80
|
+
/**
|
|
81
|
+
* @generated from enum value: STRING_COMPARATOR_UNSPECIFIED = 0;
|
|
82
|
+
*/
|
|
83
|
+
StringComparator[StringComparator["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
84
|
+
/**
|
|
85
|
+
* @generated from enum value: STRING_COMPARATOR_CONTAINS = 1;
|
|
86
|
+
*/
|
|
87
|
+
StringComparator[StringComparator["CONTAINS"] = 1] = "CONTAINS";
|
|
88
|
+
/**
|
|
89
|
+
* @generated from enum value: STRING_COMPARATOR_NOT_CONTAINS = 2;
|
|
90
|
+
*/
|
|
91
|
+
StringComparator[StringComparator["NOT_CONTAINS"] = 2] = "NOT_CONTAINS";
|
|
92
|
+
/**
|
|
93
|
+
* @generated from enum value: STRING_COMPARATOR_EQUAL = 3;
|
|
94
|
+
*/
|
|
95
|
+
StringComparator[StringComparator["EQUAL"] = 3] = "EQUAL";
|
|
96
|
+
/**
|
|
97
|
+
* @generated from enum value: STRING_COMPARATOR_NOT_EQUAL = 4;
|
|
98
|
+
*/
|
|
99
|
+
StringComparator[StringComparator["NOT_EQUAL"] = 4] = "NOT_EQUAL";
|
|
100
|
+
/**
|
|
101
|
+
* @generated from enum value: STRING_COMPARATOR_EMPTY = 5;
|
|
102
|
+
*/
|
|
103
|
+
StringComparator[StringComparator["EMPTY"] = 5] = "EMPTY";
|
|
104
|
+
/**
|
|
105
|
+
* @generated from enum value: STRING_COMPARATOR_NOT_EMPTY = 6;
|
|
106
|
+
*/
|
|
107
|
+
StringComparator[StringComparator["NOT_EMPTY"] = 6] = "NOT_EMPTY";
|
|
108
|
+
/**
|
|
109
|
+
* @generated from enum value: STRING_COMPARATOR_GREATER_THAN = 7;
|
|
110
|
+
*/
|
|
111
|
+
StringComparator[StringComparator["GREATER_THAN"] = 7] = "GREATER_THAN";
|
|
112
|
+
/**
|
|
113
|
+
* @generated from enum value: STRING_COMPARATOR_GREATER_THAN_OR_EQUAL = 8;
|
|
114
|
+
*/
|
|
115
|
+
StringComparator[StringComparator["GREATER_THAN_OR_EQUAL"] = 8] = "GREATER_THAN_OR_EQUAL";
|
|
116
|
+
/**
|
|
117
|
+
* @generated from enum value: STRING_COMPARATOR_LESS_THAN = 9;
|
|
118
|
+
*/
|
|
119
|
+
StringComparator[StringComparator["LESS_THAN"] = 9] = "LESS_THAN";
|
|
120
|
+
/**
|
|
121
|
+
* @generated from enum value: STRING_COMPARATOR_LESS_THAN_OR_EQUAL = 10;
|
|
122
|
+
*/
|
|
123
|
+
StringComparator[StringComparator["LESS_THAN_OR_EQUAL"] = 10] = "LESS_THAN_OR_EQUAL";
|
|
124
|
+
})(StringComparator || (exports.StringComparator = StringComparator = {}));
|
|
125
|
+
/**
|
|
126
|
+
* Describes the enum openstatus.monitor.v1.StringComparator.
|
|
127
|
+
*/
|
|
128
|
+
exports.StringComparatorSchema = (0, codegenv2_1.enumDesc)(exports.file_openstatus_monitor_v1_assertions, 1);
|
|
129
|
+
/**
|
|
130
|
+
* RecordComparator defines comparison operations for DNS records.
|
|
131
|
+
*
|
|
132
|
+
* @generated from enum openstatus.monitor.v1.RecordComparator
|
|
133
|
+
*/
|
|
134
|
+
var RecordComparator;
|
|
135
|
+
(function (RecordComparator) {
|
|
136
|
+
/**
|
|
137
|
+
* @generated from enum value: RECORD_COMPARATOR_UNSPECIFIED = 0;
|
|
138
|
+
*/
|
|
139
|
+
RecordComparator[RecordComparator["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
140
|
+
/**
|
|
141
|
+
* @generated from enum value: RECORD_COMPARATOR_EQUAL = 1;
|
|
142
|
+
*/
|
|
143
|
+
RecordComparator[RecordComparator["EQUAL"] = 1] = "EQUAL";
|
|
144
|
+
/**
|
|
145
|
+
* @generated from enum value: RECORD_COMPARATOR_NOT_EQUAL = 2;
|
|
146
|
+
*/
|
|
147
|
+
RecordComparator[RecordComparator["NOT_EQUAL"] = 2] = "NOT_EQUAL";
|
|
148
|
+
/**
|
|
149
|
+
* @generated from enum value: RECORD_COMPARATOR_CONTAINS = 3;
|
|
150
|
+
*/
|
|
151
|
+
RecordComparator[RecordComparator["CONTAINS"] = 3] = "CONTAINS";
|
|
152
|
+
/**
|
|
153
|
+
* @generated from enum value: RECORD_COMPARATOR_NOT_CONTAINS = 4;
|
|
154
|
+
*/
|
|
155
|
+
RecordComparator[RecordComparator["NOT_CONTAINS"] = 4] = "NOT_CONTAINS";
|
|
156
|
+
})(RecordComparator || (exports.RecordComparator = RecordComparator = {}));
|
|
157
|
+
/**
|
|
158
|
+
* Describes the enum openstatus.monitor.v1.RecordComparator.
|
|
159
|
+
*/
|
|
160
|
+
exports.RecordComparatorSchema = (0, codegenv2_1.enumDesc)(exports.file_openstatus_monitor_v1_assertions, 2);
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { RecordAssertion } from "./assertions_pb.js";
|
|
3
|
+
import type { OpenTelemetryConfig } from "./http_monitor_pb.js";
|
|
4
|
+
import type { MonitorStatus, Periodicity, Region } from "./monitor_pb.js";
|
|
5
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
6
|
+
/**
|
|
7
|
+
* Describes the file openstatus/monitor/v1/dns_monitor.proto.
|
|
8
|
+
*/
|
|
9
|
+
export declare const file_openstatus_monitor_v1_dns_monitor: GenFile;
|
|
10
|
+
/**
|
|
11
|
+
* DNSMonitor defines the configuration for a DNS monitor.
|
|
12
|
+
*
|
|
13
|
+
* @generated from message openstatus.monitor.v1.DNSMonitor
|
|
14
|
+
*/
|
|
15
|
+
export type DNSMonitor = Message<"openstatus.monitor.v1.DNSMonitor"> & {
|
|
16
|
+
/**
|
|
17
|
+
* Unique identifier for the monitor (output only for create requests).
|
|
18
|
+
*
|
|
19
|
+
* @generated from field: string id = 1;
|
|
20
|
+
*/
|
|
21
|
+
id: string;
|
|
22
|
+
/**
|
|
23
|
+
* Name of the monitor (required, max 256 characters).
|
|
24
|
+
*
|
|
25
|
+
* @generated from field: string name = 2;
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* Domain to resolve (required, max 2048 characters).
|
|
30
|
+
*
|
|
31
|
+
* @generated from field: string uri = 3;
|
|
32
|
+
*/
|
|
33
|
+
uri: string;
|
|
34
|
+
/**
|
|
35
|
+
* Check periodicity (required).
|
|
36
|
+
*
|
|
37
|
+
* @generated from field: openstatus.monitor.v1.Periodicity periodicity = 4;
|
|
38
|
+
*/
|
|
39
|
+
periodicity: Periodicity;
|
|
40
|
+
/**
|
|
41
|
+
* Timeout in milliseconds (0-120000, defaults to 45000).
|
|
42
|
+
*
|
|
43
|
+
* @generated from field: int64 timeout = 5;
|
|
44
|
+
*/
|
|
45
|
+
timeout: bigint;
|
|
46
|
+
/**
|
|
47
|
+
* Latency threshold for degraded status in milliseconds (optional, 0-120000).
|
|
48
|
+
*
|
|
49
|
+
* @generated from field: optional int64 degraded_at = 6;
|
|
50
|
+
*/
|
|
51
|
+
degradedAt?: bigint;
|
|
52
|
+
/**
|
|
53
|
+
* Number of retry attempts (0-10, defaults to 3).
|
|
54
|
+
*
|
|
55
|
+
* @generated from field: int64 retry = 7;
|
|
56
|
+
*/
|
|
57
|
+
retry: bigint;
|
|
58
|
+
/**
|
|
59
|
+
* DNS record assertions for validation.
|
|
60
|
+
*
|
|
61
|
+
* @generated from field: repeated openstatus.monitor.v1.RecordAssertion record_assertions = 8;
|
|
62
|
+
*/
|
|
63
|
+
recordAssertions: RecordAssertion[];
|
|
64
|
+
/**
|
|
65
|
+
* Description of the monitor (optional).
|
|
66
|
+
*
|
|
67
|
+
* @generated from field: string description = 9;
|
|
68
|
+
*/
|
|
69
|
+
description: string;
|
|
70
|
+
/**
|
|
71
|
+
* Whether the monitor is active (defaults to false).
|
|
72
|
+
*
|
|
73
|
+
* @generated from field: bool active = 10;
|
|
74
|
+
*/
|
|
75
|
+
active: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Whether the monitor is publicly visible (defaults to false).
|
|
78
|
+
*
|
|
79
|
+
* @generated from field: bool public = 11;
|
|
80
|
+
*/
|
|
81
|
+
public: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Geographic regions to run checks from.
|
|
84
|
+
*
|
|
85
|
+
* @generated from field: repeated openstatus.monitor.v1.Region regions = 12;
|
|
86
|
+
*/
|
|
87
|
+
regions: Region[];
|
|
88
|
+
/**
|
|
89
|
+
* OpenTelemetry configuration for exporting metrics.
|
|
90
|
+
*
|
|
91
|
+
* @generated from field: openstatus.monitor.v1.OpenTelemetryConfig open_telemetry = 13;
|
|
92
|
+
*/
|
|
93
|
+
openTelemetry?: OpenTelemetryConfig;
|
|
94
|
+
/**
|
|
95
|
+
* Current operational status of the monitor.
|
|
96
|
+
*
|
|
97
|
+
* @generated from field: openstatus.monitor.v1.MonitorStatus status = 14;
|
|
98
|
+
*/
|
|
99
|
+
status: MonitorStatus;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* Describes the message openstatus.monitor.v1.DNSMonitor.
|
|
103
|
+
* Use `create(DNSMonitorSchema)` to create a new message.
|
|
104
|
+
*/
|
|
105
|
+
export declare const DNSMonitorSchema: GenMessage<DNSMonitor>;
|
|
106
|
+
//# sourceMappingURL=dns_monitor_pb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dns_monitor_pb.d.ts","sourceRoot":"","sources":["../../../../../src/gen/openstatus/monitor/v1/dns_monitor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