@miradorlabs/web-grpc 2.17.0 → 2.18.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miradorlabs/web-grpc",
3
- "version": "2.17.0",
3
+ "version": "2.18.0",
4
4
  "description": "Generated gRPC (grpc-js) client stubs for the Mirador web gateway.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -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(80).int32(message.severity);
2843
+ writer.uint32(72).int32(message.severity);
2851
2844
  }
2852
2845
  if (message.createdAt !== undefined) {
2853
- Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(90).fork()).join();
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(98).fork()).join();
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.evaluationIntervalSeconds = longToNumber(reader.int64());
2930
+ message.severity = reader.int32() as any;
2938
2931
  continue;
2939
2932
  }
2940
2933
  case 10: {
2941
- if (tag !== 80) {
2934
+ if (tag !== 82) {
2942
2935
  break;
2943
2936
  }
2944
2937
 
2945
- message.severity = reader.int32() as any;
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(56).int32(message.severity);
3164
+ writer.uint32(48).int32(message.severity);
3193
3165
  }
3194
3166
  if (message.organizationId !== "") {
3195
- writer.uint32(66).string(message.organizationId);
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 8: {
3264
- if (tag !== 66) {
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(40).int32(message.severity);
4041
+ writer.uint32(32).int32(message.severity);
4091
4042
  }
4092
4043
  if (message.integrationIds !== undefined) {
4093
- UpdateMetricRuleRequest_IntegrationIds.encode(message.integrationIds, writer.uint32(50).fork()).join();
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(58).fork()).join();
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.evaluationIntervalSeconds = longToNumber(reader.int64());
4088
+ message.severity = reader.int32() as any;
4138
4089
  continue;
4139
4090
  }
4140
4091
  case 5: {
4141
- if (tag !== 40) {
4092
+ if (tag !== 42) {
4142
4093
  break;
4143
4094
  }
4144
4095
 
4145
- message.severity = reader.int32() as any;
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)
@@ -6226,8 +6226,7 @@ description: jspb.Message.getFieldWithDefault(msg, 5, ""),
6226
6226
  enabled: jspb.Message.getFieldWithDefault(msg, 6, 0),
6227
6227
  integrationIdsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
6228
6228
  condition: (f = msg.getCondition()) && proto.gateway.web.v1.MetricRuleCondition.toObject(includeInstance, f),
6229
- evaluationIntervalSeconds: jspb.Message.getFieldWithDefault(msg, 9, 0),
6230
- severity: jspb.Message.getFieldWithDefault(msg, 10, 0),
6229
+ severity: jspb.Message.getFieldWithDefault(msg, 9, 0),
6231
6230
  createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
6232
6231
  updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
6233
6232
  };
@@ -6300,19 +6299,15 @@ proto.gateway.web.v1.MetricRule.deserializeBinaryFromReader = function(msg, read
6300
6299
  msg.setCondition(value);
6301
6300
  break;
6302
6301
  case 9:
6303
- var value = /** @type {number} */ (reader.readInt64());
6304
- msg.setEvaluationIntervalSeconds(value);
6305
- break;
6306
- case 10:
6307
6302
  var value = /** @type {!proto.gateway.web.v1.Severity} */ (reader.readEnum());
6308
6303
  msg.setSeverity(value);
6309
6304
  break;
6310
- case 11:
6305
+ case 10:
6311
6306
  var value = new google_protobuf_timestamp_pb.Timestamp;
6312
6307
  reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
6313
6308
  msg.setCreatedAt(value);
6314
6309
  break;
6315
- case 12:
6310
+ case 11:
6316
6311
  var value = new google_protobuf_timestamp_pb.Timestamp;
6317
6312
  reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
6318
6313
  msg.setUpdatedAt(value);
@@ -6403,24 +6398,17 @@ proto.gateway.web.v1.MetricRule.serializeBinaryToWriter = function(message, writ
6403
6398
  proto.gateway.web.v1.MetricRuleCondition.serializeBinaryToWriter
6404
6399
  );
6405
6400
  }
6406
- f = message.getEvaluationIntervalSeconds();
6407
- if (f !== 0) {
6408
- writer.writeInt64(
6409
- 9,
6410
- f
6411
- );
6412
- }
6413
6401
  f = message.getSeverity();
6414
6402
  if (f !== 0.0) {
6415
6403
  writer.writeEnum(
6416
- 10,
6404
+ 9,
6417
6405
  f
6418
6406
  );
6419
6407
  }
6420
6408
  f = message.getCreatedAt();
6421
6409
  if (f != null) {
6422
6410
  writer.writeMessage(
6423
- 11,
6411
+ 10,
6424
6412
  f,
6425
6413
  google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
6426
6414
  );
@@ -6428,7 +6416,7 @@ proto.gateway.web.v1.MetricRule.serializeBinaryToWriter = function(message, writ
6428
6416
  f = message.getUpdatedAt();
6429
6417
  if (f != null) {
6430
6418
  writer.writeMessage(
6431
- 12,
6419
+ 11,
6432
6420
  f,
6433
6421
  google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
6434
6422
  );
@@ -6619,29 +6607,11 @@ proto.gateway.web.v1.MetricRule.prototype.hasCondition = function() {
6619
6607
 
6620
6608
 
6621
6609
  /**
6622
- * optional int64 evaluation_interval_seconds = 9;
6623
- * @return {number}
6624
- */
6625
- proto.gateway.web.v1.MetricRule.prototype.getEvaluationIntervalSeconds = function() {
6626
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
6627
- };
6628
-
6629
-
6630
- /**
6631
- * @param {number} value
6632
- * @return {!proto.gateway.web.v1.MetricRule} returns this
6633
- */
6634
- proto.gateway.web.v1.MetricRule.prototype.setEvaluationIntervalSeconds = function(value) {
6635
- return jspb.Message.setProto3IntField(this, 9, value);
6636
- };
6637
-
6638
-
6639
- /**
6640
- * optional Severity severity = 10;
6610
+ * optional Severity severity = 9;
6641
6611
  * @return {!proto.gateway.web.v1.Severity}
6642
6612
  */
6643
6613
  proto.gateway.web.v1.MetricRule.prototype.getSeverity = function() {
6644
- return /** @type {!proto.gateway.web.v1.Severity} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
6614
+ return /** @type {!proto.gateway.web.v1.Severity} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
6645
6615
  };
6646
6616
 
6647
6617
 
@@ -6650,17 +6620,17 @@ proto.gateway.web.v1.MetricRule.prototype.getSeverity = function() {
6650
6620
  * @return {!proto.gateway.web.v1.MetricRule} returns this
6651
6621
  */
6652
6622
  proto.gateway.web.v1.MetricRule.prototype.setSeverity = function(value) {
6653
- return jspb.Message.setProto3EnumField(this, 10, value);
6623
+ return jspb.Message.setProto3EnumField(this, 9, value);
6654
6624
  };
6655
6625
 
6656
6626
 
6657
6627
  /**
6658
- * optional google.protobuf.Timestamp created_at = 11;
6628
+ * optional google.protobuf.Timestamp created_at = 10;
6659
6629
  * @return {?proto.google.protobuf.Timestamp}
6660
6630
  */
6661
6631
  proto.gateway.web.v1.MetricRule.prototype.getCreatedAt = function() {
6662
6632
  return /** @type{?proto.google.protobuf.Timestamp} */ (
6663
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 11));
6633
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10));
6664
6634
  };
6665
6635
 
6666
6636
 
@@ -6669,7 +6639,7 @@ proto.gateway.web.v1.MetricRule.prototype.getCreatedAt = function() {
6669
6639
  * @return {!proto.gateway.web.v1.MetricRule} returns this
6670
6640
  */
6671
6641
  proto.gateway.web.v1.MetricRule.prototype.setCreatedAt = function(value) {
6672
- return jspb.Message.setWrapperField(this, 11, value);
6642
+ return jspb.Message.setWrapperField(this, 10, value);
6673
6643
  };
6674
6644
 
6675
6645
 
@@ -6687,17 +6657,17 @@ proto.gateway.web.v1.MetricRule.prototype.clearCreatedAt = function() {
6687
6657
  * @return {boolean}
6688
6658
  */
6689
6659
  proto.gateway.web.v1.MetricRule.prototype.hasCreatedAt = function() {
6690
- return jspb.Message.getField(this, 11) != null;
6660
+ return jspb.Message.getField(this, 10) != null;
6691
6661
  };
6692
6662
 
6693
6663
 
6694
6664
  /**
6695
- * optional google.protobuf.Timestamp updated_at = 12;
6665
+ * optional google.protobuf.Timestamp updated_at = 11;
6696
6666
  * @return {?proto.google.protobuf.Timestamp}
6697
6667
  */
6698
6668
  proto.gateway.web.v1.MetricRule.prototype.getUpdatedAt = function() {
6699
6669
  return /** @type{?proto.google.protobuf.Timestamp} */ (
6700
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 12));
6670
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 11));
6701
6671
  };
6702
6672
 
6703
6673
 
@@ -6706,7 +6676,7 @@ proto.gateway.web.v1.MetricRule.prototype.getUpdatedAt = function() {
6706
6676
  * @return {!proto.gateway.web.v1.MetricRule} returns this
6707
6677
  */
6708
6678
  proto.gateway.web.v1.MetricRule.prototype.setUpdatedAt = function(value) {
6709
- return jspb.Message.setWrapperField(this, 12, value);
6679
+ return jspb.Message.setWrapperField(this, 11, value);
6710
6680
  };
6711
6681
 
6712
6682
 
@@ -6724,7 +6694,7 @@ proto.gateway.web.v1.MetricRule.prototype.clearUpdatedAt = function() {
6724
6694
  * @return {boolean}
6725
6695
  */
6726
6696
  proto.gateway.web.v1.MetricRule.prototype.hasUpdatedAt = function() {
6727
- return jspb.Message.getField(this, 12) != null;
6697
+ return jspb.Message.getField(this, 11) != null;
6728
6698
  };
6729
6699
 
6730
6700
 
@@ -6950,9 +6920,8 @@ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
6950
6920
  description: jspb.Message.getFieldWithDefault(msg, 3, ""),
6951
6921
  integrationIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
6952
6922
  condition: (f = msg.getCondition()) && proto.gateway.web.v1.MetricRuleCondition.toObject(includeInstance, f),
6953
- evaluationIntervalSeconds: jspb.Message.getFieldWithDefault(msg, 6, 0),
6954
- severity: jspb.Message.getFieldWithDefault(msg, 7, 0),
6955
- organizationId: jspb.Message.getFieldWithDefault(msg, 8, "")
6923
+ severity: jspb.Message.getFieldWithDefault(msg, 6, 0),
6924
+ organizationId: jspb.Message.getFieldWithDefault(msg, 7, "")
6956
6925
  };
6957
6926
 
6958
6927
  if (includeInstance) {
@@ -7011,14 +6980,10 @@ proto.gateway.web.v1.CreateMetricRuleRequest.deserializeBinaryFromReader = funct
7011
6980
  msg.setCondition(value);
7012
6981
  break;
7013
6982
  case 6:
7014
- var value = /** @type {number} */ (reader.readInt64());
7015
- msg.setEvaluationIntervalSeconds(value);
7016
- break;
7017
- case 7:
7018
6983
  var value = /** @type {!proto.gateway.web.v1.Severity} */ (reader.readEnum());
7019
6984
  msg.setSeverity(value);
7020
6985
  break;
7021
- case 8:
6986
+ case 7:
7022
6987
  var value = /** @type {string} */ (reader.readString());
7023
6988
  msg.setOrganizationId(value);
7024
6989
  break;
@@ -7087,24 +7052,17 @@ proto.gateway.web.v1.CreateMetricRuleRequest.serializeBinaryToWriter = function(
7087
7052
  proto.gateway.web.v1.MetricRuleCondition.serializeBinaryToWriter
7088
7053
  );
7089
7054
  }
7090
- f = message.getEvaluationIntervalSeconds();
7091
- if (f !== 0) {
7092
- writer.writeInt64(
7093
- 6,
7094
- f
7095
- );
7096
- }
7097
7055
  f = message.getSeverity();
7098
7056
  if (f !== 0.0) {
7099
7057
  writer.writeEnum(
7100
- 7,
7058
+ 6,
7101
7059
  f
7102
7060
  );
7103
7061
  }
7104
7062
  f = message.getOrganizationId();
7105
7063
  if (f.length > 0) {
7106
7064
  writer.writeString(
7107
- 8,
7065
+ 7,
7108
7066
  f
7109
7067
  );
7110
7068
  }
@@ -7240,29 +7198,11 @@ proto.gateway.web.v1.CreateMetricRuleRequest.prototype.hasCondition = function()
7240
7198
 
7241
7199
 
7242
7200
  /**
7243
- * optional int64 evaluation_interval_seconds = 6;
7244
- * @return {number}
7245
- */
7246
- proto.gateway.web.v1.CreateMetricRuleRequest.prototype.getEvaluationIntervalSeconds = function() {
7247
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
7248
- };
7249
-
7250
-
7251
- /**
7252
- * @param {number} value
7253
- * @return {!proto.gateway.web.v1.CreateMetricRuleRequest} returns this
7254
- */
7255
- proto.gateway.web.v1.CreateMetricRuleRequest.prototype.setEvaluationIntervalSeconds = function(value) {
7256
- return jspb.Message.setProto3IntField(this, 6, value);
7257
- };
7258
-
7259
-
7260
- /**
7261
- * optional Severity severity = 7;
7201
+ * optional Severity severity = 6;
7262
7202
  * @return {!proto.gateway.web.v1.Severity}
7263
7203
  */
7264
7204
  proto.gateway.web.v1.CreateMetricRuleRequest.prototype.getSeverity = function() {
7265
- return /** @type {!proto.gateway.web.v1.Severity} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
7205
+ return /** @type {!proto.gateway.web.v1.Severity} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
7266
7206
  };
7267
7207
 
7268
7208
 
@@ -7271,16 +7211,16 @@ proto.gateway.web.v1.CreateMetricRuleRequest.prototype.getSeverity = function()
7271
7211
  * @return {!proto.gateway.web.v1.CreateMetricRuleRequest} returns this
7272
7212
  */
7273
7213
  proto.gateway.web.v1.CreateMetricRuleRequest.prototype.setSeverity = function(value) {
7274
- return jspb.Message.setProto3EnumField(this, 7, value);
7214
+ return jspb.Message.setProto3EnumField(this, 6, value);
7275
7215
  };
7276
7216
 
7277
7217
 
7278
7218
  /**
7279
- * optional string organization_id = 8;
7219
+ * optional string organization_id = 7;
7280
7220
  * @return {string}
7281
7221
  */
7282
7222
  proto.gateway.web.v1.CreateMetricRuleRequest.prototype.getOrganizationId = function() {
7283
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
7223
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
7284
7224
  };
7285
7225
 
7286
7226
 
@@ -7289,7 +7229,7 @@ proto.gateway.web.v1.CreateMetricRuleRequest.prototype.getOrganizationId = funct
7289
7229
  * @return {!proto.gateway.web.v1.CreateMetricRuleRequest} returns this
7290
7230
  */
7291
7231
  proto.gateway.web.v1.CreateMetricRuleRequest.prototype.setOrganizationId = function(value) {
7292
- return jspb.Message.setProto3StringField(this, 8, value);
7232
+ return jspb.Message.setProto3StringField(this, 7, value);
7293
7233
  };
7294
7234
 
7295
7235
 
@@ -8842,8 +8782,7 @@ proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates.toObject = functi
8842
8782
  name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
8843
8783
  description: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
8844
8784
  enabled: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
8845
- evaluationIntervalSeconds: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f,
8846
- severity: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f,
8785
+ severity: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f,
8847
8786
  integrationIds: (f = msg.getIntegrationIds()) && proto.gateway.web.v1.UpdateMetricRuleRequest.IntegrationIds.toObject(includeInstance, f),
8848
8787
  condition: (f = msg.getCondition()) && proto.gateway.web.v1.UpdateMetricRuleRequest.Condition.toObject(includeInstance, f)
8849
8788
  };
@@ -8895,19 +8834,15 @@ proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates.deserializeBinary
8895
8834
  msg.setEnabled(value);
8896
8835
  break;
8897
8836
  case 4:
8898
- var value = /** @type {number} */ (reader.readInt64());
8899
- msg.setEvaluationIntervalSeconds(value);
8900
- break;
8901
- case 5:
8902
8837
  var value = /** @type {!proto.gateway.web.v1.Severity} */ (reader.readEnum());
8903
8838
  msg.setSeverity(value);
8904
8839
  break;
8905
- case 6:
8840
+ case 5:
8906
8841
  var value = new proto.gateway.web.v1.UpdateMetricRuleRequest.IntegrationIds;
8907
8842
  reader.readMessage(value,proto.gateway.web.v1.UpdateMetricRuleRequest.IntegrationIds.deserializeBinaryFromReader);
8908
8843
  msg.setIntegrationIds(value);
8909
8844
  break;
8910
- case 7:
8845
+ case 6:
8911
8846
  var value = new proto.gateway.web.v1.UpdateMetricRuleRequest.Condition;
8912
8847
  reader.readMessage(value,proto.gateway.web.v1.UpdateMetricRuleRequest.Condition.deserializeBinaryFromReader);
8913
8848
  msg.setCondition(value);
@@ -8962,24 +8897,17 @@ proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates.serializeBinaryTo
8962
8897
  f
8963
8898
  );
8964
8899
  }
8965
- f = /** @type {number} */ (jspb.Message.getField(message, 4));
8966
- if (f != null) {
8967
- writer.writeInt64(
8968
- 4,
8969
- f
8970
- );
8971
- }
8972
- f = /** @type {!proto.gateway.web.v1.Severity} */ (jspb.Message.getField(message, 5));
8900
+ f = /** @type {!proto.gateway.web.v1.Severity} */ (jspb.Message.getField(message, 4));
8973
8901
  if (f != null) {
8974
8902
  writer.writeEnum(
8975
- 5,
8903
+ 4,
8976
8904
  f
8977
8905
  );
8978
8906
  }
8979
8907
  f = message.getIntegrationIds();
8980
8908
  if (f != null) {
8981
8909
  writer.writeMessage(
8982
- 6,
8910
+ 5,
8983
8911
  f,
8984
8912
  proto.gateway.web.v1.UpdateMetricRuleRequest.IntegrationIds.serializeBinaryToWriter
8985
8913
  );
@@ -8987,7 +8915,7 @@ proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates.serializeBinaryTo
8987
8915
  f = message.getCondition();
8988
8916
  if (f != null) {
8989
8917
  writer.writeMessage(
8990
- 7,
8918
+ 6,
8991
8919
  f,
8992
8920
  proto.gateway.web.v1.UpdateMetricRuleRequest.Condition.serializeBinaryToWriter
8993
8921
  );
@@ -9104,47 +9032,11 @@ proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates.prototype.hasEnab
9104
9032
 
9105
9033
 
9106
9034
  /**
9107
- * optional int64 evaluation_interval_seconds = 4;
9108
- * @return {number}
9109
- */
9110
- proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates.prototype.getEvaluationIntervalSeconds = function() {
9111
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
9112
- };
9113
-
9114
-
9115
- /**
9116
- * @param {number} value
9117
- * @return {!proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates} returns this
9118
- */
9119
- proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates.prototype.setEvaluationIntervalSeconds = function(value) {
9120
- return jspb.Message.setField(this, 4, value);
9121
- };
9122
-
9123
-
9124
- /**
9125
- * Clears the field making it undefined.
9126
- * @return {!proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates} returns this
9127
- */
9128
- proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates.prototype.clearEvaluationIntervalSeconds = function() {
9129
- return jspb.Message.setField(this, 4, undefined);
9130
- };
9131
-
9132
-
9133
- /**
9134
- * Returns whether this field is set.
9135
- * @return {boolean}
9136
- */
9137
- proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates.prototype.hasEvaluationIntervalSeconds = function() {
9138
- return jspb.Message.getField(this, 4) != null;
9139
- };
9140
-
9141
-
9142
- /**
9143
- * optional Severity severity = 5;
9035
+ * optional Severity severity = 4;
9144
9036
  * @return {!proto.gateway.web.v1.Severity}
9145
9037
  */
9146
9038
  proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates.prototype.getSeverity = function() {
9147
- return /** @type {!proto.gateway.web.v1.Severity} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
9039
+ return /** @type {!proto.gateway.web.v1.Severity} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
9148
9040
  };
9149
9041
 
9150
9042
 
@@ -9153,7 +9045,7 @@ proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates.prototype.getSeve
9153
9045
  * @return {!proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates} returns this
9154
9046
  */
9155
9047
  proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates.prototype.setSeverity = function(value) {
9156
- return jspb.Message.setField(this, 5, value);
9048
+ return jspb.Message.setField(this, 4, value);
9157
9049
  };
9158
9050
 
9159
9051
 
@@ -9162,7 +9054,7 @@ proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates.prototype.setSeve
9162
9054
  * @return {!proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates} returns this
9163
9055
  */
9164
9056
  proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates.prototype.clearSeverity = function() {
9165
- return jspb.Message.setField(this, 5, undefined);
9057
+ return jspb.Message.setField(this, 4, undefined);
9166
9058
  };
9167
9059
 
9168
9060
 
@@ -9171,17 +9063,17 @@ proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates.prototype.clearSe
9171
9063
  * @return {boolean}
9172
9064
  */
9173
9065
  proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates.prototype.hasSeverity = function() {
9174
- return jspb.Message.getField(this, 5) != null;
9066
+ return jspb.Message.getField(this, 4) != null;
9175
9067
  };
9176
9068
 
9177
9069
 
9178
9070
  /**
9179
- * optional IntegrationIds integration_ids = 6;
9071
+ * optional IntegrationIds integration_ids = 5;
9180
9072
  * @return {?proto.gateway.web.v1.UpdateMetricRuleRequest.IntegrationIds}
9181
9073
  */
9182
9074
  proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates.prototype.getIntegrationIds = function() {
9183
9075
  return /** @type{?proto.gateway.web.v1.UpdateMetricRuleRequest.IntegrationIds} */ (
9184
- jspb.Message.getWrapperField(this, proto.gateway.web.v1.UpdateMetricRuleRequest.IntegrationIds, 6));
9076
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.UpdateMetricRuleRequest.IntegrationIds, 5));
9185
9077
  };
9186
9078
 
9187
9079
 
@@ -9190,7 +9082,7 @@ proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates.prototype.getInte
9190
9082
  * @return {!proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates} returns this
9191
9083
  */
9192
9084
  proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates.prototype.setIntegrationIds = function(value) {
9193
- return jspb.Message.setWrapperField(this, 6, value);
9085
+ return jspb.Message.setWrapperField(this, 5, value);
9194
9086
  };
9195
9087
 
9196
9088
 
@@ -9208,17 +9100,17 @@ proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates.prototype.clearIn
9208
9100
  * @return {boolean}
9209
9101
  */
9210
9102
  proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates.prototype.hasIntegrationIds = function() {
9211
- return jspb.Message.getField(this, 6) != null;
9103
+ return jspb.Message.getField(this, 5) != null;
9212
9104
  };
9213
9105
 
9214
9106
 
9215
9107
  /**
9216
- * optional Condition condition = 7;
9108
+ * optional Condition condition = 6;
9217
9109
  * @return {?proto.gateway.web.v1.UpdateMetricRuleRequest.Condition}
9218
9110
  */
9219
9111
  proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates.prototype.getCondition = function() {
9220
9112
  return /** @type{?proto.gateway.web.v1.UpdateMetricRuleRequest.Condition} */ (
9221
- jspb.Message.getWrapperField(this, proto.gateway.web.v1.UpdateMetricRuleRequest.Condition, 7));
9113
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.UpdateMetricRuleRequest.Condition, 6));
9222
9114
  };
9223
9115
 
9224
9116
 
@@ -9227,7 +9119,7 @@ proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates.prototype.getCond
9227
9119
  * @return {!proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates} returns this
9228
9120
  */
9229
9121
  proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates.prototype.setCondition = function(value) {
9230
- return jspb.Message.setWrapperField(this, 7, value);
9122
+ return jspb.Message.setWrapperField(this, 6, value);
9231
9123
  };
9232
9124
 
9233
9125
 
@@ -9245,7 +9137,7 @@ proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates.prototype.clearCo
9245
9137
  * @return {boolean}
9246
9138
  */
9247
9139
  proto.gateway.web.v1.UpdateMetricRuleRequest.MetricRuleUpdates.prototype.hasCondition = function() {
9248
- return jspb.Message.getField(this, 7) != null;
9140
+ return jspb.Message.getField(this, 6) != null;
9249
9141
  };
9250
9142
 
9251
9143