github.com/cloudwan/edgelq-sdk@v1.15.4/monitoring/resources/v4/alerting_policy/alerting_policy.pb.go (about) 1 // Code generated by protoc-gen-goten-go 2 // File: edgelq/monitoring/proto/v4/alerting_policy.proto 3 // DO NOT EDIT!!! 4 5 package alerting_policy 6 7 import ( 8 "fmt" 9 "reflect" 10 "sync" 11 12 "google.golang.org/protobuf/encoding/protojson" 13 "google.golang.org/protobuf/proto" 14 preflect "google.golang.org/protobuf/reflect/protoreflect" 15 "google.golang.org/protobuf/runtime/protoimpl" 16 ) 17 18 // proto imports 19 import ( 20 notification_channel "github.com/cloudwan/edgelq-sdk/monitoring/resources/v4/notification_channel" 21 project "github.com/cloudwan/edgelq-sdk/monitoring/resources/v4/project" 22 meta "github.com/cloudwan/goten-sdk/types/meta" 23 ) 24 25 // Reference imports to suppress errors if they are not otherwise used. 26 var ( 27 _ = fmt.Errorf 28 _ = reflect.Method{} 29 _ = sync.Once{} 30 31 _ = protojson.MarshalOptions{} 32 _ = proto.MarshalOptions{} 33 _ = preflect.Value{} 34 _ = protoimpl.DescBuilder{} 35 ) 36 37 // make sure we're using proto imports 38 var ( 39 _ = ¬ification_channel.NotificationChannel{} 40 _ = &project.Project{} 41 _ = &meta.Meta{} 42 ) 43 44 const ( 45 // Verify that this generated code is sufficiently up-to-date. 46 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 47 // Verify that runtime/protoimpl is sufficiently up-to-date. 48 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 49 ) 50 51 type AlertingPolicy_Spec_ConditionsCombiner int32 52 53 const ( 54 AlertingPolicy_Spec_OR AlertingPolicy_Spec_ConditionsCombiner = 0 55 AlertingPolicy_Spec_AND AlertingPolicy_Spec_ConditionsCombiner = 1 56 ) 57 58 var ( 59 AlertingPolicy_Spec_ConditionsCombiner_name = map[int32]string{ 60 0: "OR", 61 1: "AND", 62 } 63 64 AlertingPolicy_Spec_ConditionsCombiner_value = map[string]int32{ 65 "OR": 0, 66 "AND": 1, 67 } 68 ) 69 70 func (x AlertingPolicy_Spec_ConditionsCombiner) Enum() *AlertingPolicy_Spec_ConditionsCombiner { 71 p := new(AlertingPolicy_Spec_ConditionsCombiner) 72 *p = x 73 return p 74 } 75 76 func (x AlertingPolicy_Spec_ConditionsCombiner) String() string { 77 return protoimpl.X.EnumStringOf(x.Descriptor(), preflect.EnumNumber(x)) 78 } 79 80 func (AlertingPolicy_Spec_ConditionsCombiner) Descriptor() preflect.EnumDescriptor { 81 return edgelq_monitoring_proto_v4_alerting_policy_proto_enumTypes[0].Descriptor() 82 } 83 84 func (AlertingPolicy_Spec_ConditionsCombiner) Type() preflect.EnumType { 85 return &edgelq_monitoring_proto_v4_alerting_policy_proto_enumTypes[0] 86 } 87 88 func (x AlertingPolicy_Spec_ConditionsCombiner) Number() preflect.EnumNumber { 89 return preflect.EnumNumber(x) 90 } 91 92 // Deprecated, Use AlertingPolicy_Spec_ConditionsCombiner.ProtoReflect.Descriptor instead. 93 func (AlertingPolicy_Spec_ConditionsCombiner) EnumDescriptor() ([]byte, []int) { 94 return edgelq_monitoring_proto_v4_alerting_policy_proto_rawDescGZIP(), []int{0, 1, 0} 95 } 96 97 // AlertingPolicy Resource 98 type AlertingPolicy struct { 99 state protoimpl.MessageState 100 sizeCache protoimpl.SizeCache 101 unknownFields protoimpl.UnknownFields 102 // Name of AlertingPolicy 103 // When creating a new instance, this field is optional and if not provided, 104 // it will be generated automatically. Last ID segment must conform to the 105 // following regex: [a-z][a-z0-9\\-]{0,28}[a-z0-9] 106 Name *Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty"` 107 // Metadata is an object with information like create, update and delete time 108 // (for async deleted resources), has user labels/annotations, sharding 109 // information, multi-region syncing information and may have non-schema 110 // owners (useful for taking ownership of resources belonging to lower level 111 // services by higher ones). 112 Metadata *meta.Meta `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` 113 // display name 114 DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` 115 // Long description 116 Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` 117 Documentation *AlertingPolicy_Documentation `protobuf:"bytes,5,opt,name=documentation,proto3" json:"documentation,omitempty"` 118 // Spec 119 Spec *AlertingPolicy_Spec `protobuf:"bytes,6,opt,name=spec,proto3" json:"spec,omitempty"` 120 State *AlertingPolicy_State `protobuf:"bytes,7,opt,name=state,proto3" json:"state,omitempty"` 121 } 122 123 func (m *AlertingPolicy) Reset() { 124 *m = AlertingPolicy{} 125 if protoimpl.UnsafeEnabled { 126 mi := &edgelq_monitoring_proto_v4_alerting_policy_proto_msgTypes[0] 127 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 128 ms.StoreMessageInfo(mi) 129 } 130 } 131 132 func (m *AlertingPolicy) String() string { 133 return protoimpl.X.MessageStringOf(m) 134 } 135 136 func (*AlertingPolicy) ProtoMessage() {} 137 138 func (m *AlertingPolicy) ProtoReflect() preflect.Message { 139 mi := &edgelq_monitoring_proto_v4_alerting_policy_proto_msgTypes[0] 140 if protoimpl.UnsafeEnabled && m != nil { 141 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 142 if ms.LoadMessageInfo() == nil { 143 ms.StoreMessageInfo(mi) 144 } 145 return ms 146 } 147 return mi.MessageOf(m) 148 } 149 150 func (*AlertingPolicy) GotenMessage() {} 151 152 // Deprecated, Use AlertingPolicy.ProtoReflect.Descriptor instead. 153 func (*AlertingPolicy) Descriptor() ([]byte, []int) { 154 return edgelq_monitoring_proto_v4_alerting_policy_proto_rawDescGZIP(), []int{0} 155 } 156 157 func (m *AlertingPolicy) Unmarshal(b []byte) error { 158 return proto.Unmarshal(b, m) 159 } 160 161 func (m *AlertingPolicy) Marshal() ([]byte, error) { 162 return proto.Marshal(m) 163 } 164 165 func (m *AlertingPolicy) MarshalJSON() ([]byte, error) { 166 return protojson.MarshalOptions{}.Marshal(m) 167 } 168 169 func (m *AlertingPolicy) UnmarshalJSON(data []byte) error { 170 return protojson.Unmarshal(data, m) 171 } 172 173 func (m *AlertingPolicy) GetName() *Name { 174 if m != nil { 175 return m.Name 176 } 177 return nil 178 } 179 180 func (m *AlertingPolicy) GetMetadata() *meta.Meta { 181 if m != nil { 182 return m.Metadata 183 } 184 return nil 185 } 186 187 func (m *AlertingPolicy) GetDisplayName() string { 188 if m != nil { 189 return m.DisplayName 190 } 191 return "" 192 } 193 194 func (m *AlertingPolicy) GetDescription() string { 195 if m != nil { 196 return m.Description 197 } 198 return "" 199 } 200 201 func (m *AlertingPolicy) GetDocumentation() *AlertingPolicy_Documentation { 202 if m != nil { 203 return m.Documentation 204 } 205 return nil 206 } 207 208 func (m *AlertingPolicy) GetSpec() *AlertingPolicy_Spec { 209 if m != nil { 210 return m.Spec 211 } 212 return nil 213 } 214 215 func (m *AlertingPolicy) GetState() *AlertingPolicy_State { 216 if m != nil { 217 return m.State 218 } 219 return nil 220 } 221 222 func (m *AlertingPolicy) SetName(fv *Name) { 223 if m == nil { 224 panic(fmt.Errorf("can't set %s on nil %s", "Name", "AlertingPolicy")) 225 } 226 m.Name = fv 227 } 228 229 func (m *AlertingPolicy) SetMetadata(fv *meta.Meta) { 230 if m == nil { 231 panic(fmt.Errorf("can't set %s on nil %s", "Metadata", "AlertingPolicy")) 232 } 233 m.Metadata = fv 234 } 235 236 func (m *AlertingPolicy) SetDisplayName(fv string) { 237 if m == nil { 238 panic(fmt.Errorf("can't set %s on nil %s", "DisplayName", "AlertingPolicy")) 239 } 240 m.DisplayName = fv 241 } 242 243 func (m *AlertingPolicy) SetDescription(fv string) { 244 if m == nil { 245 panic(fmt.Errorf("can't set %s on nil %s", "Description", "AlertingPolicy")) 246 } 247 m.Description = fv 248 } 249 250 func (m *AlertingPolicy) SetDocumentation(fv *AlertingPolicy_Documentation) { 251 if m == nil { 252 panic(fmt.Errorf("can't set %s on nil %s", "Documentation", "AlertingPolicy")) 253 } 254 m.Documentation = fv 255 } 256 257 func (m *AlertingPolicy) SetSpec(fv *AlertingPolicy_Spec) { 258 if m == nil { 259 panic(fmt.Errorf("can't set %s on nil %s", "Spec", "AlertingPolicy")) 260 } 261 m.Spec = fv 262 } 263 264 func (m *AlertingPolicy) SetState(fv *AlertingPolicy_State) { 265 if m == nil { 266 panic(fmt.Errorf("can't set %s on nil %s", "State", "AlertingPolicy")) 267 } 268 m.State = fv 269 } 270 271 // Documentation 272 type AlertingPolicy_Documentation struct { 273 state protoimpl.MessageState 274 sizeCache protoimpl.SizeCache 275 unknownFields protoimpl.UnknownFields 276 // Documentation content 277 Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` 278 // documentation mime type. Only `"text/markdown"` is supported. 279 MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` 280 } 281 282 func (m *AlertingPolicy_Documentation) Reset() { 283 *m = AlertingPolicy_Documentation{} 284 if protoimpl.UnsafeEnabled { 285 mi := &edgelq_monitoring_proto_v4_alerting_policy_proto_msgTypes[1] 286 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 287 ms.StoreMessageInfo(mi) 288 } 289 } 290 291 func (m *AlertingPolicy_Documentation) String() string { 292 return protoimpl.X.MessageStringOf(m) 293 } 294 295 func (*AlertingPolicy_Documentation) ProtoMessage() {} 296 297 func (m *AlertingPolicy_Documentation) ProtoReflect() preflect.Message { 298 mi := &edgelq_monitoring_proto_v4_alerting_policy_proto_msgTypes[1] 299 if protoimpl.UnsafeEnabled && m != nil { 300 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 301 if ms.LoadMessageInfo() == nil { 302 ms.StoreMessageInfo(mi) 303 } 304 return ms 305 } 306 return mi.MessageOf(m) 307 } 308 309 func (*AlertingPolicy_Documentation) GotenMessage() {} 310 311 // Deprecated, Use AlertingPolicy_Documentation.ProtoReflect.Descriptor instead. 312 func (*AlertingPolicy_Documentation) Descriptor() ([]byte, []int) { 313 return edgelq_monitoring_proto_v4_alerting_policy_proto_rawDescGZIP(), []int{0, 0} 314 } 315 316 func (m *AlertingPolicy_Documentation) Unmarshal(b []byte) error { 317 return proto.Unmarshal(b, m) 318 } 319 320 func (m *AlertingPolicy_Documentation) Marshal() ([]byte, error) { 321 return proto.Marshal(m) 322 } 323 324 func (m *AlertingPolicy_Documentation) MarshalJSON() ([]byte, error) { 325 return protojson.MarshalOptions{}.Marshal(m) 326 } 327 328 func (m *AlertingPolicy_Documentation) UnmarshalJSON(data []byte) error { 329 return protojson.Unmarshal(data, m) 330 } 331 332 func (m *AlertingPolicy_Documentation) GetContent() string { 333 if m != nil { 334 return m.Content 335 } 336 return "" 337 } 338 339 func (m *AlertingPolicy_Documentation) GetMimeType() string { 340 if m != nil { 341 return m.MimeType 342 } 343 return "" 344 } 345 346 func (m *AlertingPolicy_Documentation) SetContent(fv string) { 347 if m == nil { 348 panic(fmt.Errorf("can't set %s on nil %s", "Content", "AlertingPolicy_Documentation")) 349 } 350 m.Content = fv 351 } 352 353 func (m *AlertingPolicy_Documentation) SetMimeType(fv string) { 354 if m == nil { 355 panic(fmt.Errorf("can't set %s on nil %s", "MimeType", "AlertingPolicy_Documentation")) 356 } 357 m.MimeType = fv 358 } 359 360 type AlertingPolicy_Spec struct { 361 state protoimpl.MessageState 362 sizeCache protoimpl.SizeCache 363 unknownFields protoimpl.UnknownFields 364 // Whether policy is enabled and will evaluate any conditions 365 // Note: If any existing fired alerts are present, 366 // they will not be resolved automatically 367 // TODO: consider if they should? 368 Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` 369 // Condition Combiner when deciding if ANY (OR) or ALL (AND) conditions for 370 // given subset of resource labels must fire in order to trigger an alert 371 // TODO: Add support to AND 372 ConditionCombiner AlertingPolicy_Spec_ConditionsCombiner `protobuf:"varint,2,opt,name=condition_combiner,json=conditionCombiner,proto3,enum=ntt.monitoring.v4.AlertingPolicy_Spec_ConditionsCombiner" json:"condition_combiner,omitempty"` 373 // Notification specification 374 Notification *AlertingPolicy_Spec_Notification `protobuf:"bytes,4,opt,name=notification,proto3" json:"notification,omitempty"` 375 } 376 377 func (m *AlertingPolicy_Spec) Reset() { 378 *m = AlertingPolicy_Spec{} 379 if protoimpl.UnsafeEnabled { 380 mi := &edgelq_monitoring_proto_v4_alerting_policy_proto_msgTypes[2] 381 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 382 ms.StoreMessageInfo(mi) 383 } 384 } 385 386 func (m *AlertingPolicy_Spec) String() string { 387 return protoimpl.X.MessageStringOf(m) 388 } 389 390 func (*AlertingPolicy_Spec) ProtoMessage() {} 391 392 func (m *AlertingPolicy_Spec) ProtoReflect() preflect.Message { 393 mi := &edgelq_monitoring_proto_v4_alerting_policy_proto_msgTypes[2] 394 if protoimpl.UnsafeEnabled && m != nil { 395 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 396 if ms.LoadMessageInfo() == nil { 397 ms.StoreMessageInfo(mi) 398 } 399 return ms 400 } 401 return mi.MessageOf(m) 402 } 403 404 func (*AlertingPolicy_Spec) GotenMessage() {} 405 406 // Deprecated, Use AlertingPolicy_Spec.ProtoReflect.Descriptor instead. 407 func (*AlertingPolicy_Spec) Descriptor() ([]byte, []int) { 408 return edgelq_monitoring_proto_v4_alerting_policy_proto_rawDescGZIP(), []int{0, 1} 409 } 410 411 func (m *AlertingPolicy_Spec) Unmarshal(b []byte) error { 412 return proto.Unmarshal(b, m) 413 } 414 415 func (m *AlertingPolicy_Spec) Marshal() ([]byte, error) { 416 return proto.Marshal(m) 417 } 418 419 func (m *AlertingPolicy_Spec) MarshalJSON() ([]byte, error) { 420 return protojson.MarshalOptions{}.Marshal(m) 421 } 422 423 func (m *AlertingPolicy_Spec) UnmarshalJSON(data []byte) error { 424 return protojson.Unmarshal(data, m) 425 } 426 427 func (m *AlertingPolicy_Spec) GetEnabled() bool { 428 if m != nil { 429 return m.Enabled 430 } 431 return false 432 } 433 434 func (m *AlertingPolicy_Spec) GetConditionCombiner() AlertingPolicy_Spec_ConditionsCombiner { 435 if m != nil { 436 return m.ConditionCombiner 437 } 438 return AlertingPolicy_Spec_OR 439 } 440 441 func (m *AlertingPolicy_Spec) GetNotification() *AlertingPolicy_Spec_Notification { 442 if m != nil { 443 return m.Notification 444 } 445 return nil 446 } 447 448 func (m *AlertingPolicy_Spec) SetEnabled(fv bool) { 449 if m == nil { 450 panic(fmt.Errorf("can't set %s on nil %s", "Enabled", "AlertingPolicy_Spec")) 451 } 452 m.Enabled = fv 453 } 454 455 func (m *AlertingPolicy_Spec) SetConditionCombiner(fv AlertingPolicy_Spec_ConditionsCombiner) { 456 if m == nil { 457 panic(fmt.Errorf("can't set %s on nil %s", "ConditionCombiner", "AlertingPolicy_Spec")) 458 } 459 m.ConditionCombiner = fv 460 } 461 462 func (m *AlertingPolicy_Spec) SetNotification(fv *AlertingPolicy_Spec_Notification) { 463 if m == nil { 464 panic(fmt.Errorf("can't set %s on nil %s", "Notification", "AlertingPolicy_Spec")) 465 } 466 m.Notification = fv 467 } 468 469 type AlertingPolicy_State struct { 470 state protoimpl.MessageState 471 sizeCache protoimpl.SizeCache 472 unknownFields protoimpl.UnknownFields 473 // Number of ongoing alerts (incident has not ended) 474 ActiveAlertsCount int64 `protobuf:"varint,1,opt,name=active_alerts_count,json=activeAlertsCount,proto3" json:"active_alerts_count,omitempty"` 475 } 476 477 func (m *AlertingPolicy_State) Reset() { 478 *m = AlertingPolicy_State{} 479 if protoimpl.UnsafeEnabled { 480 mi := &edgelq_monitoring_proto_v4_alerting_policy_proto_msgTypes[3] 481 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 482 ms.StoreMessageInfo(mi) 483 } 484 } 485 486 func (m *AlertingPolicy_State) String() string { 487 return protoimpl.X.MessageStringOf(m) 488 } 489 490 func (*AlertingPolicy_State) ProtoMessage() {} 491 492 func (m *AlertingPolicy_State) ProtoReflect() preflect.Message { 493 mi := &edgelq_monitoring_proto_v4_alerting_policy_proto_msgTypes[3] 494 if protoimpl.UnsafeEnabled && m != nil { 495 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 496 if ms.LoadMessageInfo() == nil { 497 ms.StoreMessageInfo(mi) 498 } 499 return ms 500 } 501 return mi.MessageOf(m) 502 } 503 504 func (*AlertingPolicy_State) GotenMessage() {} 505 506 // Deprecated, Use AlertingPolicy_State.ProtoReflect.Descriptor instead. 507 func (*AlertingPolicy_State) Descriptor() ([]byte, []int) { 508 return edgelq_monitoring_proto_v4_alerting_policy_proto_rawDescGZIP(), []int{0, 2} 509 } 510 511 func (m *AlertingPolicy_State) Unmarshal(b []byte) error { 512 return proto.Unmarshal(b, m) 513 } 514 515 func (m *AlertingPolicy_State) Marshal() ([]byte, error) { 516 return proto.Marshal(m) 517 } 518 519 func (m *AlertingPolicy_State) MarshalJSON() ([]byte, error) { 520 return protojson.MarshalOptions{}.Marshal(m) 521 } 522 523 func (m *AlertingPolicy_State) UnmarshalJSON(data []byte) error { 524 return protojson.Unmarshal(data, m) 525 } 526 527 func (m *AlertingPolicy_State) GetActiveAlertsCount() int64 { 528 if m != nil { 529 return m.ActiveAlertsCount 530 } 531 return int64(0) 532 } 533 534 func (m *AlertingPolicy_State) SetActiveAlertsCount(fv int64) { 535 if m == nil { 536 panic(fmt.Errorf("can't set %s on nil %s", "ActiveAlertsCount", "AlertingPolicy_State")) 537 } 538 m.ActiveAlertsCount = fv 539 } 540 541 // Notification specification for a given Policy 542 type AlertingPolicy_Spec_Notification struct { 543 state protoimpl.MessageState 544 sizeCache protoimpl.SizeCache 545 unknownFields protoimpl.UnknownFields 546 // Enabled flag determines whether any notifications will be sent 547 Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` 548 Channels []*notification_channel.Reference `protobuf:"bytes,3,rep,customtype=Reference,name=channels,proto3" json:"channels,omitempty"` 549 } 550 551 func (m *AlertingPolicy_Spec_Notification) Reset() { 552 *m = AlertingPolicy_Spec_Notification{} 553 if protoimpl.UnsafeEnabled { 554 mi := &edgelq_monitoring_proto_v4_alerting_policy_proto_msgTypes[4] 555 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 556 ms.StoreMessageInfo(mi) 557 } 558 } 559 560 func (m *AlertingPolicy_Spec_Notification) String() string { 561 return protoimpl.X.MessageStringOf(m) 562 } 563 564 func (*AlertingPolicy_Spec_Notification) ProtoMessage() {} 565 566 func (m *AlertingPolicy_Spec_Notification) ProtoReflect() preflect.Message { 567 mi := &edgelq_monitoring_proto_v4_alerting_policy_proto_msgTypes[4] 568 if protoimpl.UnsafeEnabled && m != nil { 569 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 570 if ms.LoadMessageInfo() == nil { 571 ms.StoreMessageInfo(mi) 572 } 573 return ms 574 } 575 return mi.MessageOf(m) 576 } 577 578 func (*AlertingPolicy_Spec_Notification) GotenMessage() {} 579 580 // Deprecated, Use AlertingPolicy_Spec_Notification.ProtoReflect.Descriptor instead. 581 func (*AlertingPolicy_Spec_Notification) Descriptor() ([]byte, []int) { 582 return edgelq_monitoring_proto_v4_alerting_policy_proto_rawDescGZIP(), []int{0, 1, 0} 583 } 584 585 func (m *AlertingPolicy_Spec_Notification) Unmarshal(b []byte) error { 586 return proto.Unmarshal(b, m) 587 } 588 589 func (m *AlertingPolicy_Spec_Notification) Marshal() ([]byte, error) { 590 return proto.Marshal(m) 591 } 592 593 func (m *AlertingPolicy_Spec_Notification) MarshalJSON() ([]byte, error) { 594 return protojson.MarshalOptions{}.Marshal(m) 595 } 596 597 func (m *AlertingPolicy_Spec_Notification) UnmarshalJSON(data []byte) error { 598 return protojson.Unmarshal(data, m) 599 } 600 601 func (m *AlertingPolicy_Spec_Notification) GetEnabled() bool { 602 if m != nil { 603 return m.Enabled 604 } 605 return false 606 } 607 608 func (m *AlertingPolicy_Spec_Notification) GetChannels() []*notification_channel.Reference { 609 if m != nil { 610 return m.Channels 611 } 612 return nil 613 } 614 615 func (m *AlertingPolicy_Spec_Notification) SetEnabled(fv bool) { 616 if m == nil { 617 panic(fmt.Errorf("can't set %s on nil %s", "Enabled", "AlertingPolicy_Spec_Notification")) 618 } 619 m.Enabled = fv 620 } 621 622 func (m *AlertingPolicy_Spec_Notification) SetChannels(fv []*notification_channel.Reference) { 623 if m == nil { 624 panic(fmt.Errorf("can't set %s on nil %s", "Channels", "AlertingPolicy_Spec_Notification")) 625 } 626 m.Channels = fv 627 } 628 629 var edgelq_monitoring_proto_v4_alerting_policy_proto preflect.FileDescriptor 630 631 var edgelq_monitoring_proto_v4_alerting_policy_proto_rawDesc = []byte{ 632 0x0a, 0x30, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 633 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x34, 0x2f, 0x61, 0x6c, 0x65, 634 0x72, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f, 635 0x74, 0x6f, 0x12, 0x11, 0x6e, 0x74, 0x74, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 636 0x6e, 0x67, 0x2e, 0x76, 0x34, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 637 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 638 0x1a, 0x20, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 639 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 640 0x74, 0x6f, 0x1a, 0x1d, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 641 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 642 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 643 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 644 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 645 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 646 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 647 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 648 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 649 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x5f, 0x72, 0x65, 0x67, 650 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x65, 0x64, 0x67, 0x65, 0x6c, 651 0x71, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 652 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 653 0x16, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x6d, 0x65, 0x74, 654 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9c, 0x0c, 0x0a, 0x0e, 0x41, 0x6c, 0x65, 0x72, 655 0x74, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x2a, 0x0a, 0x04, 0x6e, 0x61, 656 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x16, 0xb2, 0xda, 0x21, 0x12, 0x0a, 0x10, 657 0x0a, 0x0e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 658 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 659 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x74, 0x65, 0x6e, 660 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 661 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 662 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 663 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 664 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xca, 665 0xc6, 0x27, 0x07, 0x2a, 0x05, 0x22, 0x03, 0x08, 0x80, 0x02, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 666 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x55, 0x0a, 0x0d, 0x64, 0x6f, 0x63, 0x75, 0x6d, 667 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 668 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 669 0x76, 0x34, 0x2e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 670 0x79, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 671 0x0d, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3a, 672 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6e, 673 0x74, 0x74, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x34, 674 0x2e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 675 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, 0x3d, 0x0a, 0x05, 0x73, 0x74, 676 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 677 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x34, 0x2e, 0x41, 0x6c, 678 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x53, 0x74, 0x61, 679 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x1a, 0x5d, 0x0a, 0x0d, 0x44, 0x6f, 0x63, 680 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 681 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 682 0x74, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x09, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, 683 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x15, 0xca, 0xc6, 0x27, 0x11, 0x2a, 0x0f, 0x5a, 684 0x0d, 0x74, 0x65, 0x78, 0x74, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x64, 0x6f, 0x77, 0x6e, 0x52, 0x08, 685 0x6d, 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x1a, 0x80, 0x03, 0x0a, 0x04, 0x53, 0x70, 0x65, 686 0x63, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 687 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x73, 0x0a, 0x12, 0x63, 688 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6d, 0x62, 0x69, 0x6e, 0x65, 689 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x39, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x6d, 0x6f, 690 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x34, 0x2e, 0x41, 0x6c, 0x65, 0x72, 691 0x74, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x53, 0x70, 0x65, 0x63, 0x2e, 692 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x43, 0x6f, 0x6d, 0x62, 0x69, 0x6e, 693 0x65, 0x72, 0x42, 0x09, 0xca, 0xc6, 0x27, 0x05, 0x3a, 0x03, 0x1a, 0x01, 0x00, 0x52, 0x11, 0x63, 694 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x62, 0x69, 0x6e, 0x65, 0x72, 695 0x12, 0x57, 0x0a, 0x0c, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 696 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x6d, 0x6f, 0x6e, 697 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x34, 0x2e, 0x41, 0x6c, 0x65, 0x72, 0x74, 698 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x53, 0x70, 0x65, 0x63, 0x2e, 0x4e, 699 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x6e, 0x6f, 0x74, 700 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x69, 0x0a, 0x0c, 0x4e, 0x6f, 0x74, 701 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 702 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 703 0x6c, 0x65, 0x64, 0x12, 0x39, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x18, 704 0x03, 0x20, 0x03, 0x28, 0x09, 0x42, 0x1d, 0xb2, 0xda, 0x21, 0x19, 0x12, 0x17, 0x0a, 0x13, 0x4e, 705 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 706 0x65, 0x6c, 0x10, 0x02, 0x52, 0x08, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x4a, 0x04, 707 0x08, 0x02, 0x10, 0x03, 0x22, 0x25, 0x0a, 0x12, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 708 0x6e, 0x73, 0x43, 0x6f, 0x6d, 0x62, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x52, 709 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x4e, 0x44, 0x10, 0x01, 0x1a, 0x37, 0x0a, 0x05, 0x53, 710 0x74, 0x61, 0x74, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x61, 711 0x6c, 0x65, 0x72, 0x74, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 712 0x03, 0x52, 0x11, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x73, 0x43, 713 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0xef, 0x04, 0xea, 0x41, 0x6e, 0x0a, 0x24, 0x6d, 0x6f, 0x6e, 0x69, 714 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2e, 0x63, 0x6f, 715 0x6d, 0x2f, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 716 0x12, 0x46, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 717 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x72, 0x65, 718 0x67, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x6f, 719 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 720 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x7d, 0x92, 0xd9, 0x21, 0x92, 0x01, 0x0a, 0x10, 0x61, 721 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 722 0x10, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 723 0x73, 0x1a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x18, 0x67, 0x6f, 0x74, 0x65, 724 0x6e, 0x2e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x52, 0x65, 725 0x67, 0x69, 0x6f, 0x6e, 0x38, 0x05, 0x42, 0x47, 0x08, 0x02, 0x12, 0x0c, 0x0a, 0x04, 0x6e, 0x61, 726 0x6d, 0x65, 0x12, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 727 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x0c, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 728 0x79, 0x20, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x0c, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x65, 729 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x07, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0xaa, 730 0xd9, 0x21, 0x74, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 731 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 732 0x74, 0x69, 0x6f, 0x6e, 0x0a, 0x0d, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x74, 733 0x61, 0x67, 0x73, 0x0a, 0x0f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x6c, 0x61, 734 0x62, 0x65, 0x6c, 0x73, 0x0a, 0x15, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 735 0x69, 0x6f, 0x6e, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x0c, 0x73, 0x70, 0x65, 736 0x63, 0x2e, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x1a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 737 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0xb2, 0xdf, 0x21, 0x93, 0x01, 0x0a, 0x90, 0x01, 0x0a, 738 0x8d, 0x01, 0x0a, 0x0d, 0x62, 0x79, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 739 0x65, 0x12, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x1a, 740 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 741 0x63, 0x74, 0x7d, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2d, 0x2f, 0x61, 0x6c, 742 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2d, 743 0x1a, 0x36, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 744 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x72, 0x65, 745 0x67, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x6f, 746 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2d, 0x2a, 0x05, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0xda, 747 0x94, 0x23, 0x08, 0x12, 0x06, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xc2, 0x85, 0x2c, 0x47, 0x22, 748 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 749 0x61, 0x6d, 0x65, 0x22, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 750 0x22, 0x04, 0x73, 0x70, 0x65, 0x63, 0x2a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x42, 0x08, 0x6d, 751 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0x0d, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 752 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0xc3, 0x02, 0xe8, 0xde, 0x21, 0x01, 0xd2, 0xff, 0xd0, 753 0x02, 0x57, 0x0a, 0x15, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x6c, 754 0x69, 0x63, 0x79, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 755 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 756 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 757 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 758 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0xa2, 0x80, 0xd1, 0x02, 0x59, 0x0a, 0x16, 759 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 760 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x3f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 761 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 0x64, 0x67, 0x65, 762 0x6c, 0x71, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x63, 763 0x63, 0x65, 0x73, 0x73, 0x2f, 0x76, 0x34, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 764 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x6e, 0x74, 0x74, 765 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x62, 0x2e, 0x76, 766 0x34, 0x42, 0x13, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 767 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x52, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 768 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 0x64, 769 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2f, 770 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x34, 0x2f, 0x61, 0x6c, 0x65, 771 0x72, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x3b, 0x61, 0x6c, 0x65, 772 0x72, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x62, 0x06, 0x70, 0x72, 773 0x6f, 0x74, 0x6f, 0x33, 774 } 775 776 var ( 777 edgelq_monitoring_proto_v4_alerting_policy_proto_rawDescOnce sync.Once 778 edgelq_monitoring_proto_v4_alerting_policy_proto_rawDescData = edgelq_monitoring_proto_v4_alerting_policy_proto_rawDesc 779 ) 780 781 func edgelq_monitoring_proto_v4_alerting_policy_proto_rawDescGZIP() []byte { 782 edgelq_monitoring_proto_v4_alerting_policy_proto_rawDescOnce.Do(func() { 783 edgelq_monitoring_proto_v4_alerting_policy_proto_rawDescData = protoimpl.X.CompressGZIP(edgelq_monitoring_proto_v4_alerting_policy_proto_rawDescData) 784 }) 785 return edgelq_monitoring_proto_v4_alerting_policy_proto_rawDescData 786 } 787 788 var edgelq_monitoring_proto_v4_alerting_policy_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 789 var edgelq_monitoring_proto_v4_alerting_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 5) 790 var edgelq_monitoring_proto_v4_alerting_policy_proto_goTypes = []interface{}{ 791 (AlertingPolicy_Spec_ConditionsCombiner)(0), // 0: ntt.monitoring.v4.AlertingPolicy_Spec_ConditionsCombiner 792 (*AlertingPolicy)(nil), // 1: ntt.monitoring.v4.AlertingPolicy 793 (*AlertingPolicy_Documentation)(nil), // 2: ntt.monitoring.v4.AlertingPolicy.Documentation 794 (*AlertingPolicy_Spec)(nil), // 3: ntt.monitoring.v4.AlertingPolicy.Spec 795 (*AlertingPolicy_State)(nil), // 4: ntt.monitoring.v4.AlertingPolicy.State 796 (*AlertingPolicy_Spec_Notification)(nil), // 5: ntt.monitoring.v4.AlertingPolicy.Spec.Notification 797 (*meta.Meta)(nil), // 6: goten.types.Meta 798 } 799 var edgelq_monitoring_proto_v4_alerting_policy_proto_depIdxs = []int32{ 800 6, // 0: ntt.monitoring.v4.AlertingPolicy.metadata:type_name -> goten.types.Meta 801 2, // 1: ntt.monitoring.v4.AlertingPolicy.documentation:type_name -> ntt.monitoring.v4.AlertingPolicy.Documentation 802 3, // 2: ntt.monitoring.v4.AlertingPolicy.spec:type_name -> ntt.monitoring.v4.AlertingPolicy.Spec 803 4, // 3: ntt.monitoring.v4.AlertingPolicy.state:type_name -> ntt.monitoring.v4.AlertingPolicy.State 804 0, // 4: ntt.monitoring.v4.AlertingPolicy.Spec.condition_combiner:type_name -> ntt.monitoring.v4.AlertingPolicy_Spec_ConditionsCombiner 805 5, // 5: ntt.monitoring.v4.AlertingPolicy.Spec.notification:type_name -> ntt.monitoring.v4.AlertingPolicy.Spec.Notification 806 6, // [6:6] is the sub-list for method output_type 807 6, // [6:6] is the sub-list for method input_type 808 6, // [6:6] is the sub-list for extension type_name 809 6, // [6:6] is the sub-list for extension extendee 810 0, // [0:6] is the sub-list for field type_name 811 } 812 813 func init() { edgelq_monitoring_proto_v4_alerting_policy_proto_init() } 814 func edgelq_monitoring_proto_v4_alerting_policy_proto_init() { 815 if edgelq_monitoring_proto_v4_alerting_policy_proto != nil { 816 return 817 } 818 if !protoimpl.UnsafeEnabled { 819 820 edgelq_monitoring_proto_v4_alerting_policy_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 821 switch v := v.(*AlertingPolicy); i { 822 case 0: 823 return &v.state 824 case 1: 825 return &v.sizeCache 826 case 2: 827 return &v.unknownFields 828 default: 829 return nil 830 } 831 } 832 edgelq_monitoring_proto_v4_alerting_policy_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 833 switch v := v.(*AlertingPolicy_Documentation); i { 834 case 0: 835 return &v.state 836 case 1: 837 return &v.sizeCache 838 case 2: 839 return &v.unknownFields 840 default: 841 return nil 842 } 843 } 844 edgelq_monitoring_proto_v4_alerting_policy_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 845 switch v := v.(*AlertingPolicy_Spec); i { 846 case 0: 847 return &v.state 848 case 1: 849 return &v.sizeCache 850 case 2: 851 return &v.unknownFields 852 default: 853 return nil 854 } 855 } 856 edgelq_monitoring_proto_v4_alerting_policy_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 857 switch v := v.(*AlertingPolicy_State); i { 858 case 0: 859 return &v.state 860 case 1: 861 return &v.sizeCache 862 case 2: 863 return &v.unknownFields 864 default: 865 return nil 866 } 867 } 868 edgelq_monitoring_proto_v4_alerting_policy_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 869 switch v := v.(*AlertingPolicy_Spec_Notification); i { 870 case 0: 871 return &v.state 872 case 1: 873 return &v.sizeCache 874 case 2: 875 return &v.unknownFields 876 default: 877 return nil 878 } 879 } 880 } 881 882 type x struct{} 883 out := protoimpl.TypeBuilder{ 884 File: protoimpl.DescBuilder{ 885 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 886 RawDescriptor: edgelq_monitoring_proto_v4_alerting_policy_proto_rawDesc, 887 NumEnums: 1, 888 NumMessages: 5, 889 NumExtensions: 0, 890 NumServices: 0, 891 }, 892 GoTypes: edgelq_monitoring_proto_v4_alerting_policy_proto_goTypes, 893 DependencyIndexes: edgelq_monitoring_proto_v4_alerting_policy_proto_depIdxs, 894 EnumInfos: edgelq_monitoring_proto_v4_alerting_policy_proto_enumTypes, 895 MessageInfos: edgelq_monitoring_proto_v4_alerting_policy_proto_msgTypes, 896 }.Build() 897 edgelq_monitoring_proto_v4_alerting_policy_proto = out.File 898 edgelq_monitoring_proto_v4_alerting_policy_proto_rawDesc = nil 899 edgelq_monitoring_proto_v4_alerting_policy_proto_goTypes = nil 900 edgelq_monitoring_proto_v4_alerting_policy_proto_depIdxs = nil 901 }