@miradorlabs/web-grpc 2.17.0 → 2.19.0
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/package.json +1 -1
- package/proto/gateway/web/v1/rule_gateway.ts +16 -82
- package/proto/gateway/web/v1/rule_gateway_pb.js +48 -156
- package/proto/gateway/web/v1/slo_gateway.ts +1757 -0
- package/proto/gateway/web/v1/slo_gateway_grpc_pb.js +179 -0
- package/proto/gateway/web/v1/slo_gateway_pb.js +3609 -0
- package/proto/gateway/web/v1/sla_gateway.ts +0 -2481
- package/proto/gateway/web/v1/sla_gateway_grpc_pb.js +0 -212
- package/proto/gateway/web/v1/sla_gateway_pb.js +0 -4845
package/package.json
CHANGED
|
@@ -250,7 +250,6 @@ export interface MetricRule {
|
|
|
250
250
|
enabled: EnabledStatus;
|
|
251
251
|
integrationIds: string[];
|
|
252
252
|
condition: MetricRuleCondition | undefined;
|
|
253
|
-
evaluationIntervalSeconds: number;
|
|
254
253
|
severity: Severity;
|
|
255
254
|
createdAt: Date | undefined;
|
|
256
255
|
updatedAt: Date | undefined;
|
|
@@ -267,7 +266,6 @@ export interface CreateMetricRuleRequest {
|
|
|
267
266
|
description: string;
|
|
268
267
|
integrationIds: string[];
|
|
269
268
|
condition: MetricRuleCondition | undefined;
|
|
270
|
-
evaluationIntervalSeconds: number;
|
|
271
269
|
severity: Severity;
|
|
272
270
|
organizationId: string;
|
|
273
271
|
}
|
|
@@ -318,7 +316,6 @@ export interface UpdateMetricRuleRequest_MetricRuleUpdates {
|
|
|
318
316
|
name?: string | undefined;
|
|
319
317
|
description?: string | undefined;
|
|
320
318
|
enabled?: EnabledStatus | undefined;
|
|
321
|
-
evaluationIntervalSeconds?: number | undefined;
|
|
322
319
|
severity?: Severity | undefined;
|
|
323
320
|
integrationIds: UpdateMetricRuleRequest_IntegrationIds | undefined;
|
|
324
321
|
condition: UpdateMetricRuleRequest_Condition | undefined;
|
|
@@ -2810,7 +2807,6 @@ function createBaseMetricRule(): MetricRule {
|
|
|
2810
2807
|
enabled: 0,
|
|
2811
2808
|
integrationIds: [],
|
|
2812
2809
|
condition: undefined,
|
|
2813
|
-
evaluationIntervalSeconds: 0,
|
|
2814
2810
|
severity: 0,
|
|
2815
2811
|
createdAt: undefined,
|
|
2816
2812
|
updatedAt: undefined,
|
|
@@ -2843,17 +2839,14 @@ export const MetricRule: MessageFns<MetricRule> = {
|
|
|
2843
2839
|
if (message.condition !== undefined) {
|
|
2844
2840
|
MetricRuleCondition.encode(message.condition, writer.uint32(66).fork()).join();
|
|
2845
2841
|
}
|
|
2846
|
-
if (message.evaluationIntervalSeconds !== 0) {
|
|
2847
|
-
writer.uint32(72).int64(message.evaluationIntervalSeconds);
|
|
2848
|
-
}
|
|
2849
2842
|
if (message.severity !== 0) {
|
|
2850
|
-
writer.uint32(
|
|
2843
|
+
writer.uint32(72).int32(message.severity);
|
|
2851
2844
|
}
|
|
2852
2845
|
if (message.createdAt !== undefined) {
|
|
2853
|
-
Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(
|
|
2846
|
+
Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(82).fork()).join();
|
|
2854
2847
|
}
|
|
2855
2848
|
if (message.updatedAt !== undefined) {
|
|
2856
|
-
Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(
|
|
2849
|
+
Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(90).fork()).join();
|
|
2857
2850
|
}
|
|
2858
2851
|
return writer;
|
|
2859
2852
|
},
|
|
@@ -2934,15 +2927,15 @@ export const MetricRule: MessageFns<MetricRule> = {
|
|
|
2934
2927
|
break;
|
|
2935
2928
|
}
|
|
2936
2929
|
|
|
2937
|
-
message.
|
|
2930
|
+
message.severity = reader.int32() as any;
|
|
2938
2931
|
continue;
|
|
2939
2932
|
}
|
|
2940
2933
|
case 10: {
|
|
2941
|
-
if (tag !==
|
|
2934
|
+
if (tag !== 82) {
|
|
2942
2935
|
break;
|
|
2943
2936
|
}
|
|
2944
2937
|
|
|
2945
|
-
message.
|
|
2938
|
+
message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
2946
2939
|
continue;
|
|
2947
2940
|
}
|
|
2948
2941
|
case 11: {
|
|
@@ -2950,14 +2943,6 @@ export const MetricRule: MessageFns<MetricRule> = {
|
|
|
2950
2943
|
break;
|
|
2951
2944
|
}
|
|
2952
2945
|
|
|
2953
|
-
message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
2954
|
-
continue;
|
|
2955
|
-
}
|
|
2956
|
-
case 12: {
|
|
2957
|
-
if (tag !== 98) {
|
|
2958
|
-
break;
|
|
2959
|
-
}
|
|
2960
|
-
|
|
2961
2946
|
message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
2962
2947
|
continue;
|
|
2963
2948
|
}
|
|
@@ -2992,11 +2977,6 @@ export const MetricRule: MessageFns<MetricRule> = {
|
|
|
2992
2977
|
? object.integration_ids.map((e: any) => globalThis.String(e))
|
|
2993
2978
|
: [],
|
|
2994
2979
|
condition: isSet(object.condition) ? MetricRuleCondition.fromJSON(object.condition) : undefined,
|
|
2995
|
-
evaluationIntervalSeconds: isSet(object.evaluationIntervalSeconds)
|
|
2996
|
-
? globalThis.Number(object.evaluationIntervalSeconds)
|
|
2997
|
-
: isSet(object.evaluation_interval_seconds)
|
|
2998
|
-
? globalThis.Number(object.evaluation_interval_seconds)
|
|
2999
|
-
: 0,
|
|
3000
2980
|
severity: isSet(object.severity) ? severityFromJSON(object.severity) : 0,
|
|
3001
2981
|
createdAt: isSet(object.createdAt)
|
|
3002
2982
|
? fromJsonTimestamp(object.createdAt)
|
|
@@ -3037,9 +3017,6 @@ export const MetricRule: MessageFns<MetricRule> = {
|
|
|
3037
3017
|
if (message.condition !== undefined) {
|
|
3038
3018
|
obj.condition = MetricRuleCondition.toJSON(message.condition);
|
|
3039
3019
|
}
|
|
3040
|
-
if (message.evaluationIntervalSeconds !== 0) {
|
|
3041
|
-
obj.evaluationIntervalSeconds = Math.round(message.evaluationIntervalSeconds);
|
|
3042
|
-
}
|
|
3043
3020
|
if (message.severity !== 0) {
|
|
3044
3021
|
obj.severity = severityToJSON(message.severity);
|
|
3045
3022
|
}
|
|
@@ -3067,7 +3044,6 @@ export const MetricRule: MessageFns<MetricRule> = {
|
|
|
3067
3044
|
message.condition = (object.condition !== undefined && object.condition !== null)
|
|
3068
3045
|
? MetricRuleCondition.fromPartial(object.condition)
|
|
3069
3046
|
: undefined;
|
|
3070
|
-
message.evaluationIntervalSeconds = object.evaluationIntervalSeconds ?? 0;
|
|
3071
3047
|
message.severity = object.severity ?? 0;
|
|
3072
3048
|
message.createdAt = object.createdAt ?? undefined;
|
|
3073
3049
|
message.updatedAt = object.updatedAt ?? undefined;
|
|
@@ -3162,7 +3138,6 @@ function createBaseCreateMetricRuleRequest(): CreateMetricRuleRequest {
|
|
|
3162
3138
|
description: "",
|
|
3163
3139
|
integrationIds: [],
|
|
3164
3140
|
condition: undefined,
|
|
3165
|
-
evaluationIntervalSeconds: 0,
|
|
3166
3141
|
severity: 0,
|
|
3167
3142
|
organizationId: "",
|
|
3168
3143
|
};
|
|
@@ -3185,14 +3160,11 @@ export const CreateMetricRuleRequest: MessageFns<CreateMetricRuleRequest> = {
|
|
|
3185
3160
|
if (message.condition !== undefined) {
|
|
3186
3161
|
MetricRuleCondition.encode(message.condition, writer.uint32(42).fork()).join();
|
|
3187
3162
|
}
|
|
3188
|
-
if (message.evaluationIntervalSeconds !== 0) {
|
|
3189
|
-
writer.uint32(48).int64(message.evaluationIntervalSeconds);
|
|
3190
|
-
}
|
|
3191
3163
|
if (message.severity !== 0) {
|
|
3192
|
-
writer.uint32(
|
|
3164
|
+
writer.uint32(48).int32(message.severity);
|
|
3193
3165
|
}
|
|
3194
3166
|
if (message.organizationId !== "") {
|
|
3195
|
-
writer.uint32(
|
|
3167
|
+
writer.uint32(58).string(message.organizationId);
|
|
3196
3168
|
}
|
|
3197
3169
|
return writer;
|
|
3198
3170
|
},
|
|
@@ -3249,19 +3221,11 @@ export const CreateMetricRuleRequest: MessageFns<CreateMetricRuleRequest> = {
|
|
|
3249
3221
|
break;
|
|
3250
3222
|
}
|
|
3251
3223
|
|
|
3252
|
-
message.evaluationIntervalSeconds = longToNumber(reader.int64());
|
|
3253
|
-
continue;
|
|
3254
|
-
}
|
|
3255
|
-
case 7: {
|
|
3256
|
-
if (tag !== 56) {
|
|
3257
|
-
break;
|
|
3258
|
-
}
|
|
3259
|
-
|
|
3260
3224
|
message.severity = reader.int32() as any;
|
|
3261
3225
|
continue;
|
|
3262
3226
|
}
|
|
3263
|
-
case
|
|
3264
|
-
if (tag !==
|
|
3227
|
+
case 7: {
|
|
3228
|
+
if (tag !== 58) {
|
|
3265
3229
|
break;
|
|
3266
3230
|
}
|
|
3267
3231
|
|
|
@@ -3292,11 +3256,6 @@ export const CreateMetricRuleRequest: MessageFns<CreateMetricRuleRequest> = {
|
|
|
3292
3256
|
? object.integration_ids.map((e: any) => globalThis.String(e))
|
|
3293
3257
|
: [],
|
|
3294
3258
|
condition: isSet(object.condition) ? MetricRuleCondition.fromJSON(object.condition) : undefined,
|
|
3295
|
-
evaluationIntervalSeconds: isSet(object.evaluationIntervalSeconds)
|
|
3296
|
-
? globalThis.Number(object.evaluationIntervalSeconds)
|
|
3297
|
-
: isSet(object.evaluation_interval_seconds)
|
|
3298
|
-
? globalThis.Number(object.evaluation_interval_seconds)
|
|
3299
|
-
: 0,
|
|
3300
3259
|
severity: isSet(object.severity) ? severityFromJSON(object.severity) : 0,
|
|
3301
3260
|
organizationId: isSet(object.organizationId)
|
|
3302
3261
|
? globalThis.String(object.organizationId)
|
|
@@ -3323,9 +3282,6 @@ export const CreateMetricRuleRequest: MessageFns<CreateMetricRuleRequest> = {
|
|
|
3323
3282
|
if (message.condition !== undefined) {
|
|
3324
3283
|
obj.condition = MetricRuleCondition.toJSON(message.condition);
|
|
3325
3284
|
}
|
|
3326
|
-
if (message.evaluationIntervalSeconds !== 0) {
|
|
3327
|
-
obj.evaluationIntervalSeconds = Math.round(message.evaluationIntervalSeconds);
|
|
3328
|
-
}
|
|
3329
3285
|
if (message.severity !== 0) {
|
|
3330
3286
|
obj.severity = severityToJSON(message.severity);
|
|
3331
3287
|
}
|
|
@@ -3347,7 +3303,6 @@ export const CreateMetricRuleRequest: MessageFns<CreateMetricRuleRequest> = {
|
|
|
3347
3303
|
message.condition = (object.condition !== undefined && object.condition !== null)
|
|
3348
3304
|
? MetricRuleCondition.fromPartial(object.condition)
|
|
3349
3305
|
: undefined;
|
|
3350
|
-
message.evaluationIntervalSeconds = object.evaluationIntervalSeconds ?? 0;
|
|
3351
3306
|
message.severity = object.severity ?? 0;
|
|
3352
3307
|
message.organizationId = object.organizationId ?? "";
|
|
3353
3308
|
return message;
|
|
@@ -4065,7 +4020,6 @@ function createBaseUpdateMetricRuleRequest_MetricRuleUpdates(): UpdateMetricRule
|
|
|
4065
4020
|
name: undefined,
|
|
4066
4021
|
description: undefined,
|
|
4067
4022
|
enabled: undefined,
|
|
4068
|
-
evaluationIntervalSeconds: undefined,
|
|
4069
4023
|
severity: undefined,
|
|
4070
4024
|
integrationIds: undefined,
|
|
4071
4025
|
condition: undefined,
|
|
@@ -4083,17 +4037,14 @@ export const UpdateMetricRuleRequest_MetricRuleUpdates: MessageFns<UpdateMetricR
|
|
|
4083
4037
|
if (message.enabled !== undefined) {
|
|
4084
4038
|
writer.uint32(24).int32(message.enabled);
|
|
4085
4039
|
}
|
|
4086
|
-
if (message.evaluationIntervalSeconds !== undefined) {
|
|
4087
|
-
writer.uint32(32).int64(message.evaluationIntervalSeconds);
|
|
4088
|
-
}
|
|
4089
4040
|
if (message.severity !== undefined) {
|
|
4090
|
-
writer.uint32(
|
|
4041
|
+
writer.uint32(32).int32(message.severity);
|
|
4091
4042
|
}
|
|
4092
4043
|
if (message.integrationIds !== undefined) {
|
|
4093
|
-
UpdateMetricRuleRequest_IntegrationIds.encode(message.integrationIds, writer.uint32(
|
|
4044
|
+
UpdateMetricRuleRequest_IntegrationIds.encode(message.integrationIds, writer.uint32(42).fork()).join();
|
|
4094
4045
|
}
|
|
4095
4046
|
if (message.condition !== undefined) {
|
|
4096
|
-
UpdateMetricRuleRequest_Condition.encode(message.condition, writer.uint32(
|
|
4047
|
+
UpdateMetricRuleRequest_Condition.encode(message.condition, writer.uint32(50).fork()).join();
|
|
4097
4048
|
}
|
|
4098
4049
|
return writer;
|
|
4099
4050
|
},
|
|
@@ -4134,15 +4085,15 @@ export const UpdateMetricRuleRequest_MetricRuleUpdates: MessageFns<UpdateMetricR
|
|
|
4134
4085
|
break;
|
|
4135
4086
|
}
|
|
4136
4087
|
|
|
4137
|
-
message.
|
|
4088
|
+
message.severity = reader.int32() as any;
|
|
4138
4089
|
continue;
|
|
4139
4090
|
}
|
|
4140
4091
|
case 5: {
|
|
4141
|
-
if (tag !==
|
|
4092
|
+
if (tag !== 42) {
|
|
4142
4093
|
break;
|
|
4143
4094
|
}
|
|
4144
4095
|
|
|
4145
|
-
message.
|
|
4096
|
+
message.integrationIds = UpdateMetricRuleRequest_IntegrationIds.decode(reader, reader.uint32());
|
|
4146
4097
|
continue;
|
|
4147
4098
|
}
|
|
4148
4099
|
case 6: {
|
|
@@ -4150,14 +4101,6 @@ export const UpdateMetricRuleRequest_MetricRuleUpdates: MessageFns<UpdateMetricR
|
|
|
4150
4101
|
break;
|
|
4151
4102
|
}
|
|
4152
4103
|
|
|
4153
|
-
message.integrationIds = UpdateMetricRuleRequest_IntegrationIds.decode(reader, reader.uint32());
|
|
4154
|
-
continue;
|
|
4155
|
-
}
|
|
4156
|
-
case 7: {
|
|
4157
|
-
if (tag !== 58) {
|
|
4158
|
-
break;
|
|
4159
|
-
}
|
|
4160
|
-
|
|
4161
4104
|
message.condition = UpdateMetricRuleRequest_Condition.decode(reader, reader.uint32());
|
|
4162
4105
|
continue;
|
|
4163
4106
|
}
|
|
@@ -4175,11 +4118,6 @@ export const UpdateMetricRuleRequest_MetricRuleUpdates: MessageFns<UpdateMetricR
|
|
|
4175
4118
|
name: isSet(object.name) ? globalThis.String(object.name) : undefined,
|
|
4176
4119
|
description: isSet(object.description) ? globalThis.String(object.description) : undefined,
|
|
4177
4120
|
enabled: isSet(object.enabled) ? enabledStatusFromJSON(object.enabled) : undefined,
|
|
4178
|
-
evaluationIntervalSeconds: isSet(object.evaluationIntervalSeconds)
|
|
4179
|
-
? globalThis.Number(object.evaluationIntervalSeconds)
|
|
4180
|
-
: isSet(object.evaluation_interval_seconds)
|
|
4181
|
-
? globalThis.Number(object.evaluation_interval_seconds)
|
|
4182
|
-
: undefined,
|
|
4183
4121
|
severity: isSet(object.severity) ? severityFromJSON(object.severity) : undefined,
|
|
4184
4122
|
integrationIds: isSet(object.integrationIds)
|
|
4185
4123
|
? UpdateMetricRuleRequest_IntegrationIds.fromJSON(object.integrationIds)
|
|
@@ -4201,9 +4139,6 @@ export const UpdateMetricRuleRequest_MetricRuleUpdates: MessageFns<UpdateMetricR
|
|
|
4201
4139
|
if (message.enabled !== undefined) {
|
|
4202
4140
|
obj.enabled = enabledStatusToJSON(message.enabled);
|
|
4203
4141
|
}
|
|
4204
|
-
if (message.evaluationIntervalSeconds !== undefined) {
|
|
4205
|
-
obj.evaluationIntervalSeconds = Math.round(message.evaluationIntervalSeconds);
|
|
4206
|
-
}
|
|
4207
4142
|
if (message.severity !== undefined) {
|
|
4208
4143
|
obj.severity = severityToJSON(message.severity);
|
|
4209
4144
|
}
|
|
@@ -4228,7 +4163,6 @@ export const UpdateMetricRuleRequest_MetricRuleUpdates: MessageFns<UpdateMetricR
|
|
|
4228
4163
|
message.name = object.name ?? undefined;
|
|
4229
4164
|
message.description = object.description ?? undefined;
|
|
4230
4165
|
message.enabled = object.enabled ?? undefined;
|
|
4231
|
-
message.evaluationIntervalSeconds = object.evaluationIntervalSeconds ?? undefined;
|
|
4232
4166
|
message.severity = object.severity ?? undefined;
|
|
4233
4167
|
message.integrationIds = (object.integrationIds !== undefined && object.integrationIds !== null)
|
|
4234
4168
|
? UpdateMetricRuleRequest_IntegrationIds.fromPartial(object.integrationIds)
|