diff --git a/CHANGELOG.md b/CHANGELOG.md
index 38040ea2..fd253a76 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -386,4 +386,9 @@ New Features:
New Features:
#### resource/coralogix_archive_logs
* Adding support for `coralogix_archive_logs` [resource](https://github.com/coralogix/terraform-provider-coralogix/tree/master/docs/resources/archive_logs.md) and [data-source](https://github.com/coralogix/terraform-provider-coralogix/tree/master/docs/data-sources/archive_logs.md).
-* Adding support for `coralogix_archive_metrics` [resource](https://github.com/coralogix/terraform-provider-coralogix/tree/master/docs/resources/archive_metrics.md) and [data-source](https://github.com/coralogix/terraform-provider-coralogix/tree/master/docs/data-sources/archive_metrics.md).
\ No newline at end of file
+* Adding support for `coralogix_archive_metrics` [resource](https://github.com/coralogix/terraform-provider-coralogix/tree/master/docs/resources/archive_metrics.md) and [data-source](https://github.com/coralogix/terraform-provider-coralogix/tree/master/docs/data-sources/archive_metrics.md).
+
+## Release 1.10.9
+New Features:
+#### resource/coralogix_archive_retentions
+* Adding support for `coralogix_archive_retentions` [resource](https://github.com/coralogix/terraform-provider-coralogix/tree/master/docs/resources/alerts_scheduler.md) and [data-source](https://github.com/coralogix/terraform-provider-coralogix/tree/master/docs/data-sources/alerts_scheduler.md).
\ No newline at end of file
diff --git a/coralogix/clientset/alerts-scheduler-client.go b/coralogix/clientset/alerts-scheduler-client.go
new file mode 100644
index 00000000..446f6787
--- /dev/null
+++ b/coralogix/clientset/alerts-scheduler-client.go
@@ -0,0 +1,67 @@
+package clientset
+
+import (
+ "context"
+
+ alertsSchedulers "terraform-provider-coralogix/coralogix/clientset/grpc/alerts-scheduler"
+)
+
+type AlertsSchedulersClient struct {
+ callPropertiesCreator *CallPropertiesCreator
+}
+
+func (c AlertsSchedulersClient) CreateAlertScheduler(ctx context.Context, req *alertsSchedulers.CreateAlertSchedulerRuleRequest) (*alertsSchedulers.CreateAlertSchedulerRuleResponse, error) {
+ callProperties, err := c.callPropertiesCreator.GetCallProperties(ctx)
+ if err != nil {
+ return nil, err
+ }
+
+ conn := callProperties.Connection
+ defer conn.Close()
+ client := alertsSchedulers.NewAlertSchedulerRuleServiceClient(conn)
+
+ return client.CreateAlertSchedulerRule(callProperties.Ctx, req, callProperties.CallOptions...)
+}
+
+func (c AlertsSchedulersClient) GetAlertScheduler(ctx context.Context, req *alertsSchedulers.GetAlertSchedulerRuleRequest) (*alertsSchedulers.GetAlertSchedulerRuleResponse, error) {
+ callProperties, err := c.callPropertiesCreator.GetCallProperties(ctx)
+ if err != nil {
+ return nil, err
+ }
+
+ conn := callProperties.Connection
+ defer conn.Close()
+ client := alertsSchedulers.NewAlertSchedulerRuleServiceClient(conn)
+
+ return client.GetAlertSchedulerRule(callProperties.Ctx, req, callProperties.CallOptions...)
+}
+
+func (c AlertsSchedulersClient) UpdateAlertScheduler(ctx context.Context, req *alertsSchedulers.UpdateAlertSchedulerRuleRequest) (*alertsSchedulers.UpdateAlertSchedulerRuleResponse, error) {
+ callProperties, err := c.callPropertiesCreator.GetCallProperties(ctx)
+ if err != nil {
+ return nil, err
+ }
+
+ conn := callProperties.Connection
+ defer conn.Close()
+ client := alertsSchedulers.NewAlertSchedulerRuleServiceClient(conn)
+
+ return client.UpdateAlertSchedulerRule(callProperties.Ctx, req, callProperties.CallOptions...)
+}
+
+func (c AlertsSchedulersClient) DeleteAlertScheduler(ctx context.Context, req *alertsSchedulers.DeleteAlertSchedulerRuleRequest) (*alertsSchedulers.DeleteAlertSchedulerRuleResponse, error) {
+ callProperties, err := c.callPropertiesCreator.GetCallProperties(ctx)
+ if err != nil {
+ return nil, err
+ }
+
+ conn := callProperties.Connection
+ defer conn.Close()
+ client := alertsSchedulers.NewAlertSchedulerRuleServiceClient(conn)
+
+ return client.DeleteAlertSchedulerRule(callProperties.Ctx, req, callProperties.CallOptions...)
+}
+
+func NewAlertsSchedulersClient(c *CallPropertiesCreator) *AlertsSchedulersClient {
+ return &AlertsSchedulersClient{callPropertiesCreator: c}
+}
diff --git a/coralogix/clientset/clientset.go b/coralogix/clientset/clientset.go
index 74f2216e..fe8231ec 100644
--- a/coralogix/clientset/clientset.go
+++ b/coralogix/clientset/clientset.go
@@ -17,6 +17,7 @@ type ClientSet struct {
archiveRetentions *ArchiveRetentionsClient
archiveMetrics *ArchiveMetricsClient
archiveLogs *ArchiveLogsClient
+ alertsSchedulers *AlertsSchedulersClient
}
func (c *ClientSet) RuleGroups() *RuleGroupsClient {
@@ -84,6 +85,10 @@ func (c *ClientSet) ArchiveLogs() *ArchiveLogsClient {
return c.archiveLogs
}
+func (c *ClientSet) AlertSchedulers() *AlertsSchedulersClient {
+ return c.alertsSchedulers
+}
+
func NewClientSet(targetUrl, apiKey, teamsApiKey string) *ClientSet {
apikeyCPC := NewCallPropertiesCreator(targetUrl, apiKey)
_ = NewCallPropertiesCreator(targetUrl, teamsApiKey)
@@ -105,5 +110,6 @@ func NewClientSet(targetUrl, apiKey, teamsApiKey string) *ClientSet {
archiveRetentions: NewArchiveRetentionsClient(apikeyCPC),
archiveMetrics: NewArchiveMetricsClient(apikeyCPC),
archiveLogs: NewArchiveLogsClient(apikeyCPC),
+ alertsSchedulers: NewAlertsSchedulersClient(apikeyCPC),
}
}
diff --git a/coralogix/clientset/grpc/alerts-scheduler/active_timeframe.pb.go b/coralogix/clientset/grpc/alerts-scheduler/active_timeframe.pb.go
new file mode 100644
index 00000000..7238b333
--- /dev/null
+++ b/coralogix/clientset/grpc/alerts-scheduler/active_timeframe.pb.go
@@ -0,0 +1,171 @@
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.28.1
+// protoc v3.21.8
+// source: com/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/active_timeframe.proto
+
+package __
+
+import (
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ reflect "reflect"
+ sync "sync"
+)
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+type ActiveTimeframe struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ StartTime string `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
+ EndTime string `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
+ Timezone string `protobuf:"bytes,3,opt,name=timezone,proto3" json:"timezone,omitempty"`
+}
+
+func (x *ActiveTimeframe) Reset() {
+ *x = ActiveTimeframe{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_active_timeframe_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *ActiveTimeframe) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ActiveTimeframe) ProtoMessage() {}
+
+func (x *ActiveTimeframe) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_active_timeframe_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use ActiveTimeframe.ProtoReflect.Descriptor instead.
+func (*ActiveTimeframe) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_active_timeframe_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *ActiveTimeframe) GetStartTime() string {
+ if x != nil {
+ return x.StartTime
+ }
+ return ""
+}
+
+func (x *ActiveTimeframe) GetEndTime() string {
+ if x != nil {
+ return x.EndTime
+ }
+ return ""
+}
+
+func (x *ActiveTimeframe) GetTimezone() string {
+ if x != nil {
+ return x.Timezone
+ }
+ return ""
+}
+
+var File_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_active_timeframe_proto protoreflect.FileDescriptor
+
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_active_timeframe_proto_rawDesc = []byte{
+ 0x0a, 0x52, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61,
+ 0x70, 0x69, 0x73, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x6c, 0x65,
+ 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c,
+ 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63,
+ 0x74, 0x69, 0x76, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x2e, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x3b, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f,
+ 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67,
+ 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72,
+ 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76,
+ 0x31, 0x22, 0x67, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x66,
+ 0x72, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69,
+ 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54,
+ 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1a,
+ 0x0a, 0x08, 0x74, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x08, 0x74, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x42, 0x04, 0x5a, 0x02, 0x2e, 0x2f,
+ 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_active_timeframe_proto_rawDescOnce sync.Once
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_active_timeframe_proto_rawDescData = file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_active_timeframe_proto_rawDesc
+)
+
+func file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_active_timeframe_proto_rawDescGZIP() []byte {
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_active_timeframe_proto_rawDescOnce.Do(func() {
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_active_timeframe_proto_rawDescData = protoimpl.X.CompressGZIP(file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_active_timeframe_proto_rawDescData)
+ })
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_active_timeframe_proto_rawDescData
+}
+
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_active_timeframe_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_active_timeframe_proto_goTypes = []interface{}{
+ (*ActiveTimeframe)(nil), // 0: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.ActiveTimeframe
+}
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_active_timeframe_proto_depIdxs = []int32{
+ 0, // [0:0] is the sub-list for method output_type
+ 0, // [0:0] is the sub-list for method input_type
+ 0, // [0:0] is the sub-list for extension type_name
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() {
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_active_timeframe_proto_init()
+}
+func file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_active_timeframe_proto_init() {
+ if File_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_active_timeframe_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_active_timeframe_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ActiveTimeframe); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_active_timeframe_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_active_timeframe_proto_goTypes,
+ DependencyIndexes: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_active_timeframe_proto_depIdxs,
+ MessageInfos: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_active_timeframe_proto_msgTypes,
+ }.Build()
+ File_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_active_timeframe_proto = out.File
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_active_timeframe_proto_rawDesc = nil
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_active_timeframe_proto_goTypes = nil
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_active_timeframe_proto_depIdxs = nil
+}
diff --git a/coralogix/clientset/grpc/alerts-scheduler/alert_scheduler_filter.pb.go b/coralogix/clientset/grpc/alerts-scheduler/alert_scheduler_filter.pb.go
new file mode 100644
index 00000000..51cc6033
--- /dev/null
+++ b/coralogix/clientset/grpc/alerts-scheduler/alert_scheduler_filter.pb.go
@@ -0,0 +1,351 @@
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.28.1
+// protoc v3.21.8
+// source: com/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_filter.proto
+
+package __
+
+import (
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ reflect "reflect"
+ sync "sync"
+)
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+type Filter struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ WhatExpression string `protobuf:"bytes,1,opt,name=what_expression,json=whatExpression,proto3" json:"what_expression,omitempty"` // TODO select correct names by Harel
+ // Types that are assignable to WhichAlerts:
+ // *Filter_AlertMetaLabels
+ // *Filter_AlertUniqueIds
+ WhichAlerts isFilter_WhichAlerts `protobuf_oneof:"which_alerts"`
+}
+
+func (x *Filter) Reset() {
+ *x = Filter{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Filter) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Filter) ProtoMessage() {}
+
+func (x *Filter) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use Filter.ProtoReflect.Descriptor instead.
+func (*Filter) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Filter) GetWhatExpression() string {
+ if x != nil {
+ return x.WhatExpression
+ }
+ return ""
+}
+
+func (m *Filter) GetWhichAlerts() isFilter_WhichAlerts {
+ if m != nil {
+ return m.WhichAlerts
+ }
+ return nil
+}
+
+func (x *Filter) GetAlertMetaLabels() *MetaLabels {
+ if x, ok := x.GetWhichAlerts().(*Filter_AlertMetaLabels); ok {
+ return x.AlertMetaLabels
+ }
+ return nil
+}
+
+func (x *Filter) GetAlertUniqueIds() *AlertUniqueIds {
+ if x, ok := x.GetWhichAlerts().(*Filter_AlertUniqueIds); ok {
+ return x.AlertUniqueIds
+ }
+ return nil
+}
+
+type isFilter_WhichAlerts interface {
+ isFilter_WhichAlerts()
+}
+
+type Filter_AlertMetaLabels struct {
+ AlertMetaLabels *MetaLabels `protobuf:"bytes,2,opt,name=alert_meta_labels,json=alertMetaLabels,proto3,oneof"` // TODO support also only key, event if the Alert MetaLabel as value
+}
+
+type Filter_AlertUniqueIds struct {
+ AlertUniqueIds *AlertUniqueIds `protobuf:"bytes,3,opt,name=alert_unique_ids,json=alertUniqueIds,proto3,oneof"` // when AlertIds is empty meaning its all
+}
+
+func (*Filter_AlertMetaLabels) isFilter_WhichAlerts() {}
+
+func (*Filter_AlertUniqueIds) isFilter_WhichAlerts() {}
+
+type AlertUniqueIds struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Value []string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"`
+}
+
+func (x *AlertUniqueIds) Reset() {
+ *x = AlertUniqueIds{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *AlertUniqueIds) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*AlertUniqueIds) ProtoMessage() {}
+
+func (x *AlertUniqueIds) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use AlertUniqueIds.ProtoReflect.Descriptor instead.
+func (*AlertUniqueIds) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *AlertUniqueIds) GetValue() []string {
+ if x != nil {
+ return x.Value
+ }
+ return nil
+}
+
+type MetaLabels struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Value []*MetaLabel `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"`
+}
+
+func (x *MetaLabels) Reset() {
+ *x = MetaLabels{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MetaLabels) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MetaLabels) ProtoMessage() {}
+
+func (x *MetaLabels) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use MetaLabels.ProtoReflect.Descriptor instead.
+func (*MetaLabels) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *MetaLabels) GetValue() []*MetaLabel {
+ if x != nil {
+ return x.Value
+ }
+ return nil
+}
+
+var File_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto protoreflect.FileDescriptor
+
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_rawDesc = []byte{
+ 0x0a, 0x58, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61,
+ 0x70, 0x69, 0x73, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x6c, 0x65,
+ 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c,
+ 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6c,
+ 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x66, 0x69,
+ 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x3b, 0x63, 0x6f, 0x6d, 0x2e,
+ 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c,
+ 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68,
+ 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x1a, 0x44, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72,
+ 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74,
+ 0x69, 0x6e, 0x67, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x5f,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61,
+ 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb1, 0x02,
+ 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x77, 0x68, 0x61, 0x74,
+ 0x5f, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x0e, 0x77, 0x68, 0x61, 0x74, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f,
+ 0x6e, 0x12, 0x75, 0x0a, 0x11, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x5f,
+ 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x47, 0x2e, 0x63,
+ 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73,
+ 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f,
+ 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x4c,
+ 0x61, 0x62, 0x65, 0x6c, 0x73, 0x48, 0x00, 0x52, 0x0f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x4d, 0x65,
+ 0x74, 0x61, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x77, 0x0a, 0x10, 0x61, 0x6c, 0x65, 0x72,
+ 0x74, 0x5f, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01,
+ 0x28, 0x0b, 0x32, 0x4b, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67,
+ 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e,
+ 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f,
+ 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31,
+ 0x2e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x49, 0x64, 0x73, 0x48,
+ 0x00, 0x52, 0x0e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x49, 0x64,
+ 0x73, 0x42, 0x0e, 0x0a, 0x0c, 0x77, 0x68, 0x69, 0x63, 0x68, 0x5f, 0x61, 0x6c, 0x65, 0x72, 0x74,
+ 0x73, 0x22, 0x26, 0x0a, 0x0e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65,
+ 0x49, 0x64, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x03,
+ 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x61, 0x0a, 0x0a, 0x4d, 0x65, 0x74,
+ 0x61, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x53, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
+ 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72,
+ 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74,
+ 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x5f,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x61,
+ 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x04, 0x5a, 0x02,
+ 0x2e, 0x2f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_rawDescOnce sync.Once
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_rawDescData = file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_rawDesc
+)
+
+func file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_rawDescGZIP() []byte {
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_rawDescOnce.Do(func() {
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_rawDescData = protoimpl.X.CompressGZIP(file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_rawDescData)
+ })
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_rawDescData
+}
+
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_goTypes = []interface{}{
+ (*Filter)(nil), // 0: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Filter
+ (*AlertUniqueIds)(nil), // 1: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertUniqueIds
+ (*MetaLabels)(nil), // 2: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.MetaLabels
+ (*MetaLabel)(nil), // 3: com.coralogixapis.alerting.meta_labels_protobuf.v1.MetaLabel
+}
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_depIdxs = []int32{
+ 2, // 0: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Filter.alert_meta_labels:type_name -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.MetaLabels
+ 1, // 1: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Filter.alert_unique_ids:type_name -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertUniqueIds
+ 3, // 2: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.MetaLabels.value:type_name -> com.coralogixapis.alerting.meta_labels_protobuf.v1.MetaLabel
+ 3, // [3:3] is the sub-list for method output_type
+ 3, // [3:3] is the sub-list for method input_type
+ 3, // [3:3] is the sub-list for extension type_name
+ 3, // [3:3] is the sub-list for extension extendee
+ 0, // [0:3] is the sub-list for field type_name
+}
+
+func init() {
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_init()
+}
+func file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_init() {
+ if File_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto != nil {
+ return
+ }
+ file_com_coralogixapis_alerting_meta_labels_protobuf_v1_meta_labels_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Filter); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*AlertUniqueIds); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MetaLabels); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_msgTypes[0].OneofWrappers = []interface{}{
+ (*Filter_AlertMetaLabels)(nil),
+ (*Filter_AlertUniqueIds)(nil),
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 3,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_goTypes,
+ DependencyIndexes: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_depIdxs,
+ MessageInfos: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_msgTypes,
+ }.Build()
+ File_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto = out.File
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_rawDesc = nil
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_goTypes = nil
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_depIdxs = nil
+}
diff --git a/coralogix/clientset/grpc/alerts-scheduler/alert_scheduler_request.pb.go b/coralogix/clientset/grpc/alerts-scheduler/alert_scheduler_request.pb.go
new file mode 100644
index 00000000..2d00809b
--- /dev/null
+++ b/coralogix/clientset/grpc/alerts-scheduler/alert_scheduler_request.pb.go
@@ -0,0 +1,696 @@
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.28.1
+// protoc v3.21.8
+// source: com/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_request.proto
+
+package __
+
+import (
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ reflect "reflect"
+ sync "sync"
+)
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+type GetAlertSchedulerRuleRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ AlertSchedulerRuleId string `protobuf:"bytes,1,opt,name=alert_scheduler_rule_id,json=alertSchedulerRuleId,proto3" json:"alert_scheduler_rule_id,omitempty"`
+}
+
+func (x *GetAlertSchedulerRuleRequest) Reset() {
+ *x = GetAlertSchedulerRuleRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *GetAlertSchedulerRuleRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*GetAlertSchedulerRuleRequest) ProtoMessage() {}
+
+func (x *GetAlertSchedulerRuleRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use GetAlertSchedulerRuleRequest.ProtoReflect.Descriptor instead.
+func (*GetAlertSchedulerRuleRequest) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *GetAlertSchedulerRuleRequest) GetAlertSchedulerRuleId() string {
+ if x != nil {
+ return x.AlertSchedulerRuleId
+ }
+ return ""
+}
+
+type CreateAlertSchedulerRuleRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ AlertSchedulerRule *AlertSchedulerRule `protobuf:"bytes,1,opt,name=alert_scheduler_rule,json=alertSchedulerRule,proto3" json:"alert_scheduler_rule,omitempty"`
+}
+
+func (x *CreateAlertSchedulerRuleRequest) Reset() {
+ *x = CreateAlertSchedulerRuleRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *CreateAlertSchedulerRuleRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*CreateAlertSchedulerRuleRequest) ProtoMessage() {}
+
+func (x *CreateAlertSchedulerRuleRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use CreateAlertSchedulerRuleRequest.ProtoReflect.Descriptor instead.
+func (*CreateAlertSchedulerRuleRequest) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *CreateAlertSchedulerRuleRequest) GetAlertSchedulerRule() *AlertSchedulerRule {
+ if x != nil {
+ return x.AlertSchedulerRule
+ }
+ return nil
+}
+
+type UpdateAlertSchedulerRuleRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ AlertSchedulerRule *AlertSchedulerRule `protobuf:"bytes,1,opt,name=alert_scheduler_rule,json=alertSchedulerRule,proto3" json:"alert_scheduler_rule,omitempty"`
+}
+
+func (x *UpdateAlertSchedulerRuleRequest) Reset() {
+ *x = UpdateAlertSchedulerRuleRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *UpdateAlertSchedulerRuleRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*UpdateAlertSchedulerRuleRequest) ProtoMessage() {}
+
+func (x *UpdateAlertSchedulerRuleRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use UpdateAlertSchedulerRuleRequest.ProtoReflect.Descriptor instead.
+func (*UpdateAlertSchedulerRuleRequest) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *UpdateAlertSchedulerRuleRequest) GetAlertSchedulerRule() *AlertSchedulerRule {
+ if x != nil {
+ return x.AlertSchedulerRule
+ }
+ return nil
+}
+
+type DeleteAlertSchedulerRuleRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ AlertSchedulerRuleId string `protobuf:"bytes,1,opt,name=alert_scheduler_rule_id,json=alertSchedulerRuleId,proto3" json:"alert_scheduler_rule_id,omitempty"`
+}
+
+func (x *DeleteAlertSchedulerRuleRequest) Reset() {
+ *x = DeleteAlertSchedulerRuleRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *DeleteAlertSchedulerRuleRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*DeleteAlertSchedulerRuleRequest) ProtoMessage() {}
+
+func (x *DeleteAlertSchedulerRuleRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use DeleteAlertSchedulerRuleRequest.ProtoReflect.Descriptor instead.
+func (*DeleteAlertSchedulerRuleRequest) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_rawDescGZIP(), []int{3}
+}
+
+func (x *DeleteAlertSchedulerRuleRequest) GetAlertSchedulerRuleId() string {
+ if x != nil {
+ return x.AlertSchedulerRuleId
+ }
+ return ""
+}
+
+type GetBulkAlertSchedulerRuleRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ ActiveTimeframe *ActiveTimeframe `protobuf:"bytes,1,opt,name=active_timeframe,json=activeTimeframe,proto3" json:"active_timeframe,omitempty"`
+ Enabled *bool `protobuf:"varint,2,opt,name=enabled,proto3,oneof" json:"enabled,omitempty"`
+ NextPageToken *string `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3,oneof" json:"next_page_token,omitempty"`
+}
+
+func (x *GetBulkAlertSchedulerRuleRequest) Reset() {
+ *x = GetBulkAlertSchedulerRuleRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *GetBulkAlertSchedulerRuleRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*GetBulkAlertSchedulerRuleRequest) ProtoMessage() {}
+
+func (x *GetBulkAlertSchedulerRuleRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_msgTypes[4]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use GetBulkAlertSchedulerRuleRequest.ProtoReflect.Descriptor instead.
+func (*GetBulkAlertSchedulerRuleRequest) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *GetBulkAlertSchedulerRuleRequest) GetActiveTimeframe() *ActiveTimeframe {
+ if x != nil {
+ return x.ActiveTimeframe
+ }
+ return nil
+}
+
+func (x *GetBulkAlertSchedulerRuleRequest) GetEnabled() bool {
+ if x != nil && x.Enabled != nil {
+ return *x.Enabled
+ }
+ return false
+}
+
+func (x *GetBulkAlertSchedulerRuleRequest) GetNextPageToken() string {
+ if x != nil && x.NextPageToken != nil {
+ return *x.NextPageToken
+ }
+ return ""
+}
+
+type CreateBulkAlertSchedulerRuleRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ CreateAlertSchedulerRuleRequests []*CreateAlertSchedulerRuleRequest `protobuf:"bytes,1,rep,name=create_alert_scheduler_rule_requests,json=createAlertSchedulerRuleRequests,proto3" json:"create_alert_scheduler_rule_requests,omitempty"`
+}
+
+func (x *CreateBulkAlertSchedulerRuleRequest) Reset() {
+ *x = CreateBulkAlertSchedulerRuleRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *CreateBulkAlertSchedulerRuleRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*CreateBulkAlertSchedulerRuleRequest) ProtoMessage() {}
+
+func (x *CreateBulkAlertSchedulerRuleRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_msgTypes[5]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use CreateBulkAlertSchedulerRuleRequest.ProtoReflect.Descriptor instead.
+func (*CreateBulkAlertSchedulerRuleRequest) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_rawDescGZIP(), []int{5}
+}
+
+func (x *CreateBulkAlertSchedulerRuleRequest) GetCreateAlertSchedulerRuleRequests() []*CreateAlertSchedulerRuleRequest {
+ if x != nil {
+ return x.CreateAlertSchedulerRuleRequests
+ }
+ return nil
+}
+
+type UpdateBulkAlertSchedulerRuleRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ UpdateAlertSchedulerRuleRequests []*UpdateAlertSchedulerRuleRequest `protobuf:"bytes,1,rep,name=update_alert_scheduler_rule_requests,json=updateAlertSchedulerRuleRequests,proto3" json:"update_alert_scheduler_rule_requests,omitempty"`
+}
+
+func (x *UpdateBulkAlertSchedulerRuleRequest) Reset() {
+ *x = UpdateBulkAlertSchedulerRuleRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_msgTypes[6]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *UpdateBulkAlertSchedulerRuleRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*UpdateBulkAlertSchedulerRuleRequest) ProtoMessage() {}
+
+func (x *UpdateBulkAlertSchedulerRuleRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_msgTypes[6]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use UpdateBulkAlertSchedulerRuleRequest.ProtoReflect.Descriptor instead.
+func (*UpdateBulkAlertSchedulerRuleRequest) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_rawDescGZIP(), []int{6}
+}
+
+func (x *UpdateBulkAlertSchedulerRuleRequest) GetUpdateAlertSchedulerRuleRequests() []*UpdateAlertSchedulerRuleRequest {
+ if x != nil {
+ return x.UpdateAlertSchedulerRuleRequests
+ }
+ return nil
+}
+
+type DeleteBulkAlertSchedulerRuleRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ DeleteAlertSchedulerRuleRequests []*DeleteAlertSchedulerRuleRequest `protobuf:"bytes,1,rep,name=delete_alert_scheduler_rule_requests,json=deleteAlertSchedulerRuleRequests,proto3" json:"delete_alert_scheduler_rule_requests,omitempty"`
+}
+
+func (x *DeleteBulkAlertSchedulerRuleRequest) Reset() {
+ *x = DeleteBulkAlertSchedulerRuleRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_msgTypes[7]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *DeleteBulkAlertSchedulerRuleRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*DeleteBulkAlertSchedulerRuleRequest) ProtoMessage() {}
+
+func (x *DeleteBulkAlertSchedulerRuleRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_msgTypes[7]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use DeleteBulkAlertSchedulerRuleRequest.ProtoReflect.Descriptor instead.
+func (*DeleteBulkAlertSchedulerRuleRequest) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_rawDescGZIP(), []int{7}
+}
+
+func (x *DeleteBulkAlertSchedulerRuleRequest) GetDeleteAlertSchedulerRuleRequests() []*DeleteAlertSchedulerRuleRequest {
+ if x != nil {
+ return x.DeleteAlertSchedulerRuleRequests
+ }
+ return nil
+}
+
+var File_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto protoreflect.FileDescriptor
+
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_rawDesc = []byte{
+ 0x0a, 0x59, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61,
+ 0x70, 0x69, 0x73, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x6c, 0x65,
+ 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c,
+ 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6c,
+ 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x65,
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x3b, 0x63, 0x6f, 0x6d,
+ 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61,
+ 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63,
+ 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x1a, 0x56, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f,
+ 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x6c, 0x65, 0x72,
+ 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64,
+ 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
+ 0x75, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65,
+ 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x1a, 0x52, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61,
+ 0x70, 0x69, 0x73, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x6c, 0x65,
+ 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c,
+ 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63,
+ 0x74, 0x69, 0x76, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x2e, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x55, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74,
+ 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x17, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63,
+ 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65,
+ 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x22, 0xa5, 0x01, 0x0a, 0x1f,
+ 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64,
+ 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
+ 0x81, 0x01, 0x0a, 0x14, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75,
+ 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x4f,
+ 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70,
+ 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72,
+ 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65,
+ 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6c, 0x65,
+ 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52,
+ 0x12, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52,
+ 0x75, 0x6c, 0x65, 0x22, 0xa5, 0x01, 0x0a, 0x1f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x6c,
+ 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x81, 0x01, 0x0a, 0x14, 0x61, 0x6c, 0x65, 0x72,
+ 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x4f, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72,
+ 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74,
+ 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75,
+ 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
+ 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75,
+ 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x12, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63,
+ 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x22, 0x58, 0x0a, 0x1f, 0x44,
+ 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75,
+ 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35,
+ 0x0a, 0x17, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65,
+ 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x14, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52,
+ 0x75, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x87, 0x02, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x42, 0x75, 0x6c,
+ 0x6b, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52,
+ 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x77, 0x0a, 0x10, 0x61, 0x63,
+ 0x74, 0x69, 0x76, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x4c, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c,
+ 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e,
+ 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65,
+ 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
+ 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x66, 0x72, 0x61,
+ 0x6d, 0x65, 0x52, 0x0f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x66, 0x72,
+ 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x88,
+ 0x01, 0x01, 0x12, 0x2b, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f,
+ 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0d, 0x6e,
+ 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x88, 0x01, 0x01, 0x42,
+ 0x0a, 0x0a, 0x08, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x42, 0x12, 0x0a, 0x10, 0x5f,
+ 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22,
+ 0xd4, 0x01, 0x0a, 0x23, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x75, 0x6c, 0x6b, 0x41, 0x6c,
+ 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0xac, 0x01, 0x0a, 0x24, 0x63, 0x72, 0x65, 0x61,
+ 0x74, 0x65, 0x5f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c,
+ 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73,
+ 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x5c, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72,
+ 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74,
+ 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75,
+ 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
+ 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74,
+ 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x52, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72,
+ 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65,
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x22, 0xd4, 0x01, 0x0a, 0x23, 0x55, 0x70, 0x64, 0x61, 0x74,
+ 0x65, 0x42, 0x75, 0x6c, 0x6b, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75,
+ 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0xac,
+ 0x01, 0x0a, 0x24, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f,
+ 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x72,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x5c, 0x2e,
+ 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69,
+ 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74,
+ 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61,
+ 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72,
+ 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x20, 0x75, 0x70, 0x64,
+ 0x61, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65,
+ 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x22, 0xd4, 0x01,
+ 0x0a, 0x23, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x75, 0x6c, 0x6b, 0x41, 0x6c, 0x65, 0x72,
+ 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65,
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0xac, 0x01, 0x0a, 0x24, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65,
+ 0x5f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72,
+ 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x01,
+ 0x20, 0x03, 0x28, 0x0b, 0x32, 0x5c, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c,
+ 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e,
+ 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65,
+ 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
+ 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63,
+ 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
+ 0x73, 0x74, 0x52, 0x20, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53,
+ 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75,
+ 0x65, 0x73, 0x74, 0x73, 0x42, 0x04, 0x5a, 0x02, 0x2e, 0x2f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x33,
+}
+
+var (
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_rawDescOnce sync.Once
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_rawDescData = file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_rawDesc
+)
+
+func file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_rawDescGZIP() []byte {
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_rawDescOnce.Do(func() {
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_rawDescData = protoimpl.X.CompressGZIP(file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_rawDescData)
+ })
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_rawDescData
+}
+
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_goTypes = []interface{}{
+ (*GetAlertSchedulerRuleRequest)(nil), // 0: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.GetAlertSchedulerRuleRequest
+ (*CreateAlertSchedulerRuleRequest)(nil), // 1: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.CreateAlertSchedulerRuleRequest
+ (*UpdateAlertSchedulerRuleRequest)(nil), // 2: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.UpdateAlertSchedulerRuleRequest
+ (*DeleteAlertSchedulerRuleRequest)(nil), // 3: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.DeleteAlertSchedulerRuleRequest
+ (*GetBulkAlertSchedulerRuleRequest)(nil), // 4: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.GetBulkAlertSchedulerRuleRequest
+ (*CreateBulkAlertSchedulerRuleRequest)(nil), // 5: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.CreateBulkAlertSchedulerRuleRequest
+ (*UpdateBulkAlertSchedulerRuleRequest)(nil), // 6: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.UpdateBulkAlertSchedulerRuleRequest
+ (*DeleteBulkAlertSchedulerRuleRequest)(nil), // 7: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.DeleteBulkAlertSchedulerRuleRequest
+ (*AlertSchedulerRule)(nil), // 8: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRule
+ (*ActiveTimeframe)(nil), // 9: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.ActiveTimeframe
+}
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_depIdxs = []int32{
+ 8, // 0: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.CreateAlertSchedulerRuleRequest.alert_scheduler_rule:type_name -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRule
+ 8, // 1: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.UpdateAlertSchedulerRuleRequest.alert_scheduler_rule:type_name -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRule
+ 9, // 2: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.GetBulkAlertSchedulerRuleRequest.active_timeframe:type_name -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.ActiveTimeframe
+ 1, // 3: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.CreateBulkAlertSchedulerRuleRequest.create_alert_scheduler_rule_requests:type_name -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.CreateAlertSchedulerRuleRequest
+ 2, // 4: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.UpdateBulkAlertSchedulerRuleRequest.update_alert_scheduler_rule_requests:type_name -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.UpdateAlertSchedulerRuleRequest
+ 3, // 5: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.DeleteBulkAlertSchedulerRuleRequest.delete_alert_scheduler_rule_requests:type_name -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.DeleteAlertSchedulerRuleRequest
+ 6, // [6:6] is the sub-list for method output_type
+ 6, // [6:6] is the sub-list for method input_type
+ 6, // [6:6] is the sub-list for extension type_name
+ 6, // [6:6] is the sub-list for extension extendee
+ 0, // [0:6] is the sub-list for field type_name
+}
+
+func init() {
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_init()
+}
+func file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_init() {
+ if File_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto != nil {
+ return
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_proto_init()
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_active_timeframe_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetAlertSchedulerRuleRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*CreateAlertSchedulerRuleRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*UpdateAlertSchedulerRuleRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*DeleteAlertSchedulerRuleRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetBulkAlertSchedulerRuleRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*CreateBulkAlertSchedulerRuleRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*UpdateBulkAlertSchedulerRuleRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*DeleteBulkAlertSchedulerRuleRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_msgTypes[4].OneofWrappers = []interface{}{}
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 8,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_goTypes,
+ DependencyIndexes: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_depIdxs,
+ MessageInfos: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_msgTypes,
+ }.Build()
+ File_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto = out.File
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_rawDesc = nil
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_goTypes = nil
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_depIdxs = nil
+}
diff --git a/coralogix/clientset/grpc/alerts-scheduler/alert_scheduler_response.pb.go b/coralogix/clientset/grpc/alerts-scheduler/alert_scheduler_response.pb.go
new file mode 100644
index 00000000..ee001790
--- /dev/null
+++ b/coralogix/clientset/grpc/alerts-scheduler/alert_scheduler_response.pb.go
@@ -0,0 +1,691 @@
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.28.1
+// protoc v3.21.8
+// source: com/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_response.proto
+
+package __
+
+import (
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ reflect "reflect"
+ sync "sync"
+)
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+type GetAlertSchedulerRuleResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ AlertSchedulerRule *AlertSchedulerRule `protobuf:"bytes,1,opt,name=alert_scheduler_rule,json=alertSchedulerRule,proto3" json:"alert_scheduler_rule,omitempty"`
+}
+
+func (x *GetAlertSchedulerRuleResponse) Reset() {
+ *x = GetAlertSchedulerRuleResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *GetAlertSchedulerRuleResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*GetAlertSchedulerRuleResponse) ProtoMessage() {}
+
+func (x *GetAlertSchedulerRuleResponse) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use GetAlertSchedulerRuleResponse.ProtoReflect.Descriptor instead.
+func (*GetAlertSchedulerRuleResponse) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *GetAlertSchedulerRuleResponse) GetAlertSchedulerRule() *AlertSchedulerRule {
+ if x != nil {
+ return x.AlertSchedulerRule
+ }
+ return nil
+}
+
+type CreateAlertSchedulerRuleResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ AlertSchedulerRule *AlertSchedulerRule `protobuf:"bytes,1,opt,name=alert_scheduler_rule,json=alertSchedulerRule,proto3" json:"alert_scheduler_rule,omitempty"`
+}
+
+func (x *CreateAlertSchedulerRuleResponse) Reset() {
+ *x = CreateAlertSchedulerRuleResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *CreateAlertSchedulerRuleResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*CreateAlertSchedulerRuleResponse) ProtoMessage() {}
+
+func (x *CreateAlertSchedulerRuleResponse) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use CreateAlertSchedulerRuleResponse.ProtoReflect.Descriptor instead.
+func (*CreateAlertSchedulerRuleResponse) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *CreateAlertSchedulerRuleResponse) GetAlertSchedulerRule() *AlertSchedulerRule {
+ if x != nil {
+ return x.AlertSchedulerRule
+ }
+ return nil
+}
+
+type UpdateAlertSchedulerRuleResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ AlertSchedulerRule *AlertSchedulerRule `protobuf:"bytes,1,opt,name=alert_scheduler_rule,json=alertSchedulerRule,proto3" json:"alert_scheduler_rule,omitempty"`
+}
+
+func (x *UpdateAlertSchedulerRuleResponse) Reset() {
+ *x = UpdateAlertSchedulerRuleResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *UpdateAlertSchedulerRuleResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*UpdateAlertSchedulerRuleResponse) ProtoMessage() {}
+
+func (x *UpdateAlertSchedulerRuleResponse) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use UpdateAlertSchedulerRuleResponse.ProtoReflect.Descriptor instead.
+func (*UpdateAlertSchedulerRuleResponse) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *UpdateAlertSchedulerRuleResponse) GetAlertSchedulerRule() *AlertSchedulerRule {
+ if x != nil {
+ return x.AlertSchedulerRule
+ }
+ return nil
+}
+
+type DeleteAlertSchedulerRuleResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *DeleteAlertSchedulerRuleResponse) Reset() {
+ *x = DeleteAlertSchedulerRuleResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *DeleteAlertSchedulerRuleResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*DeleteAlertSchedulerRuleResponse) ProtoMessage() {}
+
+func (x *DeleteAlertSchedulerRuleResponse) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use DeleteAlertSchedulerRuleResponse.ProtoReflect.Descriptor instead.
+func (*DeleteAlertSchedulerRuleResponse) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_rawDescGZIP(), []int{3}
+}
+
+type CreateBulkAlertSchedulerRuleResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ CreateSuppressionResponses []*CreateAlertSchedulerRuleResponse `protobuf:"bytes,1,rep,name=create_suppression_responses,json=createSuppressionResponses,proto3" json:"create_suppression_responses,omitempty"`
+}
+
+func (x *CreateBulkAlertSchedulerRuleResponse) Reset() {
+ *x = CreateBulkAlertSchedulerRuleResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *CreateBulkAlertSchedulerRuleResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*CreateBulkAlertSchedulerRuleResponse) ProtoMessage() {}
+
+func (x *CreateBulkAlertSchedulerRuleResponse) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_msgTypes[4]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use CreateBulkAlertSchedulerRuleResponse.ProtoReflect.Descriptor instead.
+func (*CreateBulkAlertSchedulerRuleResponse) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *CreateBulkAlertSchedulerRuleResponse) GetCreateSuppressionResponses() []*CreateAlertSchedulerRuleResponse {
+ if x != nil {
+ return x.CreateSuppressionResponses
+ }
+ return nil
+}
+
+type UpdateBulkAlertSchedulerRuleResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ UpdateSuppressionResponses []*UpdateAlertSchedulerRuleResponse `protobuf:"bytes,1,rep,name=update_suppression_responses,json=updateSuppressionResponses,proto3" json:"update_suppression_responses,omitempty"`
+}
+
+func (x *UpdateBulkAlertSchedulerRuleResponse) Reset() {
+ *x = UpdateBulkAlertSchedulerRuleResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *UpdateBulkAlertSchedulerRuleResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*UpdateBulkAlertSchedulerRuleResponse) ProtoMessage() {}
+
+func (x *UpdateBulkAlertSchedulerRuleResponse) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_msgTypes[5]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use UpdateBulkAlertSchedulerRuleResponse.ProtoReflect.Descriptor instead.
+func (*UpdateBulkAlertSchedulerRuleResponse) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_rawDescGZIP(), []int{5}
+}
+
+func (x *UpdateBulkAlertSchedulerRuleResponse) GetUpdateSuppressionResponses() []*UpdateAlertSchedulerRuleResponse {
+ if x != nil {
+ return x.UpdateSuppressionResponses
+ }
+ return nil
+}
+
+type GetBulkAlertSchedulerRuleResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ AlertSchedulerRules []*AlertSchedulerRuleWithActiveTimeframe `protobuf:"bytes,1,rep,name=alert_scheduler_rules,json=alertSchedulerRules,proto3" json:"alert_scheduler_rules,omitempty"`
+ NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
+}
+
+func (x *GetBulkAlertSchedulerRuleResponse) Reset() {
+ *x = GetBulkAlertSchedulerRuleResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_msgTypes[6]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *GetBulkAlertSchedulerRuleResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*GetBulkAlertSchedulerRuleResponse) ProtoMessage() {}
+
+func (x *GetBulkAlertSchedulerRuleResponse) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_msgTypes[6]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use GetBulkAlertSchedulerRuleResponse.ProtoReflect.Descriptor instead.
+func (*GetBulkAlertSchedulerRuleResponse) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_rawDescGZIP(), []int{6}
+}
+
+func (x *GetBulkAlertSchedulerRuleResponse) GetAlertSchedulerRules() []*AlertSchedulerRuleWithActiveTimeframe {
+ if x != nil {
+ return x.AlertSchedulerRules
+ }
+ return nil
+}
+
+func (x *GetBulkAlertSchedulerRuleResponse) GetNextPageToken() string {
+ if x != nil {
+ return x.NextPageToken
+ }
+ return ""
+}
+
+type AlertSchedulerRuleWithActiveTimeframe struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ AlertSchedulerRule *AlertSchedulerRule `protobuf:"bytes,1,opt,name=alert_scheduler_rule,json=alertSchedulerRule,proto3" json:"alert_scheduler_rule,omitempty"`
+ NextActiveTimeframes []*ActiveTimeframe `protobuf:"bytes,2,rep,name=next_active_timeframes,json=nextActiveTimeframes,proto3" json:"next_active_timeframes,omitempty"`
+}
+
+func (x *AlertSchedulerRuleWithActiveTimeframe) Reset() {
+ *x = AlertSchedulerRuleWithActiveTimeframe{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_msgTypes[7]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *AlertSchedulerRuleWithActiveTimeframe) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*AlertSchedulerRuleWithActiveTimeframe) ProtoMessage() {}
+
+func (x *AlertSchedulerRuleWithActiveTimeframe) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_msgTypes[7]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use AlertSchedulerRuleWithActiveTimeframe.ProtoReflect.Descriptor instead.
+func (*AlertSchedulerRuleWithActiveTimeframe) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_rawDescGZIP(), []int{7}
+}
+
+func (x *AlertSchedulerRuleWithActiveTimeframe) GetAlertSchedulerRule() *AlertSchedulerRule {
+ if x != nil {
+ return x.AlertSchedulerRule
+ }
+ return nil
+}
+
+func (x *AlertSchedulerRuleWithActiveTimeframe) GetNextActiveTimeframes() []*ActiveTimeframe {
+ if x != nil {
+ return x.NextActiveTimeframes
+ }
+ return nil
+}
+
+var File_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto protoreflect.FileDescriptor
+
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_rawDesc = []byte{
+ 0x0a, 0x5a, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61,
+ 0x70, 0x69, 0x73, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x6c, 0x65,
+ 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c,
+ 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6c,
+ 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x65,
+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x3b, 0x63, 0x6f,
+ 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e,
+ 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73,
+ 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x1a, 0x56, 0x63, 0x6f, 0x6d, 0x2f, 0x63,
+ 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x6c, 0x65,
+ 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65,
+ 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x62, 0x75, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68,
+ 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x1a, 0x52, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78,
+ 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x6c,
+ 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75,
+ 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x61,
+ 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x2e,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa3, 0x01, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65,
+ 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52,
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x14, 0x61, 0x6c, 0x65, 0x72,
+ 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x4f, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72,
+ 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74,
+ 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75,
+ 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
+ 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75,
+ 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x12, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63,
+ 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x22, 0xa6, 0x01, 0x0a, 0x20,
+ 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64,
+ 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
+ 0x12, 0x81, 0x01, 0x0a, 0x14, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64,
+ 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x4f, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61,
+ 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65,
+ 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c,
+ 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6c,
+ 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65,
+ 0x52, 0x12, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72,
+ 0x52, 0x75, 0x6c, 0x65, 0x22, 0xa6, 0x01, 0x0a, 0x20, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41,
+ 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c,
+ 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x14, 0x61, 0x6c,
+ 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75,
+ 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x4f, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63,
+ 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65,
+ 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65,
+ 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65,
+ 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x12, 0x61, 0x6c, 0x65, 0x72, 0x74,
+ 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x22, 0x22, 0x0a,
+ 0x20, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65,
+ 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
+ 0x65, 0x22, 0xc8, 0x01, 0x0a, 0x24, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x75, 0x6c, 0x6b,
+ 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75,
+ 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x9f, 0x01, 0x0a, 0x1c, 0x63,
+ 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x75, 0x70, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f,
+ 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
+ 0x0b, 0x32, 0x5d, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69,
+ 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61,
+ 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72,
+ 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e,
+ 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64,
+ 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
+ 0x52, 0x1a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x75, 0x70, 0x70, 0x72, 0x65, 0x73, 0x73,
+ 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x22, 0xc8, 0x01, 0x0a,
+ 0x24, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x75, 0x6c, 0x6b, 0x41, 0x6c, 0x65, 0x72, 0x74,
+ 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73,
+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x9f, 0x01, 0x0a, 0x1c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
+ 0x5f, 0x73, 0x75, 0x70, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73,
+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x5d, 0x2e, 0x63,
+ 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73,
+ 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f,
+ 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74,
+ 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52,
+ 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x1a, 0x75, 0x70, 0x64,
+ 0x61, 0x74, 0x65, 0x53, 0x75, 0x70, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65,
+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x22, 0xe4, 0x01, 0x0a, 0x21, 0x47, 0x65, 0x74, 0x42,
+ 0x75, 0x6c, 0x6b, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65,
+ 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x96, 0x01,
+ 0x0a, 0x15, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65,
+ 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x62, 0x2e,
+ 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69,
+ 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74,
+ 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6c, 0x65, 0x72,
+ 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x57, 0x69,
+ 0x74, 0x68, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x66, 0x72, 0x61, 0x6d,
+ 0x65, 0x52, 0x13, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65,
+ 0x72, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70,
+ 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xb0,
+ 0x02, 0x0a, 0x25, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65,
+ 0x72, 0x52, 0x75, 0x6c, 0x65, 0x57, 0x69, 0x74, 0x68, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x54,
+ 0x69, 0x6d, 0x65, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x14, 0x61, 0x6c, 0x65,
+ 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c,
+ 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x4f, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f,
+ 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72,
+ 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64,
+ 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
+ 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64,
+ 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x12, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x53,
+ 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x82, 0x01, 0x0a,
+ 0x16, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x74, 0x69, 0x6d,
+ 0x65, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x4c, 0x2e,
+ 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69,
+ 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74,
+ 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69,
+ 0x76, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x52, 0x14, 0x6e, 0x65, 0x78,
+ 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x66, 0x72, 0x61, 0x6d, 0x65,
+ 0x73, 0x42, 0x04, 0x5a, 0x02, 0x2e, 0x2f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_rawDescOnce sync.Once
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_rawDescData = file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_rawDesc
+)
+
+func file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_rawDescGZIP() []byte {
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_rawDescOnce.Do(func() {
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_rawDescData = protoimpl.X.CompressGZIP(file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_rawDescData)
+ })
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_rawDescData
+}
+
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_goTypes = []interface{}{
+ (*GetAlertSchedulerRuleResponse)(nil), // 0: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.GetAlertSchedulerRuleResponse
+ (*CreateAlertSchedulerRuleResponse)(nil), // 1: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.CreateAlertSchedulerRuleResponse
+ (*UpdateAlertSchedulerRuleResponse)(nil), // 2: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.UpdateAlertSchedulerRuleResponse
+ (*DeleteAlertSchedulerRuleResponse)(nil), // 3: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.DeleteAlertSchedulerRuleResponse
+ (*CreateBulkAlertSchedulerRuleResponse)(nil), // 4: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.CreateBulkAlertSchedulerRuleResponse
+ (*UpdateBulkAlertSchedulerRuleResponse)(nil), // 5: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.UpdateBulkAlertSchedulerRuleResponse
+ (*GetBulkAlertSchedulerRuleResponse)(nil), // 6: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.GetBulkAlertSchedulerRuleResponse
+ (*AlertSchedulerRuleWithActiveTimeframe)(nil), // 7: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleWithActiveTimeframe
+ (*AlertSchedulerRule)(nil), // 8: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRule
+ (*ActiveTimeframe)(nil), // 9: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.ActiveTimeframe
+}
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_depIdxs = []int32{
+ 8, // 0: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.GetAlertSchedulerRuleResponse.alert_scheduler_rule:type_name -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRule
+ 8, // 1: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.CreateAlertSchedulerRuleResponse.alert_scheduler_rule:type_name -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRule
+ 8, // 2: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.UpdateAlertSchedulerRuleResponse.alert_scheduler_rule:type_name -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRule
+ 1, // 3: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.CreateBulkAlertSchedulerRuleResponse.create_suppression_responses:type_name -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.CreateAlertSchedulerRuleResponse
+ 2, // 4: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.UpdateBulkAlertSchedulerRuleResponse.update_suppression_responses:type_name -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.UpdateAlertSchedulerRuleResponse
+ 7, // 5: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.GetBulkAlertSchedulerRuleResponse.alert_scheduler_rules:type_name -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleWithActiveTimeframe
+ 8, // 6: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleWithActiveTimeframe.alert_scheduler_rule:type_name -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRule
+ 9, // 7: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleWithActiveTimeframe.next_active_timeframes:type_name -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.ActiveTimeframe
+ 8, // [8:8] is the sub-list for method output_type
+ 8, // [8:8] is the sub-list for method input_type
+ 8, // [8:8] is the sub-list for extension type_name
+ 8, // [8:8] is the sub-list for extension extendee
+ 0, // [0:8] is the sub-list for field type_name
+}
+
+func init() {
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_init()
+}
+func file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_init() {
+ if File_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto != nil {
+ return
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_proto_init()
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_active_timeframe_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetAlertSchedulerRuleResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*CreateAlertSchedulerRuleResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*UpdateAlertSchedulerRuleResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*DeleteAlertSchedulerRuleResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*CreateBulkAlertSchedulerRuleResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*UpdateBulkAlertSchedulerRuleResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetBulkAlertSchedulerRuleResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*AlertSchedulerRuleWithActiveTimeframe); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 8,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_goTypes,
+ DependencyIndexes: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_depIdxs,
+ MessageInfos: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_msgTypes,
+ }.Build()
+ File_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto = out.File
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_rawDesc = nil
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_goTypes = nil
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_depIdxs = nil
+}
diff --git a/coralogix/clientset/grpc/alerts-scheduler/alert_scheduler_rule.pb.go b/coralogix/clientset/grpc/alerts-scheduler/alert_scheduler_rule.pb.go
new file mode 100644
index 00000000..10085f6d
--- /dev/null
+++ b/coralogix/clientset/grpc/alerts-scheduler/alert_scheduler_rule.pb.go
@@ -0,0 +1,271 @@
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.28.1
+// protoc v3.21.8
+// source: com/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_rule.proto
+
+package __
+
+import (
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ reflect "reflect"
+ sync "sync"
+)
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+type AlertSchedulerRule struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"`
+ Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
+ Description *string `protobuf:"bytes,3,opt,name=description,proto3,oneof" json:"description,omitempty"`
+ MetaLabels []*MetaLabel `protobuf:"bytes,4,rep,name=meta_labels,json=metaLabels,proto3" json:"meta_labels,omitempty"`
+ Filter *Filter `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"`
+ Schedule *Schedule `protobuf:"bytes,6,opt,name=schedule,proto3" json:"schedule,omitempty"`
+ Enabled bool `protobuf:"varint,7,opt,name=enabled,proto3" json:"enabled,omitempty"`
+ CreatedAt *string `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"`
+ UpdatedAt *string `protobuf:"bytes,9,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"`
+}
+
+func (x *AlertSchedulerRule) Reset() {
+ *x = AlertSchedulerRule{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *AlertSchedulerRule) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*AlertSchedulerRule) ProtoMessage() {}
+
+func (x *AlertSchedulerRule) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use AlertSchedulerRule.ProtoReflect.Descriptor instead.
+func (*AlertSchedulerRule) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *AlertSchedulerRule) GetId() string {
+ if x != nil && x.Id != nil {
+ return *x.Id
+ }
+ return ""
+}
+
+func (x *AlertSchedulerRule) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *AlertSchedulerRule) GetDescription() string {
+ if x != nil && x.Description != nil {
+ return *x.Description
+ }
+ return ""
+}
+
+func (x *AlertSchedulerRule) GetMetaLabels() []*MetaLabel {
+ if x != nil {
+ return x.MetaLabels
+ }
+ return nil
+}
+
+func (x *AlertSchedulerRule) GetFilter() *Filter {
+ if x != nil {
+ return x.Filter
+ }
+ return nil
+}
+
+func (x *AlertSchedulerRule) GetSchedule() *Schedule {
+ if x != nil {
+ return x.Schedule
+ }
+ return nil
+}
+
+func (x *AlertSchedulerRule) GetEnabled() bool {
+ if x != nil {
+ return x.Enabled
+ }
+ return false
+}
+
+func (x *AlertSchedulerRule) GetCreatedAt() string {
+ if x != nil && x.CreatedAt != nil {
+ return *x.CreatedAt
+ }
+ return ""
+}
+
+func (x *AlertSchedulerRule) GetUpdatedAt() string {
+ if x != nil && x.UpdatedAt != nil {
+ return *x.UpdatedAt
+ }
+ return ""
+}
+
+var File_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_proto protoreflect.FileDescriptor
+
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_proto_rawDesc = []byte{
+ 0x0a, 0x56, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61,
+ 0x70, 0x69, 0x73, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x6c, 0x65,
+ 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c,
+ 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6c,
+ 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75,
+ 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x3b, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f,
+ 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72,
+ 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64,
+ 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
+ 0x75, 0x66, 0x2e, 0x76, 0x31, 0x1a, 0x44, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x61, 0x6c,
+ 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e,
+ 0x67, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x5f, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x5f, 0x6c,
+ 0x61, 0x62, 0x65, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x58, 0x63, 0x6f, 0x6d,
+ 0x2f, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61,
+ 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63,
+ 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73,
+ 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x4a, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x61, 0x6c,
+ 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e,
+ 0x67, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65,
+ 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,
+ 0x76, 0x31, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x22, 0x9b, 0x04, 0x0a, 0x12, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64,
+ 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x13, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x02, 0x69, 0x64, 0x88, 0x01, 0x01, 0x12, 0x12, 0x0a,
+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
+ 0x65, 0x12, 0x25, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e,
+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69,
+ 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x5e, 0x0a, 0x0b, 0x6d, 0x65, 0x74, 0x61,
+ 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3d, 0x2e,
+ 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69,
+ 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x5f,
+ 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
+ 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x0a, 0x6d, 0x65,
+ 0x74, 0x61, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x5b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74,
+ 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x43, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63,
+ 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65,
+ 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65,
+ 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x06, 0x66,
+ 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x61, 0x0a, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c,
+ 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f,
+ 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72,
+ 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64,
+ 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
+ 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x08,
+ 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62,
+ 0x6c, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c,
+ 0x65, 0x64, 0x12, 0x22, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74,
+ 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
+ 0x64, 0x41, 0x74, 0x88, 0x01, 0x01, 0x12, 0x22, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
+ 0x64, 0x5f, 0x61, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x09, 0x75, 0x70,
+ 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x88, 0x01, 0x01, 0x42, 0x05, 0x0a, 0x03, 0x5f, 0x69,
+ 0x64, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
+ 0x6e, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74,
+ 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x42,
+ 0x04, 0x5a, 0x02, 0x2e, 0x2f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_proto_rawDescOnce sync.Once
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_proto_rawDescData = file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_proto_rawDesc
+)
+
+func file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_proto_rawDescGZIP() []byte {
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_proto_rawDescOnce.Do(func() {
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_proto_rawDescData = protoimpl.X.CompressGZIP(file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_proto_rawDescData)
+ })
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_proto_rawDescData
+}
+
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_proto_goTypes = []interface{}{
+ (*AlertSchedulerRule)(nil), // 0: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRule
+ (*MetaLabel)(nil), // 1: com.coralogixapis.alerting.meta_labels_protobuf.v1.MetaLabel
+ (*Filter)(nil), // 2: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Filter
+ (*Schedule)(nil), // 3: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Schedule
+}
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_proto_depIdxs = []int32{
+ 1, // 0: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRule.meta_labels:type_name -> com.coralogixapis.alerting.meta_labels_protobuf.v1.MetaLabel
+ 2, // 1: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRule.filter:type_name -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Filter
+ 3, // 2: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRule.schedule:type_name -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Schedule
+ 3, // [3:3] is the sub-list for method output_type
+ 3, // [3:3] is the sub-list for method input_type
+ 3, // [3:3] is the sub-list for extension type_name
+ 3, // [3:3] is the sub-list for extension extendee
+ 0, // [0:3] is the sub-list for field type_name
+}
+
+func init() {
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_proto_init()
+}
+func file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_proto_init() {
+ if File_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_proto != nil {
+ return
+ }
+ file_com_coralogixapis_alerting_meta_labels_protobuf_v1_meta_labels_proto_init()
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_filter_proto_init()
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*AlertSchedulerRule); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_proto_msgTypes[0].OneofWrappers = []interface{}{}
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_proto_goTypes,
+ DependencyIndexes: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_proto_depIdxs,
+ MessageInfos: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_proto_msgTypes,
+ }.Build()
+ File_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_proto = out.File
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_proto_rawDesc = nil
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_proto_goTypes = nil
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_proto_depIdxs = nil
+}
diff --git a/coralogix/clientset/grpc/alerts-scheduler/alert_scheduler_rule_service.pb.go b/coralogix/clientset/grpc/alerts-scheduler/alert_scheduler_rule_service.pb.go
new file mode 100644
index 00000000..8f8e0ecb
--- /dev/null
+++ b/coralogix/clientset/grpc/alerts-scheduler/alert_scheduler_rule_service.pb.go
@@ -0,0 +1,213 @@
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.28.1
+// protoc v3.21.8
+// source: com/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_rule_service.proto
+
+package __
+
+import (
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ reflect "reflect"
+)
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+var File_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_service_proto protoreflect.FileDescriptor
+
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_service_proto_rawDesc = []byte{
+ 0x0a, 0x5e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61,
+ 0x70, 0x69, 0x73, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x6c, 0x65,
+ 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c,
+ 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6c,
+ 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75,
+ 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x12, 0x3b, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61,
+ 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65,
+ 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c,
+ 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x1a, 0x59, 0x63,
+ 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73,
+ 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f,
+ 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74,
+ 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65,
+ 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x5a, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f,
+ 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x6c, 0x65, 0x72,
+ 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64,
+ 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
+ 0x75, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65,
+ 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xb1, 0x0c, 0x0a, 0x19, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63,
+ 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x12, 0xd0, 0x01, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53,
+ 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x59, 0x2e, 0x63,
+ 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73,
+ 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f,
+ 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c,
+ 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x5a, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f,
+ 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72,
+ 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64,
+ 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
+ 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63,
+ 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f,
+ 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0xd9, 0x01, 0x0a, 0x18, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
+ 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75,
+ 0x6c, 0x65, 0x12, 0x5c, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67,
+ 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e,
+ 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f,
+ 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31,
+ 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65,
+ 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
+ 0x1a, 0x5d, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78,
+ 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c,
+ 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75,
+ 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x43,
+ 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75,
+ 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
+ 0x00, 0x12, 0xd9, 0x01, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72,
+ 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x5c,
+ 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70,
+ 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72,
+ 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65,
+ 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64,
+ 0x61, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65,
+ 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x5d, 0x2e, 0x63,
+ 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73,
+ 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f,
+ 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74,
+ 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52,
+ 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0xd9, 0x01,
+ 0x0a, 0x18, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68,
+ 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x5c, 0x2e, 0x63, 0x6f, 0x6d,
+ 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61,
+ 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63,
+ 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41,
+ 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c,
+ 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x5d, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63,
+ 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65,
+ 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65,
+ 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65,
+ 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52,
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0xdc, 0x01, 0x0a, 0x19, 0x47, 0x65,
+ 0x74, 0x42, 0x75, 0x6c, 0x6b, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75,
+ 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x5d, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f,
+ 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72,
+ 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64,
+ 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
+ 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x75, 0x6c, 0x6b, 0x41, 0x6c, 0x65,
+ 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x5e, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72,
+ 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74,
+ 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75,
+ 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
+ 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x75, 0x6c, 0x6b, 0x41, 0x6c, 0x65, 0x72,
+ 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65,
+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0xe5, 0x01, 0x0a, 0x1c, 0x43, 0x72, 0x65,
+ 0x61, 0x74, 0x65, 0x42, 0x75, 0x6c, 0x6b, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65,
+ 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x60, 0x2e, 0x63, 0x6f, 0x6d, 0x2e,
+ 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c,
+ 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68,
+ 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x75,
+ 0x6c, 0x6b, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72,
+ 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x61, 0x2e, 0x63, 0x6f,
+ 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e,
+ 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73,
+ 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
+ 0x42, 0x75, 0x6c, 0x6b, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c,
+ 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00,
+ 0x12, 0xe5, 0x01, 0x0a, 0x1c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x75, 0x6c, 0x6b, 0x41,
+ 0x6c, 0x65, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c,
+ 0x65, 0x12, 0x60, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69,
+ 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61,
+ 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72,
+ 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e,
+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x75, 0x6c, 0x6b, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53,
+ 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75,
+ 0x65, 0x73, 0x74, 0x1a, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f,
+ 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67,
+ 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72,
+ 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76,
+ 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x75, 0x6c, 0x6b, 0x41, 0x6c, 0x65, 0x72,
+ 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65,
+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x04, 0x5a, 0x02, 0x2e, 0x2f, 0x62, 0x06,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_service_proto_goTypes = []interface{}{
+ (*GetAlertSchedulerRuleRequest)(nil), // 0: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.GetAlertSchedulerRuleRequest
+ (*CreateAlertSchedulerRuleRequest)(nil), // 1: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.CreateAlertSchedulerRuleRequest
+ (*UpdateAlertSchedulerRuleRequest)(nil), // 2: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.UpdateAlertSchedulerRuleRequest
+ (*DeleteAlertSchedulerRuleRequest)(nil), // 3: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.DeleteAlertSchedulerRuleRequest
+ (*GetBulkAlertSchedulerRuleRequest)(nil), // 4: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.GetBulkAlertSchedulerRuleRequest
+ (*CreateBulkAlertSchedulerRuleRequest)(nil), // 5: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.CreateBulkAlertSchedulerRuleRequest
+ (*UpdateBulkAlertSchedulerRuleRequest)(nil), // 6: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.UpdateBulkAlertSchedulerRuleRequest
+ (*GetAlertSchedulerRuleResponse)(nil), // 7: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.GetAlertSchedulerRuleResponse
+ (*CreateAlertSchedulerRuleResponse)(nil), // 8: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.CreateAlertSchedulerRuleResponse
+ (*UpdateAlertSchedulerRuleResponse)(nil), // 9: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.UpdateAlertSchedulerRuleResponse
+ (*DeleteAlertSchedulerRuleResponse)(nil), // 10: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.DeleteAlertSchedulerRuleResponse
+ (*GetBulkAlertSchedulerRuleResponse)(nil), // 11: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.GetBulkAlertSchedulerRuleResponse
+ (*CreateBulkAlertSchedulerRuleResponse)(nil), // 12: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.CreateBulkAlertSchedulerRuleResponse
+ (*UpdateBulkAlertSchedulerRuleResponse)(nil), // 13: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.UpdateBulkAlertSchedulerRuleResponse
+}
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_service_proto_depIdxs = []int32{
+ 0, // 0: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService.GetAlertSchedulerRule:input_type -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.GetAlertSchedulerRuleRequest
+ 1, // 1: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService.CreateAlertSchedulerRule:input_type -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.CreateAlertSchedulerRuleRequest
+ 2, // 2: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService.UpdateAlertSchedulerRule:input_type -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.UpdateAlertSchedulerRuleRequest
+ 3, // 3: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService.DeleteAlertSchedulerRule:input_type -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.DeleteAlertSchedulerRuleRequest
+ 4, // 4: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService.GetBulkAlertSchedulerRule:input_type -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.GetBulkAlertSchedulerRuleRequest
+ 5, // 5: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService.CreateBulkAlertSchedulerRule:input_type -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.CreateBulkAlertSchedulerRuleRequest
+ 6, // 6: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService.UpdateBulkAlertSchedulerRule:input_type -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.UpdateBulkAlertSchedulerRuleRequest
+ 7, // 7: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService.GetAlertSchedulerRule:output_type -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.GetAlertSchedulerRuleResponse
+ 8, // 8: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService.CreateAlertSchedulerRule:output_type -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.CreateAlertSchedulerRuleResponse
+ 9, // 9: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService.UpdateAlertSchedulerRule:output_type -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.UpdateAlertSchedulerRuleResponse
+ 10, // 10: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService.DeleteAlertSchedulerRule:output_type -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.DeleteAlertSchedulerRuleResponse
+ 11, // 11: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService.GetBulkAlertSchedulerRule:output_type -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.GetBulkAlertSchedulerRuleResponse
+ 12, // 12: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService.CreateBulkAlertSchedulerRule:output_type -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.CreateBulkAlertSchedulerRuleResponse
+ 13, // 13: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService.UpdateBulkAlertSchedulerRule:output_type -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.UpdateBulkAlertSchedulerRuleResponse
+ 7, // [7:14] is the sub-list for method output_type
+ 0, // [0:7] is the sub-list for method input_type
+ 0, // [0:0] is the sub-list for extension type_name
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() {
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_service_proto_init()
+}
+func file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_service_proto_init() {
+ if File_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_service_proto != nil {
+ return
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_request_proto_init()
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_response_proto_init()
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_service_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 0,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_service_proto_goTypes,
+ DependencyIndexes: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_service_proto_depIdxs,
+ }.Build()
+ File_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_service_proto = out.File
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_service_proto_rawDesc = nil
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_service_proto_goTypes = nil
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_service_proto_depIdxs = nil
+}
diff --git a/coralogix/clientset/grpc/alerts-scheduler/alert_scheduler_rule_service_grpc.pb.go b/coralogix/clientset/grpc/alerts-scheduler/alert_scheduler_rule_service_grpc.pb.go
new file mode 100644
index 00000000..4790fa31
--- /dev/null
+++ b/coralogix/clientset/grpc/alerts-scheduler/alert_scheduler_rule_service_grpc.pb.go
@@ -0,0 +1,322 @@
+// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
+// versions:
+// - protoc-gen-go-grpc v1.2.0
+// - protoc v3.21.8
+// source: com/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_rule_service.proto
+
+package __
+
+import (
+ context "context"
+ grpc "google.golang.org/grpc"
+ codes "google.golang.org/grpc/codes"
+ status "google.golang.org/grpc/status"
+)
+
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the grpc package it is being compiled against.
+// Requires gRPC-Go v1.32.0 or later.
+const _ = grpc.SupportPackageIsVersion7
+
+// AlertSchedulerRuleServiceClient is the client API for AlertSchedulerRuleService service.
+//
+// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
+type AlertSchedulerRuleServiceClient interface {
+ GetAlertSchedulerRule(ctx context.Context, in *GetAlertSchedulerRuleRequest, opts ...grpc.CallOption) (*GetAlertSchedulerRuleResponse, error)
+ CreateAlertSchedulerRule(ctx context.Context, in *CreateAlertSchedulerRuleRequest, opts ...grpc.CallOption) (*CreateAlertSchedulerRuleResponse, error)
+ UpdateAlertSchedulerRule(ctx context.Context, in *UpdateAlertSchedulerRuleRequest, opts ...grpc.CallOption) (*UpdateAlertSchedulerRuleResponse, error)
+ DeleteAlertSchedulerRule(ctx context.Context, in *DeleteAlertSchedulerRuleRequest, opts ...grpc.CallOption) (*DeleteAlertSchedulerRuleResponse, error)
+ GetBulkAlertSchedulerRule(ctx context.Context, in *GetBulkAlertSchedulerRuleRequest, opts ...grpc.CallOption) (*GetBulkAlertSchedulerRuleResponse, error)
+ CreateBulkAlertSchedulerRule(ctx context.Context, in *CreateBulkAlertSchedulerRuleRequest, opts ...grpc.CallOption) (*CreateBulkAlertSchedulerRuleResponse, error)
+ UpdateBulkAlertSchedulerRule(ctx context.Context, in *UpdateBulkAlertSchedulerRuleRequest, opts ...grpc.CallOption) (*UpdateBulkAlertSchedulerRuleResponse, error)
+}
+
+type alertSchedulerRuleServiceClient struct {
+ cc grpc.ClientConnInterface
+}
+
+func NewAlertSchedulerRuleServiceClient(cc grpc.ClientConnInterface) AlertSchedulerRuleServiceClient {
+ return &alertSchedulerRuleServiceClient{cc}
+}
+
+func (c *alertSchedulerRuleServiceClient) GetAlertSchedulerRule(ctx context.Context, in *GetAlertSchedulerRuleRequest, opts ...grpc.CallOption) (*GetAlertSchedulerRuleResponse, error) {
+ out := new(GetAlertSchedulerRuleResponse)
+ err := c.cc.Invoke(ctx, "/com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService/GetAlertSchedulerRule", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *alertSchedulerRuleServiceClient) CreateAlertSchedulerRule(ctx context.Context, in *CreateAlertSchedulerRuleRequest, opts ...grpc.CallOption) (*CreateAlertSchedulerRuleResponse, error) {
+ out := new(CreateAlertSchedulerRuleResponse)
+ err := c.cc.Invoke(ctx, "/com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService/CreateAlertSchedulerRule", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *alertSchedulerRuleServiceClient) UpdateAlertSchedulerRule(ctx context.Context, in *UpdateAlertSchedulerRuleRequest, opts ...grpc.CallOption) (*UpdateAlertSchedulerRuleResponse, error) {
+ out := new(UpdateAlertSchedulerRuleResponse)
+ err := c.cc.Invoke(ctx, "/com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService/UpdateAlertSchedulerRule", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *alertSchedulerRuleServiceClient) DeleteAlertSchedulerRule(ctx context.Context, in *DeleteAlertSchedulerRuleRequest, opts ...grpc.CallOption) (*DeleteAlertSchedulerRuleResponse, error) {
+ out := new(DeleteAlertSchedulerRuleResponse)
+ err := c.cc.Invoke(ctx, "/com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService/DeleteAlertSchedulerRule", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *alertSchedulerRuleServiceClient) GetBulkAlertSchedulerRule(ctx context.Context, in *GetBulkAlertSchedulerRuleRequest, opts ...grpc.CallOption) (*GetBulkAlertSchedulerRuleResponse, error) {
+ out := new(GetBulkAlertSchedulerRuleResponse)
+ err := c.cc.Invoke(ctx, "/com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService/GetBulkAlertSchedulerRule", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *alertSchedulerRuleServiceClient) CreateBulkAlertSchedulerRule(ctx context.Context, in *CreateBulkAlertSchedulerRuleRequest, opts ...grpc.CallOption) (*CreateBulkAlertSchedulerRuleResponse, error) {
+ out := new(CreateBulkAlertSchedulerRuleResponse)
+ err := c.cc.Invoke(ctx, "/com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService/CreateBulkAlertSchedulerRule", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *alertSchedulerRuleServiceClient) UpdateBulkAlertSchedulerRule(ctx context.Context, in *UpdateBulkAlertSchedulerRuleRequest, opts ...grpc.CallOption) (*UpdateBulkAlertSchedulerRuleResponse, error) {
+ out := new(UpdateBulkAlertSchedulerRuleResponse)
+ err := c.cc.Invoke(ctx, "/com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService/UpdateBulkAlertSchedulerRule", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+// AlertSchedulerRuleServiceServer is the server API for AlertSchedulerRuleService service.
+// All implementations must embed UnimplementedAlertSchedulerRuleServiceServer
+// for forward compatibility
+type AlertSchedulerRuleServiceServer interface {
+ GetAlertSchedulerRule(context.Context, *GetAlertSchedulerRuleRequest) (*GetAlertSchedulerRuleResponse, error)
+ CreateAlertSchedulerRule(context.Context, *CreateAlertSchedulerRuleRequest) (*CreateAlertSchedulerRuleResponse, error)
+ UpdateAlertSchedulerRule(context.Context, *UpdateAlertSchedulerRuleRequest) (*UpdateAlertSchedulerRuleResponse, error)
+ DeleteAlertSchedulerRule(context.Context, *DeleteAlertSchedulerRuleRequest) (*DeleteAlertSchedulerRuleResponse, error)
+ GetBulkAlertSchedulerRule(context.Context, *GetBulkAlertSchedulerRuleRequest) (*GetBulkAlertSchedulerRuleResponse, error)
+ CreateBulkAlertSchedulerRule(context.Context, *CreateBulkAlertSchedulerRuleRequest) (*CreateBulkAlertSchedulerRuleResponse, error)
+ UpdateBulkAlertSchedulerRule(context.Context, *UpdateBulkAlertSchedulerRuleRequest) (*UpdateBulkAlertSchedulerRuleResponse, error)
+ mustEmbedUnimplementedAlertSchedulerRuleServiceServer()
+}
+
+// UnimplementedAlertSchedulerRuleServiceServer must be embedded to have forward compatible implementations.
+type UnimplementedAlertSchedulerRuleServiceServer struct {
+}
+
+func (UnimplementedAlertSchedulerRuleServiceServer) GetAlertSchedulerRule(context.Context, *GetAlertSchedulerRuleRequest) (*GetAlertSchedulerRuleResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method GetAlertSchedulerRule not implemented")
+}
+func (UnimplementedAlertSchedulerRuleServiceServer) CreateAlertSchedulerRule(context.Context, *CreateAlertSchedulerRuleRequest) (*CreateAlertSchedulerRuleResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method CreateAlertSchedulerRule not implemented")
+}
+func (UnimplementedAlertSchedulerRuleServiceServer) UpdateAlertSchedulerRule(context.Context, *UpdateAlertSchedulerRuleRequest) (*UpdateAlertSchedulerRuleResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method UpdateAlertSchedulerRule not implemented")
+}
+func (UnimplementedAlertSchedulerRuleServiceServer) DeleteAlertSchedulerRule(context.Context, *DeleteAlertSchedulerRuleRequest) (*DeleteAlertSchedulerRuleResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method DeleteAlertSchedulerRule not implemented")
+}
+func (UnimplementedAlertSchedulerRuleServiceServer) GetBulkAlertSchedulerRule(context.Context, *GetBulkAlertSchedulerRuleRequest) (*GetBulkAlertSchedulerRuleResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method GetBulkAlertSchedulerRule not implemented")
+}
+func (UnimplementedAlertSchedulerRuleServiceServer) CreateBulkAlertSchedulerRule(context.Context, *CreateBulkAlertSchedulerRuleRequest) (*CreateBulkAlertSchedulerRuleResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method CreateBulkAlertSchedulerRule not implemented")
+}
+func (UnimplementedAlertSchedulerRuleServiceServer) UpdateBulkAlertSchedulerRule(context.Context, *UpdateBulkAlertSchedulerRuleRequest) (*UpdateBulkAlertSchedulerRuleResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method UpdateBulkAlertSchedulerRule not implemented")
+}
+func (UnimplementedAlertSchedulerRuleServiceServer) mustEmbedUnimplementedAlertSchedulerRuleServiceServer() {
+}
+
+// UnsafeAlertSchedulerRuleServiceServer may be embedded to opt out of forward compatibility for this service.
+// Use of this interface is not recommended, as added methods to AlertSchedulerRuleServiceServer will
+// result in compilation errors.
+type UnsafeAlertSchedulerRuleServiceServer interface {
+ mustEmbedUnimplementedAlertSchedulerRuleServiceServer()
+}
+
+func RegisterAlertSchedulerRuleServiceServer(s grpc.ServiceRegistrar, srv AlertSchedulerRuleServiceServer) {
+ s.RegisterService(&AlertSchedulerRuleService_ServiceDesc, srv)
+}
+
+func _AlertSchedulerRuleService_GetAlertSchedulerRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(GetAlertSchedulerRuleRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(AlertSchedulerRuleServiceServer).GetAlertSchedulerRule(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService/GetAlertSchedulerRule",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(AlertSchedulerRuleServiceServer).GetAlertSchedulerRule(ctx, req.(*GetAlertSchedulerRuleRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _AlertSchedulerRuleService_CreateAlertSchedulerRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(CreateAlertSchedulerRuleRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(AlertSchedulerRuleServiceServer).CreateAlertSchedulerRule(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService/CreateAlertSchedulerRule",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(AlertSchedulerRuleServiceServer).CreateAlertSchedulerRule(ctx, req.(*CreateAlertSchedulerRuleRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _AlertSchedulerRuleService_UpdateAlertSchedulerRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(UpdateAlertSchedulerRuleRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(AlertSchedulerRuleServiceServer).UpdateAlertSchedulerRule(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService/UpdateAlertSchedulerRule",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(AlertSchedulerRuleServiceServer).UpdateAlertSchedulerRule(ctx, req.(*UpdateAlertSchedulerRuleRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _AlertSchedulerRuleService_DeleteAlertSchedulerRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(DeleteAlertSchedulerRuleRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(AlertSchedulerRuleServiceServer).DeleteAlertSchedulerRule(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService/DeleteAlertSchedulerRule",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(AlertSchedulerRuleServiceServer).DeleteAlertSchedulerRule(ctx, req.(*DeleteAlertSchedulerRuleRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _AlertSchedulerRuleService_GetBulkAlertSchedulerRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(GetBulkAlertSchedulerRuleRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(AlertSchedulerRuleServiceServer).GetBulkAlertSchedulerRule(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService/GetBulkAlertSchedulerRule",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(AlertSchedulerRuleServiceServer).GetBulkAlertSchedulerRule(ctx, req.(*GetBulkAlertSchedulerRuleRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _AlertSchedulerRuleService_CreateBulkAlertSchedulerRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(CreateBulkAlertSchedulerRuleRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(AlertSchedulerRuleServiceServer).CreateBulkAlertSchedulerRule(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService/CreateBulkAlertSchedulerRule",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(AlertSchedulerRuleServiceServer).CreateBulkAlertSchedulerRule(ctx, req.(*CreateBulkAlertSchedulerRuleRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _AlertSchedulerRuleService_UpdateBulkAlertSchedulerRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(UpdateBulkAlertSchedulerRuleRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(AlertSchedulerRuleServiceServer).UpdateBulkAlertSchedulerRule(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService/UpdateBulkAlertSchedulerRule",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(AlertSchedulerRuleServiceServer).UpdateBulkAlertSchedulerRule(ctx, req.(*UpdateBulkAlertSchedulerRuleRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+// AlertSchedulerRuleService_ServiceDesc is the grpc.ServiceDesc for AlertSchedulerRuleService service.
+// It's only intended for direct use with grpc.RegisterService,
+// and not to be introspected or modified (even as a copy)
+var AlertSchedulerRuleService_ServiceDesc = grpc.ServiceDesc{
+ ServiceName: "com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService",
+ HandlerType: (*AlertSchedulerRuleServiceServer)(nil),
+ Methods: []grpc.MethodDesc{
+ {
+ MethodName: "GetAlertSchedulerRule",
+ Handler: _AlertSchedulerRuleService_GetAlertSchedulerRule_Handler,
+ },
+ {
+ MethodName: "CreateAlertSchedulerRule",
+ Handler: _AlertSchedulerRuleService_CreateAlertSchedulerRule_Handler,
+ },
+ {
+ MethodName: "UpdateAlertSchedulerRule",
+ Handler: _AlertSchedulerRuleService_UpdateAlertSchedulerRule_Handler,
+ },
+ {
+ MethodName: "DeleteAlertSchedulerRule",
+ Handler: _AlertSchedulerRuleService_DeleteAlertSchedulerRule_Handler,
+ },
+ {
+ MethodName: "GetBulkAlertSchedulerRule",
+ Handler: _AlertSchedulerRuleService_GetBulkAlertSchedulerRule_Handler,
+ },
+ {
+ MethodName: "CreateBulkAlertSchedulerRule",
+ Handler: _AlertSchedulerRuleService_CreateBulkAlertSchedulerRule_Handler,
+ },
+ {
+ MethodName: "UpdateBulkAlertSchedulerRule",
+ Handler: _AlertSchedulerRuleService_UpdateBulkAlertSchedulerRule_Handler,
+ },
+ },
+ Streams: []grpc.StreamDesc{},
+ Metadata: "com/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_rule_service.proto",
+}
diff --git a/coralogix/clientset/grpc/alerts-scheduler/alert_scheduler_rule_timeframe.pb.go b/coralogix/clientset/grpc/alerts-scheduler/alert_scheduler_rule_timeframe.pb.go
new file mode 100644
index 00000000..22a68109
--- /dev/null
+++ b/coralogix/clientset/grpc/alerts-scheduler/alert_scheduler_rule_timeframe.pb.go
@@ -0,0 +1,359 @@
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.28.1
+// protoc v3.21.8
+// source: com/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_rule_timeframe.proto
+
+package __
+
+import (
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ reflect "reflect"
+ sync "sync"
+)
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+type DurationFrequency int32
+
+const (
+ DurationFrequency_DURATION_FREQUENCY_UNSPECIFIED DurationFrequency = 0
+ DurationFrequency_DURATION_FREQUENCY_MINUTE DurationFrequency = 1
+ DurationFrequency_DURATION_FREQUENCY_HOUR DurationFrequency = 2
+ DurationFrequency_DURATION_FREQUENCY_DAY DurationFrequency = 3
+)
+
+// Enum value maps for DurationFrequency.
+var (
+ DurationFrequency_name = map[int32]string{
+ 0: "DURATION_FREQUENCY_UNSPECIFIED",
+ 1: "DURATION_FREQUENCY_MINUTE",
+ 2: "DURATION_FREQUENCY_HOUR",
+ 3: "DURATION_FREQUENCY_DAY",
+ }
+ DurationFrequency_value = map[string]int32{
+ "DURATION_FREQUENCY_UNSPECIFIED": 0,
+ "DURATION_FREQUENCY_MINUTE": 1,
+ "DURATION_FREQUENCY_HOUR": 2,
+ "DURATION_FREQUENCY_DAY": 3,
+ }
+)
+
+func (x DurationFrequency) Enum() *DurationFrequency {
+ p := new(DurationFrequency)
+ *p = x
+ return p
+}
+
+func (x DurationFrequency) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (DurationFrequency) Descriptor() protoreflect.EnumDescriptor {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_enumTypes[0].Descriptor()
+}
+
+func (DurationFrequency) Type() protoreflect.EnumType {
+ return &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_enumTypes[0]
+}
+
+func (x DurationFrequency) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use DurationFrequency.Descriptor instead.
+func (DurationFrequency) EnumDescriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_rawDescGZIP(), []int{0}
+}
+
+type Timeframe struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ StartTime string `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
+ // Types that are assignable to Until:
+ // *Timeframe_EndTime
+ // *Timeframe_Duration
+ Until isTimeframe_Until `protobuf_oneof:"until"`
+ Timezone string `protobuf:"bytes,4,opt,name=timezone,proto3" json:"timezone,omitempty"`
+}
+
+func (x *Timeframe) Reset() {
+ *x = Timeframe{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Timeframe) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Timeframe) ProtoMessage() {}
+
+func (x *Timeframe) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use Timeframe.ProtoReflect.Descriptor instead.
+func (*Timeframe) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Timeframe) GetStartTime() string {
+ if x != nil {
+ return x.StartTime
+ }
+ return ""
+}
+
+func (m *Timeframe) GetUntil() isTimeframe_Until {
+ if m != nil {
+ return m.Until
+ }
+ return nil
+}
+
+func (x *Timeframe) GetEndTime() string {
+ if x, ok := x.GetUntil().(*Timeframe_EndTime); ok {
+ return x.EndTime
+ }
+ return ""
+}
+
+func (x *Timeframe) GetDuration() *Duration {
+ if x, ok := x.GetUntil().(*Timeframe_Duration); ok {
+ return x.Duration
+ }
+ return nil
+}
+
+func (x *Timeframe) GetTimezone() string {
+ if x != nil {
+ return x.Timezone
+ }
+ return ""
+}
+
+type isTimeframe_Until interface {
+ isTimeframe_Until()
+}
+
+type Timeframe_EndTime struct {
+ EndTime string `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3,oneof"`
+}
+
+type Timeframe_Duration struct {
+ Duration *Duration `protobuf:"bytes,3,opt,name=duration,proto3,oneof"` // TODO Duration -> Dynamic ?
+}
+
+func (*Timeframe_EndTime) isTimeframe_Until() {}
+
+func (*Timeframe_Duration) isTimeframe_Until() {}
+
+type Duration struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ ForOver int32 `protobuf:"varint,1,opt,name=for_over,json=forOver,proto3" json:"for_over,omitempty"` // TODO for_over -> duration ?
+ Frequency DurationFrequency `protobuf:"varint,2,opt,name=frequency,proto3,enum=com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.DurationFrequency" json:"frequency,omitempty"`
+}
+
+func (x *Duration) Reset() {
+ *x = Duration{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Duration) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Duration) ProtoMessage() {}
+
+func (x *Duration) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use Duration.ProtoReflect.Descriptor instead.
+func (*Duration) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *Duration) GetForOver() int32 {
+ if x != nil {
+ return x.ForOver
+ }
+ return 0
+}
+
+func (x *Duration) GetFrequency() DurationFrequency {
+ if x != nil {
+ return x.Frequency
+ }
+ return DurationFrequency_DURATION_FREQUENCY_UNSPECIFIED
+}
+
+var File_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto protoreflect.FileDescriptor
+
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_rawDesc = []byte{
+ 0x0a, 0x60, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61,
+ 0x70, 0x69, 0x73, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x6c, 0x65,
+ 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c,
+ 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6c,
+ 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75,
+ 0x6c, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x2e, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x12, 0x3b, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69,
+ 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61,
+ 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72,
+ 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x22,
+ 0xd1, 0x01, 0x0a, 0x09, 0x54, 0x69, 0x6d, 0x65, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a,
+ 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x08,
+ 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00,
+ 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x63, 0x0a, 0x08, 0x64, 0x75, 0x72,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x63, 0x6f,
+ 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e,
+ 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73,
+ 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a,
+ 0x0a, 0x08, 0x74, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x08, 0x74, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x75, 0x6e,
+ 0x74, 0x69, 0x6c, 0x22, 0x93, 0x01, 0x0a, 0x08, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+ 0x12, 0x19, 0x0a, 0x08, 0x66, 0x6f, 0x72, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x05, 0x52, 0x07, 0x66, 0x6f, 0x72, 0x4f, 0x76, 0x65, 0x72, 0x12, 0x6c, 0x0a, 0x09, 0x66,
+ 0x72, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x4e,
+ 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70,
+ 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72,
+ 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65,
+ 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x75, 0x72,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x72, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x79, 0x52, 0x09,
+ 0x66, 0x72, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x79, 0x2a, 0x8f, 0x01, 0x0a, 0x11, 0x44, 0x75,
+ 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x72, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x79, 0x12,
+ 0x22, 0x0a, 0x1e, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x52, 0x45, 0x51,
+ 0x55, 0x45, 0x4e, 0x43, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,
+ 0x44, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f,
+ 0x46, 0x52, 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, 0x59, 0x5f, 0x4d, 0x49, 0x4e, 0x55, 0x54, 0x45,
+ 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46,
+ 0x52, 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, 0x59, 0x5f, 0x48, 0x4f, 0x55, 0x52, 0x10, 0x02, 0x12,
+ 0x1a, 0x0a, 0x16, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x52, 0x45, 0x51,
+ 0x55, 0x45, 0x4e, 0x43, 0x59, 0x5f, 0x44, 0x41, 0x59, 0x10, 0x03, 0x42, 0x04, 0x5a, 0x02, 0x2e,
+ 0x2f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_rawDescOnce sync.Once
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_rawDescData = file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_rawDesc
+)
+
+func file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_rawDescGZIP() []byte {
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_rawDescOnce.Do(func() {
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_rawDescData = protoimpl.X.CompressGZIP(file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_rawDescData)
+ })
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_rawDescData
+}
+
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_goTypes = []interface{}{
+ (DurationFrequency)(0), // 0: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.DurationFrequency
+ (*Timeframe)(nil), // 1: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Timeframe
+ (*Duration)(nil), // 2: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Duration
+}
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_depIdxs = []int32{
+ 2, // 0: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Timeframe.duration:type_name -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Duration
+ 0, // 1: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Duration.frequency:type_name -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.DurationFrequency
+ 2, // [2:2] is the sub-list for method output_type
+ 2, // [2:2] is the sub-list for method input_type
+ 2, // [2:2] is the sub-list for extension type_name
+ 2, // [2:2] is the sub-list for extension extendee
+ 0, // [0:2] is the sub-list for field type_name
+}
+
+func init() {
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_init()
+}
+func file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_init() {
+ if File_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Timeframe); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Duration); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_msgTypes[0].OneofWrappers = []interface{}{
+ (*Timeframe_EndTime)(nil),
+ (*Timeframe_Duration)(nil),
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_rawDesc,
+ NumEnums: 1,
+ NumMessages: 2,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_goTypes,
+ DependencyIndexes: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_depIdxs,
+ EnumInfos: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_enumTypes,
+ MessageInfos: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_msgTypes,
+ }.Build()
+ File_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto = out.File
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_rawDesc = nil
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_goTypes = nil
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_depIdxs = nil
+}
diff --git a/coralogix/clientset/grpc/alerts-scheduler/meta_labels.pb.go b/coralogix/clientset/grpc/alerts-scheduler/meta_labels.pb.go
new file mode 100644
index 00000000..79e47987
--- /dev/null
+++ b/coralogix/clientset/grpc/alerts-scheduler/meta_labels.pb.go
@@ -0,0 +1,169 @@
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.28.1
+// protoc v3.21.8
+// source: com/coralogixapis/alerting/meta_labels_protobuf/v1/meta_labels.proto
+
+package __
+
+import (
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ reflect "reflect"
+ sync "sync"
+)
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// Must used that schemas because the metaLabel GRPC service use that schemas
+type MetaLabel struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"`
+ Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
+ Value *string `protobuf:"bytes,3,opt,name=value,proto3,oneof" json:"value,omitempty"`
+}
+
+func (x *MetaLabel) Reset() {
+ *x = MetaLabel{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_meta_labels_protobuf_v1_meta_labels_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MetaLabel) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MetaLabel) ProtoMessage() {}
+
+func (x *MetaLabel) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_meta_labels_protobuf_v1_meta_labels_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use MetaLabel.ProtoReflect.Descriptor instead.
+func (*MetaLabel) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_meta_labels_protobuf_v1_meta_labels_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *MetaLabel) GetId() string {
+ if x != nil && x.Id != nil {
+ return *x.Id
+ }
+ return ""
+}
+
+func (x *MetaLabel) GetKey() string {
+ if x != nil {
+ return x.Key
+ }
+ return ""
+}
+
+func (x *MetaLabel) GetValue() string {
+ if x != nil && x.Value != nil {
+ return *x.Value
+ }
+ return ""
+}
+
+var File_com_coralogixapis_alerting_meta_labels_protobuf_v1_meta_labels_proto protoreflect.FileDescriptor
+
+var file_com_coralogixapis_alerting_meta_labels_protobuf_v1_meta_labels_proto_rawDesc = []byte{
+ 0x0a, 0x44, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61,
+ 0x70, 0x69, 0x73, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x6d, 0x65, 0x74,
+ 0x61, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
+ 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73,
+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x32, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61,
+ 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69,
+ 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x5f, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x22, 0x5e, 0x0a, 0x09, 0x4d, 0x65,
+ 0x74, 0x61, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x13, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x02, 0x69, 0x64, 0x88, 0x01, 0x01, 0x12, 0x10, 0x0a, 0x03,
+ 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x19,
+ 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52,
+ 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x88, 0x01, 0x01, 0x42, 0x05, 0x0a, 0x03, 0x5f, 0x69, 0x64,
+ 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x04, 0x5a, 0x02, 0x2e, 0x2f,
+ 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_com_coralogixapis_alerting_meta_labels_protobuf_v1_meta_labels_proto_rawDescOnce sync.Once
+ file_com_coralogixapis_alerting_meta_labels_protobuf_v1_meta_labels_proto_rawDescData = file_com_coralogixapis_alerting_meta_labels_protobuf_v1_meta_labels_proto_rawDesc
+)
+
+func file_com_coralogixapis_alerting_meta_labels_protobuf_v1_meta_labels_proto_rawDescGZIP() []byte {
+ file_com_coralogixapis_alerting_meta_labels_protobuf_v1_meta_labels_proto_rawDescOnce.Do(func() {
+ file_com_coralogixapis_alerting_meta_labels_protobuf_v1_meta_labels_proto_rawDescData = protoimpl.X.CompressGZIP(file_com_coralogixapis_alerting_meta_labels_protobuf_v1_meta_labels_proto_rawDescData)
+ })
+ return file_com_coralogixapis_alerting_meta_labels_protobuf_v1_meta_labels_proto_rawDescData
+}
+
+var file_com_coralogixapis_alerting_meta_labels_protobuf_v1_meta_labels_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_com_coralogixapis_alerting_meta_labels_protobuf_v1_meta_labels_proto_goTypes = []interface{}{
+ (*MetaLabel)(nil), // 0: com.coralogixapis.alerting.meta_labels_protobuf.v1.MetaLabel
+}
+var file_com_coralogixapis_alerting_meta_labels_protobuf_v1_meta_labels_proto_depIdxs = []int32{
+ 0, // [0:0] is the sub-list for method output_type
+ 0, // [0:0] is the sub-list for method input_type
+ 0, // [0:0] is the sub-list for extension type_name
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_com_coralogixapis_alerting_meta_labels_protobuf_v1_meta_labels_proto_init() }
+func file_com_coralogixapis_alerting_meta_labels_protobuf_v1_meta_labels_proto_init() {
+ if File_com_coralogixapis_alerting_meta_labels_protobuf_v1_meta_labels_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_com_coralogixapis_alerting_meta_labels_protobuf_v1_meta_labels_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MetaLabel); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ file_com_coralogixapis_alerting_meta_labels_protobuf_v1_meta_labels_proto_msgTypes[0].OneofWrappers = []interface{}{}
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_com_coralogixapis_alerting_meta_labels_protobuf_v1_meta_labels_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_com_coralogixapis_alerting_meta_labels_protobuf_v1_meta_labels_proto_goTypes,
+ DependencyIndexes: file_com_coralogixapis_alerting_meta_labels_protobuf_v1_meta_labels_proto_depIdxs,
+ MessageInfos: file_com_coralogixapis_alerting_meta_labels_protobuf_v1_meta_labels_proto_msgTypes,
+ }.Build()
+ File_com_coralogixapis_alerting_meta_labels_protobuf_v1_meta_labels_proto = out.File
+ file_com_coralogixapis_alerting_meta_labels_protobuf_v1_meta_labels_proto_rawDesc = nil
+ file_com_coralogixapis_alerting_meta_labels_protobuf_v1_meta_labels_proto_goTypes = nil
+ file_com_coralogixapis_alerting_meta_labels_protobuf_v1_meta_labels_proto_depIdxs = nil
+}
diff --git a/coralogix/clientset/grpc/alerts-scheduler/schedule.pb.go b/coralogix/clientset/grpc/alerts-scheduler/schedule.pb.go
new file mode 100644
index 00000000..a6d2bfbe
--- /dev/null
+++ b/coralogix/clientset/grpc/alerts-scheduler/schedule.pb.go
@@ -0,0 +1,867 @@
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.28.1
+// protoc v3.21.8
+// source: com/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/schedule.proto
+
+package __
+
+import (
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ reflect "reflect"
+ sync "sync"
+)
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+type ScheduleOperation int32
+
+const (
+ ScheduleOperation_SCHEDULE_OPERATION_UNSPECIFIED ScheduleOperation = 0
+ ScheduleOperation_SCHEDULE_OPERATION_MUTE ScheduleOperation = 1
+ ScheduleOperation_SCHEDULE_OPERATION_ACTIVATE ScheduleOperation = 2
+)
+
+// Enum value maps for ScheduleOperation.
+var (
+ ScheduleOperation_name = map[int32]string{
+ 0: "SCHEDULE_OPERATION_UNSPECIFIED",
+ 1: "SCHEDULE_OPERATION_MUTE",
+ 2: "SCHEDULE_OPERATION_ACTIVATE",
+ }
+ ScheduleOperation_value = map[string]int32{
+ "SCHEDULE_OPERATION_UNSPECIFIED": 0,
+ "SCHEDULE_OPERATION_MUTE": 1,
+ "SCHEDULE_OPERATION_ACTIVATE": 2,
+ }
+)
+
+func (x ScheduleOperation) Enum() *ScheduleOperation {
+ p := new(ScheduleOperation)
+ *p = x
+ return p
+}
+
+func (x ScheduleOperation) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (ScheduleOperation) Descriptor() protoreflect.EnumDescriptor {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_enumTypes[0].Descriptor()
+}
+
+func (ScheduleOperation) Type() protoreflect.EnumType {
+ return &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_enumTypes[0]
+}
+
+func (x ScheduleOperation) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use ScheduleOperation.Descriptor instead.
+func (ScheduleOperation) EnumDescriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_rawDescGZIP(), []int{0}
+}
+
+type Schedule struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ ScheduleOperation ScheduleOperation `protobuf:"varint,1,opt,name=schedule_operation,json=scheduleOperation,proto3,enum=com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.ScheduleOperation" json:"schedule_operation,omitempty"`
+ // Types that are assignable to Scheduler:
+ // *Schedule_OneTime
+ // *Schedule_Recurring
+ Scheduler isSchedule_Scheduler `protobuf_oneof:"scheduler"`
+}
+
+func (x *Schedule) Reset() {
+ *x = Schedule{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Schedule) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Schedule) ProtoMessage() {}
+
+func (x *Schedule) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use Schedule.ProtoReflect.Descriptor instead.
+func (*Schedule) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Schedule) GetScheduleOperation() ScheduleOperation {
+ if x != nil {
+ return x.ScheduleOperation
+ }
+ return ScheduleOperation_SCHEDULE_OPERATION_UNSPECIFIED
+}
+
+func (m *Schedule) GetScheduler() isSchedule_Scheduler {
+ if m != nil {
+ return m.Scheduler
+ }
+ return nil
+}
+
+func (x *Schedule) GetOneTime() *OneTime {
+ if x, ok := x.GetScheduler().(*Schedule_OneTime); ok {
+ return x.OneTime
+ }
+ return nil
+}
+
+func (x *Schedule) GetRecurring() *Recurring {
+ if x, ok := x.GetScheduler().(*Schedule_Recurring); ok {
+ return x.Recurring
+ }
+ return nil
+}
+
+type isSchedule_Scheduler interface {
+ isSchedule_Scheduler()
+}
+
+type Schedule_OneTime struct {
+ OneTime *OneTime `protobuf:"bytes,2,opt,name=one_time,json=oneTime,proto3,oneof"`
+}
+
+type Schedule_Recurring struct {
+ Recurring *Recurring `protobuf:"bytes,3,opt,name=recurring,proto3,oneof"`
+}
+
+func (*Schedule_OneTime) isSchedule_Scheduler() {}
+
+func (*Schedule_Recurring) isSchedule_Scheduler() {}
+
+type OneTime struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Timeframe *Timeframe `protobuf:"bytes,1,opt,name=timeframe,proto3" json:"timeframe,omitempty"`
+}
+
+func (x *OneTime) Reset() {
+ *x = OneTime{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *OneTime) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*OneTime) ProtoMessage() {}
+
+func (x *OneTime) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use OneTime.ProtoReflect.Descriptor instead.
+func (*OneTime) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *OneTime) GetTimeframe() *Timeframe {
+ if x != nil {
+ return x.Timeframe
+ }
+ return nil
+}
+
+type Recurring struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // Types that are assignable to Condition:
+ // *Recurring_Always_
+ // *Recurring_Dynamic_
+ Condition isRecurring_Condition `protobuf_oneof:"condition"`
+}
+
+func (x *Recurring) Reset() {
+ *x = Recurring{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Recurring) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Recurring) ProtoMessage() {}
+
+func (x *Recurring) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use Recurring.ProtoReflect.Descriptor instead.
+func (*Recurring) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_rawDescGZIP(), []int{2}
+}
+
+func (m *Recurring) GetCondition() isRecurring_Condition {
+ if m != nil {
+ return m.Condition
+ }
+ return nil
+}
+
+func (x *Recurring) GetAlways() *Recurring_Always {
+ if x, ok := x.GetCondition().(*Recurring_Always_); ok {
+ return x.Always
+ }
+ return nil
+}
+
+func (x *Recurring) GetDynamic() *Recurring_Dynamic {
+ if x, ok := x.GetCondition().(*Recurring_Dynamic_); ok {
+ return x.Dynamic
+ }
+ return nil
+}
+
+type isRecurring_Condition interface {
+ isRecurring_Condition()
+}
+
+type Recurring_Always_ struct {
+ Always *Recurring_Always `protobuf:"bytes,1,opt,name=always,proto3,oneof"`
+}
+
+type Recurring_Dynamic_ struct {
+ Dynamic *Recurring_Dynamic `protobuf:"bytes,2,opt,name=dynamic,proto3,oneof"`
+}
+
+func (*Recurring_Always_) isRecurring_Condition() {}
+
+func (*Recurring_Dynamic_) isRecurring_Condition() {}
+
+type Daily struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *Daily) Reset() {
+ *x = Daily{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Daily) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Daily) ProtoMessage() {}
+
+func (x *Daily) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use Daily.ProtoReflect.Descriptor instead.
+func (*Daily) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_rawDescGZIP(), []int{3}
+}
+
+type Weekly struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ DaysOfWeek []int32 `protobuf:"varint,1,rep,packed,name=days_of_week,json=daysOfWeek,proto3" json:"days_of_week,omitempty"`
+}
+
+func (x *Weekly) Reset() {
+ *x = Weekly{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Weekly) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Weekly) ProtoMessage() {}
+
+func (x *Weekly) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_msgTypes[4]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use Weekly.ProtoReflect.Descriptor instead.
+func (*Weekly) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *Weekly) GetDaysOfWeek() []int32 {
+ if x != nil {
+ return x.DaysOfWeek
+ }
+ return nil
+}
+
+type Monthly struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ DaysOfMonth []int32 `protobuf:"varint,1,rep,packed,name=days_of_month,json=daysOfMonth,proto3" json:"days_of_month,omitempty"`
+}
+
+func (x *Monthly) Reset() {
+ *x = Monthly{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Monthly) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Monthly) ProtoMessage() {}
+
+func (x *Monthly) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_msgTypes[5]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use Monthly.ProtoReflect.Descriptor instead.
+func (*Monthly) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_rawDescGZIP(), []int{5}
+}
+
+func (x *Monthly) GetDaysOfMonth() []int32 {
+ if x != nil {
+ return x.DaysOfMonth
+ }
+ return nil
+}
+
+type Recurring_Always struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *Recurring_Always) Reset() {
+ *x = Recurring_Always{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_msgTypes[6]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Recurring_Always) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Recurring_Always) ProtoMessage() {}
+
+func (x *Recurring_Always) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_msgTypes[6]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use Recurring_Always.ProtoReflect.Descriptor instead.
+func (*Recurring_Always) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_rawDescGZIP(), []int{2, 0}
+}
+
+type Recurring_Dynamic struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ RepeatEvery int32 `protobuf:"varint,1,opt,name=repeat_every,json=repeatEvery,proto3" json:"repeat_every,omitempty"`
+ // Types that are assignable to Frequency:
+ // *Recurring_Dynamic_Daily
+ // *Recurring_Dynamic_Weekly
+ // *Recurring_Dynamic_Monthly
+ Frequency isRecurring_Dynamic_Frequency `protobuf_oneof:"frequency"`
+ Timeframe *Timeframe `protobuf:"bytes,5,opt,name=timeframe,proto3" json:"timeframe,omitempty"`
+ TerminationDate *string `protobuf:"bytes,6,opt,name=termination_date,json=terminationDate,proto3,oneof" json:"termination_date,omitempty"`
+}
+
+func (x *Recurring_Dynamic) Reset() {
+ *x = Recurring_Dynamic{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_msgTypes[7]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Recurring_Dynamic) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Recurring_Dynamic) ProtoMessage() {}
+
+func (x *Recurring_Dynamic) ProtoReflect() protoreflect.Message {
+ mi := &file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_msgTypes[7]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use Recurring_Dynamic.ProtoReflect.Descriptor instead.
+func (*Recurring_Dynamic) Descriptor() ([]byte, []int) {
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_rawDescGZIP(), []int{2, 1}
+}
+
+func (x *Recurring_Dynamic) GetRepeatEvery() int32 {
+ if x != nil {
+ return x.RepeatEvery
+ }
+ return 0
+}
+
+func (m *Recurring_Dynamic) GetFrequency() isRecurring_Dynamic_Frequency {
+ if m != nil {
+ return m.Frequency
+ }
+ return nil
+}
+
+func (x *Recurring_Dynamic) GetDaily() *Daily {
+ if x, ok := x.GetFrequency().(*Recurring_Dynamic_Daily); ok {
+ return x.Daily
+ }
+ return nil
+}
+
+func (x *Recurring_Dynamic) GetWeekly() *Weekly {
+ if x, ok := x.GetFrequency().(*Recurring_Dynamic_Weekly); ok {
+ return x.Weekly
+ }
+ return nil
+}
+
+func (x *Recurring_Dynamic) GetMonthly() *Monthly {
+ if x, ok := x.GetFrequency().(*Recurring_Dynamic_Monthly); ok {
+ return x.Monthly
+ }
+ return nil
+}
+
+func (x *Recurring_Dynamic) GetTimeframe() *Timeframe {
+ if x != nil {
+ return x.Timeframe
+ }
+ return nil
+}
+
+func (x *Recurring_Dynamic) GetTerminationDate() string {
+ if x != nil && x.TerminationDate != nil {
+ return *x.TerminationDate
+ }
+ return ""
+}
+
+type isRecurring_Dynamic_Frequency interface {
+ isRecurring_Dynamic_Frequency()
+}
+
+type Recurring_Dynamic_Daily struct {
+ Daily *Daily `protobuf:"bytes,2,opt,name=daily,proto3,oneof"`
+}
+
+type Recurring_Dynamic_Weekly struct {
+ Weekly *Weekly `protobuf:"bytes,3,opt,name=weekly,proto3,oneof"`
+}
+
+type Recurring_Dynamic_Monthly struct {
+ Monthly *Monthly `protobuf:"bytes,4,opt,name=monthly,proto3,oneof"`
+}
+
+func (*Recurring_Dynamic_Daily) isRecurring_Dynamic_Frequency() {}
+
+func (*Recurring_Dynamic_Weekly) isRecurring_Dynamic_Frequency() {}
+
+func (*Recurring_Dynamic_Monthly) isRecurring_Dynamic_Frequency() {}
+
+var File_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto protoreflect.FileDescriptor
+
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_rawDesc = []byte{
+ 0x0a, 0x4a, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61,
+ 0x70, 0x69, 0x73, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x6c, 0x65,
+ 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c,
+ 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x63,
+ 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x3b, 0x63, 0x6f,
+ 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e,
+ 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73,
+ 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x1a, 0x60, 0x63, 0x6f, 0x6d, 0x2f, 0x63,
+ 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x6c, 0x65,
+ 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65,
+ 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x62, 0x75, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68,
+ 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65,
+ 0x66, 0x72, 0x61, 0x6d, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe1, 0x02, 0x0a, 0x08,
+ 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x7d, 0x0a, 0x12, 0x73, 0x63, 0x68, 0x65,
+ 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x0e, 0x32, 0x4e, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c,
+ 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e,
+ 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65,
+ 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
+ 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x4f, 0x70,
+ 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x61, 0x0a, 0x08, 0x6f, 0x6e, 0x65, 0x5f, 0x74,
+ 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x44, 0x2e, 0x63, 0x6f, 0x6d, 0x2e,
+ 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c,
+ 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68,
+ 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x48,
+ 0x00, 0x52, 0x07, 0x6f, 0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x66, 0x0a, 0x09, 0x72, 0x65,
+ 0x63, 0x75, 0x72, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x46, 0x2e,
+ 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69,
+ 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74,
+ 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x75,
+ 0x72, 0x72, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x09, 0x72, 0x65, 0x63, 0x75, 0x72, 0x72, 0x69,
+ 0x6e, 0x67, 0x42, 0x0b, 0x0a, 0x09, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x22,
+ 0x6f, 0x0a, 0x07, 0x4f, 0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x64, 0x0a, 0x09, 0x74, 0x69,
+ 0x6d, 0x65, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x46, 0x2e,
+ 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69,
+ 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74,
+ 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65,
+ 0x66, 0x72, 0x61, 0x6d, 0x65, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x66, 0x72, 0x61, 0x6d, 0x65,
+ 0x22, 0xfb, 0x05, 0x0a, 0x09, 0x52, 0x65, 0x63, 0x75, 0x72, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x67,
+ 0x0a, 0x06, 0x61, 0x6c, 0x77, 0x61, 0x79, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x4d,
+ 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70,
+ 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72,
+ 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65,
+ 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63,
+ 0x75, 0x72, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c, 0x77, 0x61, 0x79, 0x73, 0x48, 0x00, 0x52,
+ 0x06, 0x61, 0x6c, 0x77, 0x61, 0x79, 0x73, 0x12, 0x6a, 0x0a, 0x07, 0x64, 0x79, 0x6e, 0x61, 0x6d,
+ 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x4e, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63,
+ 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65,
+ 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65,
+ 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x75, 0x72, 0x72, 0x69, 0x6e, 0x67,
+ 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x48, 0x00, 0x52, 0x07, 0x64, 0x79, 0x6e, 0x61,
+ 0x6d, 0x69, 0x63, 0x1a, 0x08, 0x0a, 0x06, 0x41, 0x6c, 0x77, 0x61, 0x79, 0x73, 0x1a, 0x81, 0x04,
+ 0x0a, 0x07, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x70,
+ 0x65, 0x61, 0x74, 0x5f, 0x65, 0x76, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
+ 0x0b, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x45, 0x76, 0x65, 0x72, 0x79, 0x12, 0x5a, 0x0a, 0x05,
+ 0x64, 0x61, 0x69, 0x6c, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x63, 0x6f,
+ 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e,
+ 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73,
+ 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x48,
+ 0x00, 0x52, 0x05, 0x64, 0x61, 0x69, 0x6c, 0x79, 0x12, 0x5d, 0x0a, 0x06, 0x77, 0x65, 0x65, 0x6b,
+ 0x6c, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x43, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63,
+ 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65,
+ 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65,
+ 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x65, 0x6b, 0x6c, 0x79, 0x48, 0x00, 0x52,
+ 0x06, 0x77, 0x65, 0x65, 0x6b, 0x6c, 0x79, 0x12, 0x60, 0x0a, 0x07, 0x6d, 0x6f, 0x6e, 0x74, 0x68,
+ 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x44, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63,
+ 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x61, 0x6c, 0x65,
+ 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65,
+ 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x6c, 0x79, 0x48, 0x00,
+ 0x52, 0x07, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x6c, 0x79, 0x12, 0x64, 0x0a, 0x09, 0x74, 0x69, 0x6d,
+ 0x65, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x46, 0x2e, 0x63,
+ 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73,
+ 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f,
+ 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x66,
+ 0x72, 0x61, 0x6d, 0x65, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x12,
+ 0x2e, 0x0a, 0x10, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64,
+ 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0f, 0x74, 0x65, 0x72,
+ 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x88, 0x01, 0x01, 0x42,
+ 0x0b, 0x0a, 0x09, 0x66, 0x72, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x79, 0x42, 0x13, 0x0a, 0x11,
+ 0x5f, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74,
+ 0x65, 0x42, 0x0b, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x07,
+ 0x0a, 0x05, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x22, 0x2a, 0x0a, 0x06, 0x57, 0x65, 0x65, 0x6b, 0x6c,
+ 0x79, 0x12, 0x20, 0x0a, 0x0c, 0x64, 0x61, 0x79, 0x73, 0x5f, 0x6f, 0x66, 0x5f, 0x77, 0x65, 0x65,
+ 0x6b, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0a, 0x64, 0x61, 0x79, 0x73, 0x4f, 0x66, 0x57,
+ 0x65, 0x65, 0x6b, 0x22, 0x2d, 0x0a, 0x07, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x6c, 0x79, 0x12, 0x22,
+ 0x0a, 0x0d, 0x64, 0x61, 0x79, 0x73, 0x5f, 0x6f, 0x66, 0x5f, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x18,
+ 0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0b, 0x64, 0x61, 0x79, 0x73, 0x4f, 0x66, 0x4d, 0x6f, 0x6e,
+ 0x74, 0x68, 0x2a, 0x75, 0x0a, 0x11, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x4f, 0x70,
+ 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x1e, 0x53, 0x43, 0x48, 0x45, 0x44,
+ 0x55, 0x4c, 0x45, 0x5f, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e,
+ 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x53,
+ 0x43, 0x48, 0x45, 0x44, 0x55, 0x4c, 0x45, 0x5f, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f,
+ 0x4e, 0x5f, 0x4d, 0x55, 0x54, 0x45, 0x10, 0x01, 0x12, 0x1f, 0x0a, 0x1b, 0x53, 0x43, 0x48, 0x45,
+ 0x44, 0x55, 0x4c, 0x45, 0x5f, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41,
+ 0x43, 0x54, 0x49, 0x56, 0x41, 0x54, 0x45, 0x10, 0x02, 0x42, 0x04, 0x5a, 0x02, 0x2e, 0x2f, 0x62,
+ 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_rawDescOnce sync.Once
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_rawDescData = file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_rawDesc
+)
+
+func file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_rawDescGZIP() []byte {
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_rawDescOnce.Do(func() {
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_rawDescData = protoimpl.X.CompressGZIP(file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_rawDescData)
+ })
+ return file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_rawDescData
+}
+
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_goTypes = []interface{}{
+ (ScheduleOperation)(0), // 0: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.ScheduleOperation
+ (*Schedule)(nil), // 1: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Schedule
+ (*OneTime)(nil), // 2: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.OneTime
+ (*Recurring)(nil), // 3: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Recurring
+ (*Daily)(nil), // 4: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Daily
+ (*Weekly)(nil), // 5: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Weekly
+ (*Monthly)(nil), // 6: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Monthly
+ (*Recurring_Always)(nil), // 7: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Recurring.Always
+ (*Recurring_Dynamic)(nil), // 8: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Recurring.Dynamic
+ (*Timeframe)(nil), // 9: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Timeframe
+}
+var file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_depIdxs = []int32{
+ 0, // 0: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Schedule.schedule_operation:type_name -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.ScheduleOperation
+ 2, // 1: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Schedule.one_time:type_name -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.OneTime
+ 3, // 2: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Schedule.recurring:type_name -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Recurring
+ 9, // 3: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.OneTime.timeframe:type_name -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Timeframe
+ 7, // 4: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Recurring.always:type_name -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Recurring.Always
+ 8, // 5: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Recurring.dynamic:type_name -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Recurring.Dynamic
+ 4, // 6: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Recurring.Dynamic.daily:type_name -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Daily
+ 5, // 7: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Recurring.Dynamic.weekly:type_name -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Weekly
+ 6, // 8: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Recurring.Dynamic.monthly:type_name -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Monthly
+ 9, // 9: com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Recurring.Dynamic.timeframe:type_name -> com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.Timeframe
+ 10, // [10:10] is the sub-list for method output_type
+ 10, // [10:10] is the sub-list for method input_type
+ 10, // [10:10] is the sub-list for extension type_name
+ 10, // [10:10] is the sub-list for extension extendee
+ 0, // [0:10] is the sub-list for field type_name
+}
+
+func init() { file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_init() }
+func file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_init() {
+ if File_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto != nil {
+ return
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_alert_scheduler_rule_timeframe_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Schedule); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*OneTime); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Recurring); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Daily); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Weekly); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Monthly); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Recurring_Always); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Recurring_Dynamic); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_msgTypes[0].OneofWrappers = []interface{}{
+ (*Schedule_OneTime)(nil),
+ (*Schedule_Recurring)(nil),
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_msgTypes[2].OneofWrappers = []interface{}{
+ (*Recurring_Always_)(nil),
+ (*Recurring_Dynamic_)(nil),
+ }
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_msgTypes[7].OneofWrappers = []interface{}{
+ (*Recurring_Dynamic_Daily)(nil),
+ (*Recurring_Dynamic_Weekly)(nil),
+ (*Recurring_Dynamic_Monthly)(nil),
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_rawDesc,
+ NumEnums: 1,
+ NumMessages: 8,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_goTypes,
+ DependencyIndexes: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_depIdxs,
+ EnumInfos: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_enumTypes,
+ MessageInfos: file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_msgTypes,
+ }.Build()
+ File_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto = out.File
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_rawDesc = nil
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_goTypes = nil
+ file_com_coralogixapis_alerting_alert_scheduler_rule_protobuf_v1_schedule_proto_depIdxs = nil
+}
diff --git a/coralogix/data_source_coralogix_alerts_scheduler.go b/coralogix/data_source_coralogix_alerts_scheduler.go
new file mode 100644
index 00000000..35a24736
--- /dev/null
+++ b/coralogix/data_source_coralogix_alerts_scheduler.go
@@ -0,0 +1,85 @@
+package coralogix
+
+import (
+ "context"
+ "fmt"
+ "log"
+
+ "google.golang.org/protobuf/encoding/protojson"
+
+ "github.com/hashicorp/terraform-plugin-framework/datasource"
+ "github.com/hashicorp/terraform-plugin-framework/resource"
+ "terraform-provider-coralogix/coralogix/clientset"
+ alertsSchedulers "terraform-provider-coralogix/coralogix/clientset/grpc/alerts-scheduler"
+)
+
+var _ datasource.DataSourceWithConfigure = &AlertsSchedulerDataSource{}
+
+func NewAlertsSchedulerDataSource() datasource.DataSource {
+ return &AlertsSchedulerDataSource{}
+}
+
+type AlertsSchedulerDataSource struct {
+ client *clientset.AlertsSchedulersClient
+}
+
+func (d *AlertsSchedulerDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) {
+ resp.TypeName = req.ProviderTypeName + "_alerts_scheduler"
+}
+
+func (d *AlertsSchedulerDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) {
+ if req.ProviderData == nil {
+ return
+ }
+
+ clientSet, ok := req.ProviderData.(*clientset.ClientSet)
+ if !ok {
+ resp.Diagnostics.AddError(
+ "Unexpected Resource Configure Type",
+ fmt.Sprintf("Expected *clientset.ClientSet, got: %T. Please report this issue to the provider developers.", req.ProviderData),
+ )
+ return
+ }
+
+ d.client = clientSet.AlertSchedulers()
+}
+
+func (d *AlertsSchedulerDataSource) Schema(ctx context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
+ var r AlertsSchedulerResource
+ var resourceResp resource.SchemaResponse
+ r.Schema(ctx, resource.SchemaRequest{}, &resourceResp)
+
+ resp.Schema = frameworkDatasourceSchemaFromFrameworkResourceSchema(resourceResp.Schema)
+}
+
+func (d *AlertsSchedulerDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
+ var data *AlertsSchedulerResourceModel
+ resp.Diagnostics.Append(req.Config.Get(ctx, &data)...)
+ if resp.Diagnostics.HasError() {
+ return
+ }
+
+ //Get refreshed alerts-scheduler value from Coralogix
+ id := data.ID.ValueString()
+ log.Printf("[INFO] Reading alerts-scheduler: %s", id)
+ getAlertsSchedulerReq := &alertsSchedulers.GetAlertSchedulerRuleRequest{AlertSchedulerRuleId: id}
+ getAlertsSchedulerResp, err := d.client.GetAlertScheduler(ctx, getAlertsSchedulerReq)
+ if err != nil {
+ log.Printf("[ERROR] Received error: %#v", err)
+ resp.Diagnostics.AddError(
+ "Error reading alerts-scheduler",
+ formatRpcErrors(err, getAlertsSchedulerURL, protojson.Format(getAlertsSchedulerReq)),
+ )
+ return
+ }
+ log.Printf("[INFO] Received alerts-scheduler: %s", protojson.Format(getAlertsSchedulerResp))
+
+ data, diags := flattenAlertScheduler(ctx, getAlertsSchedulerResp.GetAlertSchedulerRule())
+ if diags.HasError() {
+ resp.Diagnostics = diags
+ return
+ }
+
+ // Save data into Terraform state
+ resp.Diagnostics.Append(resp.State.Set(ctx, &data)...)
+}
diff --git a/coralogix/data_source_coralogix_alerts_scheduler_test.go b/coralogix/data_source_coralogix_alerts_scheduler_test.go
new file mode 100644
index 00000000..8b7d4c1a
--- /dev/null
+++ b/coralogix/data_source_coralogix_alerts_scheduler_test.go
@@ -0,0 +1,33 @@
+package coralogix
+
+import (
+ "testing"
+
+ "github.com/hashicorp/terraform-plugin-testing/helper/resource"
+)
+
+var alertsSchedulerDataSourceName = "data." + alertsSchedulerResourceName
+
+func TestAccCoralogixDataSourceAlertsScheduler(t *testing.T) {
+ resource.Test(t, resource.TestCase{
+ PreCheck: func() { testAccPreCheck(t) },
+ ProtoV6ProviderFactories: testAccProtoV6ProviderFactories,
+ CheckDestroy: testAccCheckAlertsSchedulerDestroy,
+ Steps: []resource.TestStep{
+ {
+ Config: testAccCoralogixResourceAlertsScheduler() +
+ testAccCoralogixAlertsScheduler_read(),
+ Check: resource.ComposeAggregateTestCheckFunc(
+ resource.TestCheckResourceAttr(alertsSchedulerDataSourceName, "name", "example"),
+ ),
+ },
+ },
+ })
+}
+
+func testAccCoralogixAlertsScheduler_read() string {
+ return `data "coralogix_alerts_scheduler" "test" {
+ id = coralogix_alerts_scheduler.test.id
+ }
+`
+}
diff --git a/coralogix/provider.go b/coralogix/provider.go
index 3c609e8c..4973b826 100644
--- a/coralogix/provider.go
+++ b/coralogix/provider.go
@@ -283,6 +283,7 @@ func (p *coralogixProvider) DataSources(context.Context) []func() datasource.Dat
NewArchiveRetentionsDataSource,
NewArchiveMetricsDataSource,
NewArchiveLogsDataSource,
+ NewAlertsSchedulerDataSource,
}
}
@@ -299,5 +300,6 @@ func (p *coralogixProvider) Resources(context.Context) []func() resource.Resourc
NewArchiveRetentionsResource,
NewArchiveMetricsResource,
NewArchiveLogsResource,
+ NewAlertsSchedulerResource,
}
}
diff --git a/coralogix/resource_coralogix_alert.go b/coralogix/resource_coralogix_alert.go
index b7bee4fe..5ae1a8ee 100644
--- a/coralogix/resource_coralogix_alert.go
+++ b/coralogix/resource_coralogix_alert.go
@@ -148,7 +148,7 @@ var (
}
alertProtoDeadmanRatiosToSchemaDeadmanRatios = reverseMapStrings(alertSchemaDeadmanRatiosToProtoDeadmanRatios)
alertValidDeadmanRatioValues = getKeysStrings(alertSchemaDeadmanRatiosToProtoDeadmanRatios)
- alertValidTimeZones = []string{"UTC-11", "UTC-10", "UTC-9", "UTC-8", "UTC-7", "UTC-6", "UTC-5", "UTC-4", "UTC-3", "UTC-2", "UTC-1",
+ validTimeZones = []string{"UTC-11", "UTC-10", "UTC-9", "UTC-8", "UTC-7", "UTC-6", "UTC-5", "UTC-4", "UTC-3", "UTC-2", "UTC-1",
"UTC+0", "UTC+1", "UTC+2", "UTC+3", "UTC+4", "UTC+5", "UTC+6", "UTC+7", "UTC+8", "UTC+9", "UTC+10", "UTC+11", "UTC+12", "UTC+13", "UTC+14"}
alertSchemaNotifyOnToProtoNotifyOn = map[string]alerts.NotifyOn{
"Triggered_only": alerts.NotifyOn_TRIGGERED_ONLY,
@@ -476,8 +476,8 @@ func schedulingSchema() map[string]*schema.Schema {
Type: schema.TypeString,
Optional: true,
Default: "UTC+0",
- ValidateFunc: validation.StringInSlice(alertValidTimeZones, false),
- Description: fmt.Sprintf("Specifies the time zone to be used in interpreting the schedule. Can be one of %q", alertValidTimeZones),
+ ValidateFunc: validation.StringInSlice(validTimeZones, false),
+ Description: fmt.Sprintf("Specifies the time zone to be used in interpreting the schedule. Can be one of %q", validTimeZones),
},
"time_frame": {
Type: schema.TypeSet,
diff --git a/coralogix/resource_coralogix_alert_test.go b/coralogix/resource_coralogix_alert_test.go
index 0dadab47..64471493 100644
--- a/coralogix/resource_coralogix_alert_test.go
+++ b/coralogix/resource_coralogix_alert_test.go
@@ -1272,7 +1272,7 @@ type activeWhen struct {
func randActiveWhen() activeWhen {
return activeWhen{
- timeZone: selectRandomlyFromSlice(alertValidTimeZones),
+ timeZone: selectRandomlyFromSlice(validTimeZones),
daysOfWeek: selectManyRandomlyFromSlice(alertValidDaysOfWeek),
activityStarts: randHourStr(),
activityEnds: randHourStr(),
diff --git a/coralogix/resource_coralogix_alerts_scheduler.go b/coralogix/resource_coralogix_alerts_scheduler.go
new file mode 100644
index 00000000..18696554
--- /dev/null
+++ b/coralogix/resource_coralogix_alerts_scheduler.go
@@ -0,0 +1,1205 @@
+package coralogix
+
+import (
+ "context"
+ "fmt"
+ "log"
+
+ "github.com/hashicorp/terraform-plugin-framework-validators/objectvalidator"
+ "github.com/hashicorp/terraform-plugin-framework-validators/setvalidator"
+ "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
+ "github.com/hashicorp/terraform-plugin-framework/attr"
+ "github.com/hashicorp/terraform-plugin-framework/diag"
+ "github.com/hashicorp/terraform-plugin-framework/path"
+ "github.com/hashicorp/terraform-plugin-framework/resource"
+ "github.com/hashicorp/terraform-plugin-framework/resource/schema"
+ "github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault"
+ "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault"
+ "github.com/hashicorp/terraform-plugin-framework/schema/validator"
+ "github.com/hashicorp/terraform-plugin-framework/types"
+ "github.com/hashicorp/terraform-plugin-framework/types/basetypes"
+ "google.golang.org/grpc/codes"
+ "google.golang.org/grpc/status"
+ "google.golang.org/protobuf/encoding/protojson"
+ "terraform-provider-coralogix/coralogix/clientset"
+ alertsSchedulers "terraform-provider-coralogix/coralogix/clientset/grpc/alerts-scheduler"
+)
+
+var (
+ _ resource.ResourceWithConfigure = &AlertsSchedulerResource{}
+ _ resource.ResourceWithImportState = &AlertsSchedulerResource{}
+ protoToSchemaDurationFrequency = map[alertsSchedulers.DurationFrequency]string{
+ alertsSchedulers.DurationFrequency_DURATION_FREQUENCY_MINUTE: "minutes",
+ alertsSchedulers.DurationFrequency_DURATION_FREQUENCY_HOUR: "hours",
+ alertsSchedulers.DurationFrequency_DURATION_FREQUENCY_DAY: "days",
+ }
+ schemaToProtoDurationFrequency = ReverseMap(protoToSchemaDurationFrequency)
+ validDurationFrequencies = GetKeys(schemaToProtoDurationFrequency)
+ daysToProtoValue = map[string]int32{
+ "Sunday": 1,
+ "Monday": 2,
+ "Tuesday": 3,
+ "Wednesday": 4,
+ "Thursday": 5,
+ "Friday": 6,
+ "Saturday": 7,
+ }
+ protoToDaysValue = ReverseMap(daysToProtoValue)
+ validDays = GetKeys(daysToProtoValue)
+ protoToSchemaScheduleOperation = map[alertsSchedulers.ScheduleOperation]string{
+ alertsSchedulers.ScheduleOperation_SCHEDULE_OPERATION_MUTE: "mute",
+ alertsSchedulers.ScheduleOperation_SCHEDULE_OPERATION_ACTIVATE: "active",
+ }
+ schemaToProtoScheduleOperation = ReverseMap(protoToSchemaScheduleOperation)
+ validScheduleOperations = GetKeys(schemaToProtoScheduleOperation)
+ createAlertsSchedulerURL = "com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService/GetAlertSchedulerRule"
+ updateAlertsSchedulerURL = "com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService/UpdateAlertSchedulerRule"
+ deleteAlertsSchedulerURL = "com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService/DeleteAlertSchedulerRule"
+ getAlertsSchedulerURL = "com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService/GetAlertSchedulerRule"
+)
+
+func NewAlertsSchedulerResource() resource.Resource {
+ return &AlertsSchedulerResource{}
+}
+
+type AlertsSchedulerResource struct {
+ client *clientset.AlertsSchedulersClient
+}
+
+type AlertsSchedulerResourceModel struct {
+ ID types.String `tfsdk:"id"`
+ Name types.String `tfsdk:"name"`
+ Description types.String `tfsdk:"description"`
+ MetaLabels types.Set `tfsdk:"meta_labels"` //MetaLabelModel
+ Filter types.Object `tfsdk:"filter"` //FilterModel
+ Schedule types.Object `tfsdk:"schedule"` //ScheduleModel
+ Enabled types.Bool `tfsdk:"enabled"`
+}
+
+type MetaLabelModel struct {
+ Key types.String `tfsdk:"key"`
+ Value types.String `tfsdk:"value"`
+}
+
+type FilterModel struct {
+ WhatExpression types.String `tfsdk:"what_expression"`
+ MetaLabels types.Set `tfsdk:"meta_labels"` //MetaLabelModel
+ AlertsUniqueIDs types.Set `tfsdk:"alerts_unique_ids"` //types.String
+}
+
+type ScheduleModel struct {
+ Operation types.String `tfsdk:"operation"`
+ OneTime types.Object `tfsdk:"one_time"` //OneTimeModel
+ Recurring types.Object `tfsdk:"recurring"` //RecurringModel
+}
+
+type OneTimeModel struct {
+ TimeFrame types.Object `tfsdk:"time_frame"` //TimeFrameModel
+}
+
+type DurationModel struct {
+ ForOver types.Int64 `tfsdk:"for_over"`
+ Frequency types.String `tfsdk:"frequency"`
+}
+
+type RecurringModel struct {
+ Dynamic types.Object `tfsdk:"dynamic"` //DynamicModel
+}
+
+type DynamicModel struct {
+ RepeatEvery types.Int64 `tfsdk:"repeat_every"` //DurationModel
+ Frequency types.Object `tfsdk:"frequency"` //FrequencyModel
+ TimeFrame types.Object `tfsdk:"time_frame"` //TimeFrameModel
+ TerminationDay types.String `tfsdk:"termination_date"`
+}
+
+type FrequencyModel struct {
+ Daily types.Object `tfsdk:"daily"` //DailyModel
+ Weekly types.Object `tfsdk:"weekly"` //WeeklyModel
+ Monthly types.Object `tfsdk:"monthly"` //MonthlyModel
+}
+
+type DailyModel struct{}
+
+type WeeklyModel struct {
+ Days types.Set `tfsdk:"days"` //types.String
+}
+
+type MonthlyModel struct {
+ Days types.Set `tfsdk:"days"` //types.Int64
+}
+
+type TimeFrameModel struct {
+ StartTime types.String `tfsdk:"start_time"`
+ EndTime types.String `tfsdk:"end_time"`
+ Duration types.Object `tfsdk:"duration"` //DurationModel
+ TimeZone types.String `tfsdk:"time_zone"`
+}
+
+func (r *AlertsSchedulerResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) {
+ resp.TypeName = req.ProviderTypeName + "_alerts_scheduler"
+}
+
+func (r *AlertsSchedulerResource) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) {
+ if req.ProviderData == nil {
+ return
+ }
+
+ clientSet, ok := req.ProviderData.(*clientset.ClientSet)
+ if !ok {
+ resp.Diagnostics.AddError(
+ "Unexpected Resource Configure Type",
+ fmt.Sprintf("Expected *clientset.ClientSet, got: %T. Please report this issue to the provider developers.", req.ProviderData),
+ )
+ return
+ }
+
+ r.client = clientSet.AlertSchedulers()
+}
+
+func (r *AlertsSchedulerResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
+ resp.Schema = schema.Schema{
+ Version: 0,
+ Attributes: map[string]schema.Attribute{
+ "id": schema.StringAttribute{
+ Computed: true,
+ MarkdownDescription: "Alert Scheduler ID.",
+ },
+ "name": schema.StringAttribute{
+ Required: true,
+ MarkdownDescription: "Alert Scheduler name.",
+ },
+ "description": schema.StringAttribute{
+ Optional: true,
+ MarkdownDescription: "Alert Scheduler description.",
+ },
+ "meta_labels": schema.SetNestedAttribute{
+ NestedObject: schema.NestedAttributeObject{
+ Attributes: metaLabelsAttributes(),
+ },
+ Optional: true,
+ MarkdownDescription: "Alert Scheduler meta labels.",
+ },
+ "filter": schema.SingleNestedAttribute{
+ Attributes: map[string]schema.Attribute{
+ "what_expression": schema.StringAttribute{
+ Required: true,
+ MarkdownDescription: "DataPrime query expression. - [DataPrime query language](https://coralogix.com/docs/dataprime-query-language/).",
+ },
+ "meta_labels": schema.SetNestedAttribute{
+ NestedObject: schema.NestedAttributeObject{
+ Attributes: metaLabelsAttributes(),
+ },
+ Optional: true,
+ Validators: []validator.Set{
+ setvalidator.ConflictsWith(path.MatchRelative().AtParent().AtName("alerts_unique_ids")),
+ },
+ },
+ "alerts_unique_ids": schema.SetAttribute{
+ ElementType: types.StringType,
+ Optional: true,
+ Validators: []validator.Set{
+ setvalidator.ConflictsWith(path.MatchRelative().AtParent().AtName("meta_labels")),
+ },
+ },
+ },
+ Optional: true,
+ MarkdownDescription: "Alert Scheduler filter. Only one of `meta_labels` or `alerts_unique_ids` can be set. If none of them set, all alerts will be affected.",
+ },
+ "schedule": schema.SingleNestedAttribute{
+ Attributes: map[string]schema.Attribute{
+ "operation": schema.StringAttribute{
+ Required: true,
+ Validators: []validator.String{
+ stringvalidator.OneOf(validScheduleOperations...),
+ },
+ MarkdownDescription: "The operation to perform. Can be `mute` or `active`.",
+ },
+ "one_time": schema.SingleNestedAttribute{
+ Attributes: map[string]schema.Attribute{
+ "time_frame": schema.SingleNestedAttribute{
+ Attributes: timeFrameAttributes(),
+ Required: true,
+ },
+ },
+ Optional: true,
+ Validators: []validator.Object{
+ objectvalidator.ExactlyOneOf(path.MatchRelative().AtParent().AtName("recurring")),
+ },
+ },
+ "recurring": schema.SingleNestedAttribute{
+ Attributes: map[string]schema.Attribute{
+ "dynamic": schema.SingleNestedAttribute{
+ Attributes: map[string]schema.Attribute{
+ "repeat_every": schema.Int64Attribute{
+ Required: true,
+ },
+ "frequency": schema.SingleNestedAttribute{
+ Attributes: map[string]schema.Attribute{
+ "daily": schema.SingleNestedAttribute{
+ Attributes: map[string]schema.Attribute{},
+ Optional: true,
+ },
+ "weekly": schema.SingleNestedAttribute{
+ Attributes: map[string]schema.Attribute{
+ "days": schema.SetAttribute{
+ ElementType: types.StringType,
+ Optional: true,
+ Validators: []validator.Set{
+ setvalidator.ValueStringsAre(
+ stringvalidator.OneOf(validDays...),
+ ),
+ },
+ },
+ },
+ Optional: true,
+ },
+ "monthly": schema.SingleNestedAttribute{
+ Attributes: map[string]schema.Attribute{
+ "days": schema.SetAttribute{
+ ElementType: types.Int64Type,
+ Optional: true,
+ },
+ },
+ Optional: true,
+ },
+ },
+ Required: true,
+ },
+ "time_frame": schema.SingleNestedAttribute{
+ Attributes: timeFrameAttributes(),
+ Required: true,
+ },
+ "termination_date": schema.StringAttribute{
+ Optional: true,
+ Computed: true,
+ Default: stringdefault.StaticString(""),
+ },
+ },
+ Optional: true,
+ },
+ },
+ Optional: true,
+ Validators: []validator.Object{
+ objectvalidator.ExactlyOneOf(path.MatchRelative().AtParent().AtName("one_time")),
+ },
+ },
+ },
+ Optional: true,
+ MarkdownDescription: "Exactly one of `one_time` or `recurring` must be set.",
+ },
+ "enabled": schema.BoolAttribute{
+ Optional: true,
+ Computed: true,
+ Default: booldefault.StaticBool(true),
+ MarkdownDescription: "Alert Scheduler enabled. If set to `false`, the alert scheduler will be disabled. True by default.",
+ },
+ },
+ MarkdownDescription: "Coralogix alerts-scheduler.",
+ }
+}
+
+func metaLabelsAttributes() map[string]schema.Attribute {
+ return map[string]schema.Attribute{
+ "key": schema.StringAttribute{
+ Required: true,
+ },
+ "value": schema.StringAttribute{
+ Optional: true,
+ },
+ }
+}
+
+func timeFrameAttributes() map[string]schema.Attribute {
+ return map[string]schema.Attribute{
+ "start_time": schema.StringAttribute{
+ Required: true,
+ },
+ "end_time": schema.StringAttribute{
+ Optional: true,
+ Validators: []validator.String{
+ stringvalidator.ExactlyOneOf(path.MatchRelative().AtParent().AtName("duration")),
+ },
+ MarkdownDescription: "The end time of the time frame. In a isodate format. For example, `2021-01-01T00:00:00.000`.",
+ },
+ "duration": schema.SingleNestedAttribute{
+ Optional: true,
+ Attributes: map[string]schema.Attribute{
+ "for_over": schema.Int64Attribute{
+ Required: true,
+ MarkdownDescription: "The number of time units to wait before the alert is triggered. For example, if the frequency is set to `hours` and the value is set to `2`, the alert will be triggered after 2 hours.",
+ },
+ "frequency": schema.StringAttribute{
+ Required: true,
+ Validators: []validator.String{
+ stringvalidator.OneOf(validDurationFrequencies...),
+ },
+ MarkdownDescription: "The time unit to wait before the alert is triggered. Can be `minutes`, `hours` or `days`.",
+ },
+ },
+ Validators: []validator.Object{
+ objectvalidator.ExactlyOneOf(path.MatchRelative().AtParent().AtName("end_time")),
+ },
+ MarkdownDescription: "The duration from the start time to wait.",
+ },
+ "time_zone": schema.StringAttribute{
+ Required: true,
+ Validators: []validator.String{
+ stringvalidator.OneOf(validTimeZones...),
+ },
+ },
+ }
+}
+
+func (r *AlertsSchedulerResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) {
+ resource.ImportStatePassthroughID(ctx, path.Root("id"), req, resp)
+}
+
+func (r *AlertsSchedulerResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) {
+ var plan *AlertsSchedulerResourceModel
+ diags := req.Plan.Get(ctx, &plan)
+ resp.Diagnostics.Append(diags...)
+ if resp.Diagnostics.HasError() {
+ return
+ }
+
+ alertScheduler, diags := extractAlertsScheduler(ctx, plan, nil)
+ if diags.HasError() {
+ resp.Diagnostics.Append(diags...)
+ return
+ }
+ createAlertSchedulerRequest := &alertsSchedulers.CreateAlertSchedulerRuleRequest{
+ AlertSchedulerRule: alertScheduler,
+ }
+ alertsSchedulerStr := protojson.Format(createAlertSchedulerRequest)
+ log.Printf("[INFO] Creating new alerts-scheduler: %s", alertsSchedulerStr)
+ createResp, err := r.client.CreateAlertScheduler(ctx, createAlertSchedulerRequest)
+ if err != nil {
+ log.Printf("[ERROR] Received error: %s", err.Error())
+ formatRpcErrors(err, createAlertsSchedulerURL, alertsSchedulerStr)
+ return
+ }
+ alertScheduler = createResp.GetAlertSchedulerRule()
+ log.Printf("[INFO] Submitted new alerts-scheduler: %s", protojson.Format(alertScheduler))
+
+ plan, diags = flattenAlertScheduler(ctx, alertScheduler)
+ if diags.HasError() {
+ resp.Diagnostics.Append(diags...)
+ return
+ }
+ // Set state to fully populated data
+ diags = resp.State.Set(ctx, plan)
+ resp.Diagnostics.Append(diags...)
+}
+
+func flattenAlertScheduler(ctx context.Context, scheduler *alertsSchedulers.AlertSchedulerRule) (*AlertsSchedulerResourceModel, diag.Diagnostics) {
+ metaLabels, diags := flattenAlertsSchedulerMetaLabels(ctx, scheduler.GetMetaLabels())
+ if diags.HasError() {
+ return nil, diags
+ }
+
+ filter, diags := flattenFilter(ctx, scheduler.GetFilter())
+ if diags.HasError() {
+ return nil, diags
+ }
+
+ schedule, diags := flattenSchedule(ctx, scheduler.GetSchedule())
+ if diags.HasError() {
+ return nil, diags
+ }
+
+ return &AlertsSchedulerResourceModel{
+ ID: types.StringValue(scheduler.GetId()),
+ Name: types.StringValue(scheduler.GetName()),
+ Description: types.StringValue(scheduler.GetDescription()),
+ MetaLabels: metaLabels,
+ Filter: filter,
+ Schedule: schedule,
+ Enabled: types.BoolValue(scheduler.GetEnabled()),
+ }, nil
+}
+
+func flattenAlertsSchedulerMetaLabels(ctx context.Context, labels []*alertsSchedulers.MetaLabel) (types.Set, diag.Diagnostics) {
+ if len(labels) == 0 {
+ return types.SetNull(types.ObjectType{AttrTypes: labelModelAttr()}), nil
+ }
+
+ var diagnostics diag.Diagnostics
+ labelsElements := make([]attr.Value, 0, len(labels))
+ for _, label := range labels {
+ flattenedSection := MetaLabelModel{
+ Key: types.StringValue(label.GetKey()),
+ Value: stringPointerToTypeString(label.Value),
+ }
+ labelElement, diags := types.ObjectValueFrom(ctx, labelModelAttr(), flattenedSection)
+ if diags.HasError() {
+ diagnostics = append(diagnostics, diags...)
+ continue
+ }
+ labelsElements = append(labelsElements, labelElement)
+ }
+
+ return types.SetValueFrom(ctx, types.ObjectType{AttrTypes: labelModelAttr()}, labelsElements)
+}
+
+func labelModelAttr() map[string]attr.Type {
+ return map[string]attr.Type{
+ "key": types.StringType,
+ "value": types.StringType,
+ }
+}
+
+func flattenFilter(ctx context.Context, filter *alertsSchedulers.Filter) (types.Object, diag.Diagnostics) {
+ if filter == nil {
+ return types.ObjectNull(filterModelAttr()), nil
+ }
+
+ var filterModel FilterModel
+ switch filterType := filter.WhichAlerts.(type) {
+ case *alertsSchedulers.Filter_AlertMetaLabels:
+ metaLabels, diags := flattenAlertsSchedulerMetaLabels(ctx, filterType.AlertMetaLabels.GetValue())
+ if diags.HasError() {
+ return types.ObjectNull(filterModelAttr()), diags
+ }
+ filterModel.MetaLabels = metaLabels
+ filterModel.AlertsUniqueIDs = types.SetNull(types.StringType)
+ case *alertsSchedulers.Filter_AlertUniqueIds:
+ filterModel.AlertsUniqueIDs = stringSliceToTypeStringSet(filterType.AlertUniqueIds.GetValue())
+ filterModel.MetaLabels = types.SetNull(types.ObjectType{AttrTypes: labelModelAttr()})
+ default:
+ return types.ObjectNull(filterModelAttr()), diag.Diagnostics{diag.NewErrorDiagnostic("error flatten filter", fmt.Sprintf("unknown filter type: %T", filterType))}
+ }
+
+ filterModel.WhatExpression = types.StringValue(filter.GetWhatExpression())
+
+ return types.ObjectValueFrom(ctx, filterModelAttr(), filterModel)
+}
+
+func filterModelAttr() map[string]attr.Type {
+ return map[string]attr.Type{
+ "what_expression": types.StringType,
+ "meta_labels": types.SetType{
+ ElemType: types.ObjectType{AttrTypes: labelModelAttr()},
+ },
+ "alerts_unique_ids": types.SetType{
+ ElemType: types.StringType,
+ },
+ }
+}
+
+func flattenSchedule(ctx context.Context, schedule *alertsSchedulers.Schedule) (types.Object, diag.Diagnostics) {
+ if schedule == nil {
+ return types.ObjectNull(scheduleModelAttr()), nil
+ }
+
+ var scheduleModel ScheduleModel
+ scheduleModel.Operation = types.StringValue(protoToSchemaScheduleOperation[schedule.GetScheduleOperation()])
+ switch scheduleType := schedule.Scheduler.(type) {
+ case *alertsSchedulers.Schedule_OneTime:
+ oneTime, diags := flattenOneTime(ctx, scheduleType.OneTime)
+ if diags.HasError() {
+ return types.ObjectNull(scheduleModelAttr()), diags
+ }
+ scheduleModel.OneTime = oneTime
+ scheduleModel.Recurring = types.ObjectNull(recurringModelAttr())
+ case *alertsSchedulers.Schedule_Recurring:
+ recurring, diags := flattenRecurring(ctx, scheduleType.Recurring)
+ if diags.HasError() {
+ return types.ObjectNull(scheduleModelAttr()), diags
+ }
+ scheduleModel.Recurring = recurring
+ scheduleModel.OneTime = types.ObjectNull(oneTimeModelAttr())
+ default:
+ return types.ObjectNull(scheduleModelAttr()), diag.Diagnostics{diag.NewErrorDiagnostic("error flatten schedule", fmt.Sprintf("unknown filter type: %T", scheduleType))}
+ }
+
+ return types.ObjectValueFrom(ctx, scheduleModelAttr(), scheduleModel)
+}
+
+func flattenRecurring(ctx context.Context, recurring *alertsSchedulers.Recurring) (types.Object, diag.Diagnostics) {
+ if recurring == nil {
+ return types.ObjectNull(recurringModelAttr()), nil
+ }
+
+ var recurringModel RecurringModel
+ dynamic, diags := flattenDynamic(ctx, recurring.GetDynamic())
+ if diags.HasError() {
+ return types.ObjectNull(recurringModelAttr()), diags
+ }
+ recurringModel.Dynamic = dynamic
+
+ return types.ObjectValueFrom(ctx, recurringModelAttr(), recurringModel)
+}
+
+func flattenDynamic(ctx context.Context, dynamic *alertsSchedulers.Recurring_Dynamic) (types.Object, diag.Diagnostics) {
+ if dynamic == nil {
+ return types.ObjectNull(dynamicModelAttr()), nil
+ }
+
+ frequency, diags := flattenFrequency(ctx, dynamic)
+ if diags.HasError() {
+ return types.ObjectNull(dynamicModelAttr()), diags
+ }
+
+ timeFrame, diags := flattenAlertsSchedulerTimeFrame(ctx, dynamic.GetTimeframe())
+ if diags.HasError() {
+ return types.ObjectNull(dynamicModelAttr()), diags
+ }
+
+ dynamicModel := DynamicModel{
+ RepeatEvery: types.Int64Value(int64(dynamic.GetRepeatEvery())),
+ Frequency: frequency,
+ TimeFrame: timeFrame,
+ TerminationDay: types.StringValue(dynamic.GetTerminationDate()),
+ }
+
+ return types.ObjectValueFrom(ctx, dynamicModelAttr(), dynamicModel)
+}
+
+func flattenFrequency(ctx context.Context, dynamic *alertsSchedulers.Recurring_Dynamic) (types.Object, diag.Diagnostics) {
+ if dynamic == nil {
+ return types.ObjectNull(frequencyModelAttr()), nil
+ }
+
+ var frequencyModel FrequencyModel
+ switch frequencyType := dynamic.GetFrequency().(type) {
+ case *alertsSchedulers.Recurring_Dynamic_Daily:
+ frequencyModel.Daily = types.ObjectNull(map[string]attr.Type{})
+ frequencyModel.Weekly = types.ObjectNull(weeklyModelAttr())
+ frequencyModel.Monthly = types.ObjectNull(monthlyModelAttr())
+ case *alertsSchedulers.Recurring_Dynamic_Weekly:
+ weekly, diags := flattenWeekly(ctx, frequencyType.Weekly)
+ if diags.HasError() {
+ return types.ObjectNull(frequencyModelAttr()), diags
+ }
+ frequencyModel.Weekly = weekly
+ frequencyModel.Daily = types.ObjectNull(map[string]attr.Type{})
+ frequencyModel.Monthly = types.ObjectNull(monthlyModelAttr())
+ case *alertsSchedulers.Recurring_Dynamic_Monthly:
+ monthly, diags := flattenMonthly(ctx, frequencyType.Monthly)
+ if diags.HasError() {
+ return types.ObjectNull(frequencyModelAttr()), diags
+ }
+ frequencyModel.Monthly = monthly
+ frequencyModel.Daily = types.ObjectNull(map[string]attr.Type{})
+ frequencyModel.Weekly = types.ObjectNull(weeklyModelAttr())
+ default:
+ return types.ObjectNull(frequencyModelAttr()), diag.Diagnostics{diag.NewErrorDiagnostic("error flatten frequency", fmt.Sprintf("unknown filter type: %T", frequencyType))}
+ }
+
+ return types.ObjectValueFrom(ctx, frequencyModelAttr(), frequencyModel)
+}
+
+func flattenWeekly(ctx context.Context, weekly *alertsSchedulers.Weekly) (types.Object, diag.Diagnostics) {
+ if weekly == nil {
+ return types.ObjectNull(weeklyModelAttr()), nil
+ }
+
+ daysOfWeek := make([]string, 0, len(weekly.GetDaysOfWeek()))
+ for _, day := range weekly.GetDaysOfWeek() {
+ daysOfWeek = append(daysOfWeek, protoToDaysValue[day])
+ }
+ weeklyModel := WeeklyModel{
+ Days: stringSliceToTypeStringSet(daysOfWeek),
+ }
+
+ return types.ObjectValueFrom(ctx, weeklyModelAttr(), weeklyModel)
+
+}
+
+func flattenMonthly(ctx context.Context, monthly *alertsSchedulers.Monthly) (types.Object, diag.Diagnostics) {
+ if monthly == nil {
+ return types.ObjectNull(monthlyModelAttr()), nil
+ }
+
+ monthlyModel := MonthlyModel{
+ Days: int32SliceToTypeInt64Set(monthly.GetDaysOfMonth()),
+ }
+
+ return types.ObjectValueFrom(ctx, monthlyModelAttr(), monthlyModel)
+}
+
+func flattenOneTime(ctx context.Context, time *alertsSchedulers.OneTime) (types.Object, diag.Diagnostics) {
+ if time == nil {
+ return types.ObjectNull(oneTimeModelAttr()), nil
+ }
+
+ timeFrame, diags := flattenAlertsSchedulerTimeFrame(ctx, time.GetTimeframe())
+ if diags.HasError() {
+ return types.ObjectNull(oneTimeModelAttr()), diags
+ }
+
+ oneTimeModel := OneTimeModel{
+ TimeFrame: timeFrame,
+ }
+
+ return types.ObjectValueFrom(ctx, oneTimeModelAttr(), oneTimeModel)
+}
+
+func flattenAlertsSchedulerTimeFrame(ctx context.Context, timeFrame *alertsSchedulers.Timeframe) (types.Object, diag.Diagnostics) {
+ if timeFrame == nil {
+ return types.ObjectNull(timeFrameModelAttr()), nil
+ }
+
+ var timeFrameModel TimeFrameModel
+ timeFrameModel.StartTime = types.StringValue(timeFrame.GetStartTime())
+ timeFrameModel.TimeZone = types.StringValue(timeFrame.GetTimezone())
+ switch untilType := timeFrame.GetUntil().(type) {
+ case *alertsSchedulers.Timeframe_EndTime:
+ timeFrameModel.EndTime = types.StringValue(untilType.EndTime)
+ timeFrameModel.Duration = types.ObjectNull(durationModelAttr())
+ case *alertsSchedulers.Timeframe_Duration:
+ var diags diag.Diagnostics
+ timeFrameModel.Duration, diags = flattenAlertsSchedulerDuration(ctx, untilType.Duration)
+ if diags.HasError() {
+ return types.ObjectNull(timeFrameModelAttr()), diags
+ }
+ timeFrameModel.EndTime = types.StringNull()
+ default:
+ return types.ObjectNull(timeFrameModelAttr()), diag.Diagnostics{diag.NewErrorDiagnostic("error flatten time frame", fmt.Sprintf("unknown filter type: %T", untilType))}
+ }
+
+ return types.ObjectValueFrom(ctx, timeFrameModelAttr(), timeFrameModel)
+}
+
+func flattenAlertsSchedulerDuration(ctx context.Context, duration *alertsSchedulers.Duration) (types.Object, diag.Diagnostics) {
+ if duration == nil {
+ return types.ObjectNull(durationModelAttr()), nil
+ }
+
+ durationModel := DurationModel{
+ ForOver: types.Int64Value(int64(duration.GetForOver())),
+ Frequency: types.StringValue(protoToSchemaDurationFrequency[duration.GetFrequency()]),
+ }
+
+ return types.ObjectValueFrom(ctx, durationModelAttr(), durationModel)
+}
+
+func scheduleModelAttr() map[string]attr.Type {
+ return map[string]attr.Type{
+ "operation": types.StringType,
+ "one_time": types.ObjectType{
+ AttrTypes: oneTimeModelAttr(),
+ },
+ "recurring": types.ObjectType{
+ AttrTypes: recurringModelAttr(),
+ },
+ }
+}
+
+func oneTimeModelAttr() map[string]attr.Type {
+ return map[string]attr.Type{
+ "time_frame": types.ObjectType{
+ AttrTypes: timeFrameModelAttr(),
+ },
+ }
+}
+
+func durationModelAttr() map[string]attr.Type {
+ return map[string]attr.Type{
+ "for_over": types.Int64Type,
+ "frequency": types.StringType,
+ }
+}
+
+func recurringModelAttr() map[string]attr.Type {
+ return map[string]attr.Type{
+ "dynamic": types.ObjectType{
+ AttrTypes: dynamicModelAttr(),
+ },
+ }
+}
+
+func dynamicModelAttr() map[string]attr.Type {
+ return map[string]attr.Type{
+ "repeat_every": types.Int64Type,
+ "frequency": types.ObjectType{
+ AttrTypes: frequencyModelAttr(),
+ },
+ "time_frame": types.ObjectType{
+ AttrTypes: timeFrameModelAttr(),
+ },
+ "termination_date": types.StringType,
+ }
+}
+
+func frequencyModelAttr() map[string]attr.Type {
+ return map[string]attr.Type{
+ "daily": types.ObjectType{
+ AttrTypes: map[string]attr.Type{},
+ },
+ "weekly": types.ObjectType{
+ AttrTypes: weeklyModelAttr(),
+ },
+ "monthly": types.ObjectType{
+ AttrTypes: monthlyModelAttr(),
+ },
+ }
+}
+
+func weeklyModelAttr() map[string]attr.Type {
+ return map[string]attr.Type{
+ "days": types.SetType{
+ ElemType: types.StringType,
+ },
+ }
+}
+
+func monthlyModelAttr() map[string]attr.Type {
+ return map[string]attr.Type{
+ "days": types.SetType{
+ ElemType: types.Int64Type,
+ },
+ }
+}
+
+func timeFrameModelAttr() map[string]attr.Type {
+ return map[string]attr.Type{
+ "start_time": types.StringType,
+ "end_time": types.StringType,
+ "duration": types.ObjectType{
+ AttrTypes: durationModelAttr(),
+ },
+ "time_zone": types.StringType,
+ }
+}
+
+func extractAlertsScheduler(ctx context.Context, plan *AlertsSchedulerResourceModel, id *string) (*alertsSchedulers.AlertSchedulerRule, diag.Diagnostics) {
+ metaLabels, diags := extractAlertsSchedulerMetaLabels(ctx, plan.MetaLabels)
+ if diags.HasError() {
+ return nil, diags
+ }
+
+ filter, diags := extractFilter(ctx, plan.Filter)
+ if diags.HasError() {
+ return nil, diags
+ }
+
+ schedule, diags := extractSchedule(ctx, plan.Schedule)
+ if diags.HasError() {
+ return nil, diags
+ }
+
+ return &alertsSchedulers.AlertSchedulerRule{
+ Id: id,
+ Name: plan.Name.ValueString(),
+ Description: typeStringToStringPointer(plan.Description),
+ MetaLabels: metaLabels,
+ Filter: filter,
+ Schedule: schedule,
+ Enabled: plan.Enabled.ValueBool(),
+ }, nil
+}
+
+func extractAlertsSchedulerMetaLabels(ctx context.Context, labels types.Set) ([]*alertsSchedulers.MetaLabel, diag.Diagnostics) {
+ var diags diag.Diagnostics
+ var labelsObjects []types.Object
+ var expandedLabels []*alertsSchedulers.MetaLabel
+ labels.ElementsAs(ctx, &labelsObjects, true)
+
+ for _, lo := range labelsObjects {
+ var label MetaLabelModel
+ if dg := lo.As(ctx, &label, basetypes.ObjectAsOptions{}); dg.HasError() {
+ diags.Append(dg...)
+ continue
+ }
+ expandedLabel := &alertsSchedulers.MetaLabel{
+ Key: label.Key.ValueString(),
+ Value: typeStringToStringPointer(label.Value),
+ }
+ expandedLabels = append(expandedLabels, expandedLabel)
+ }
+
+ return expandedLabels, diags
+}
+
+func extractFilter(ctx context.Context, filter types.Object) (*alertsSchedulers.Filter, diag.Diagnostics) {
+ if filter.IsNull() || filter.IsUnknown() {
+ return nil, nil
+ }
+
+ var filterModel FilterModel
+ if diags := filter.As(ctx, &filterModel, basetypes.ObjectAsOptions{}); diags.HasError() {
+ return nil, diags
+ }
+
+ whatExpression := filterModel.WhatExpression.ValueString()
+
+ if !(filterModel.AlertsUniqueIDs.IsNull() || filterModel.AlertsUniqueIDs.IsUnknown()) {
+ ids, diags := typeStringSliceToStringSlice(ctx, filterModel.AlertsUniqueIDs.Elements())
+ if diags.HasError() {
+ return nil, diags
+ }
+ return &alertsSchedulers.Filter{
+ WhatExpression: whatExpression,
+ WhichAlerts: &alertsSchedulers.Filter_AlertUniqueIds{
+ AlertUniqueIds: &alertsSchedulers.AlertUniqueIds{
+ Value: ids,
+ },
+ },
+ }, nil
+ } else if !(filterModel.MetaLabels.IsNull() || filterModel.MetaLabels.IsUnknown()) {
+ metaLabels, diags := extractAlertsSchedulerMetaLabels(ctx, filterModel.MetaLabels)
+ if diags.HasError() {
+ return nil, diags
+ }
+ return &alertsSchedulers.Filter{
+ WhatExpression: whatExpression,
+ WhichAlerts: &alertsSchedulers.Filter_AlertMetaLabels{
+ AlertMetaLabels: &alertsSchedulers.MetaLabels{
+ Value: metaLabels,
+ },
+ },
+ }, nil
+ }
+
+ return nil, nil
+}
+
+func extractSchedule(ctx context.Context, schedule types.Object) (*alertsSchedulers.Schedule, diag.Diagnostics) {
+ if schedule.IsNull() || schedule.IsUnknown() {
+ return nil, nil
+ }
+
+ var scheduleModel ScheduleModel
+ if diags := schedule.As(ctx, &scheduleModel, basetypes.ObjectAsOptions{}); diags.HasError() {
+ return nil, diags
+ }
+
+ scheduler := &alertsSchedulers.Schedule{
+ ScheduleOperation: schemaToProtoScheduleOperation[scheduleModel.Operation.ValueString()],
+ }
+
+ if !(scheduleModel.OneTime.IsNull() || scheduleModel.OneTime.IsUnknown()) {
+ oneTime, diags := extractOneTime(ctx, scheduleModel.OneTime)
+ if diags.HasError() {
+ return nil, diags
+ }
+ scheduler.Scheduler = oneTime
+ return scheduler, nil
+ } else if !(scheduleModel.Recurring.IsNull() || scheduleModel.Recurring.IsUnknown()) {
+ recurring, diags := extractRecurring(ctx, scheduleModel.Recurring)
+ if diags.HasError() {
+ return nil, diags
+ }
+ scheduler.Scheduler = recurring
+ return scheduler, nil
+ }
+
+ return nil, nil
+}
+
+func extractOneTime(ctx context.Context, oneTimeObject types.Object) (*alertsSchedulers.Schedule_OneTime, diag.Diagnostics) {
+ if oneTimeObject.IsNull() || oneTimeObject.IsUnknown() {
+ return nil, nil
+ }
+
+ var oneTimeModel OneTimeModel
+ if diags := oneTimeObject.As(ctx, &oneTimeModel, basetypes.ObjectAsOptions{}); diags.HasError() {
+ return nil, diags
+ }
+
+ timeFrame, diags := extractTimeFrame(ctx, oneTimeModel.TimeFrame)
+ if diags.HasError() {
+ return nil, diags
+ }
+
+ return &alertsSchedulers.Schedule_OneTime{
+ OneTime: &alertsSchedulers.OneTime{
+ Timeframe: timeFrame,
+ },
+ }, nil
+}
+
+func extractTimeFrame(ctx context.Context, timeFrame types.Object) (*alertsSchedulers.Timeframe, diag.Diagnostics) {
+ if timeFrame.IsNull() || timeFrame.IsUnknown() {
+ return nil, nil
+ }
+
+ var timeFrameModel TimeFrameModel
+ if diags := timeFrame.As(ctx, &timeFrameModel, basetypes.ObjectAsOptions{}); diags.HasError() {
+ return nil, diags
+ }
+
+ expandedTimeFrame := &alertsSchedulers.Timeframe{
+ StartTime: timeFrameModel.StartTime.ValueString(),
+ Timezone: timeFrameModel.TimeZone.ValueString(),
+ }
+ expandedTimeFrame, diags := expandTimeFrameUntil(ctx, timeFrameModel, expandedTimeFrame)
+ if diags.HasError() {
+ return nil, diags
+ }
+
+ return expandedTimeFrame, nil
+}
+
+func expandTimeFrameUntil(ctx context.Context, timeFrameModel TimeFrameModel, expandedTimeFrame *alertsSchedulers.Timeframe) (*alertsSchedulers.Timeframe, diag.Diagnostics) {
+ if !(timeFrameModel.Duration.IsNull() || timeFrameModel.Duration.IsUnknown()) {
+ duration, diags := extractDuration(ctx, timeFrameModel.Duration)
+ if diags.HasError() {
+ return nil, diags
+ }
+ expandedTimeFrame.Until = duration
+ } else if !(timeFrameModel.EndTime.IsNull() || timeFrameModel.EndTime.IsUnknown()) {
+ expandedTimeFrame.Until = &alertsSchedulers.Timeframe_EndTime{
+ EndTime: timeFrameModel.EndTime.ValueString(),
+ }
+ }
+ return expandedTimeFrame, nil
+}
+
+func extractDuration(ctx context.Context, duration types.Object) (*alertsSchedulers.Timeframe_Duration, diag.Diagnostics) {
+ if duration.IsNull() || duration.IsUnknown() {
+ return nil, nil
+ }
+ var durationModel DurationModel
+ if diags := duration.As(ctx, &durationModel, basetypes.ObjectAsOptions{}); diags.HasError() {
+ return nil, diags
+ }
+ return &alertsSchedulers.Timeframe_Duration{
+ Duration: &alertsSchedulers.Duration{
+ ForOver: int32(durationModel.ForOver.ValueInt64()),
+ Frequency: schemaToProtoDurationFrequency[durationModel.Frequency.ValueString()],
+ },
+ }, nil
+}
+
+func extractRecurring(ctx context.Context, recurring types.Object) (*alertsSchedulers.Schedule_Recurring, diag.Diagnostics) {
+ if recurring.IsNull() || recurring.IsUnknown() {
+ return nil, nil
+ }
+
+ var recurringModel RecurringModel
+ if diags := recurring.As(ctx, &recurringModel, basetypes.ObjectAsOptions{}); diags.HasError() {
+ return nil, diags
+ }
+
+ if !(recurringModel.Dynamic.IsNull() || recurringModel.Dynamic.IsUnknown()) {
+ dynamic, diags := extractDynamic(ctx, recurringModel.Dynamic)
+ if diags.HasError() {
+ return nil, diags
+ }
+ return &alertsSchedulers.Schedule_Recurring{
+ Recurring: &alertsSchedulers.Recurring{
+ Condition: dynamic,
+ },
+ }, nil
+ }
+
+ return &alertsSchedulers.Schedule_Recurring{
+ Recurring: &alertsSchedulers.Recurring{
+ Condition: &alertsSchedulers.Recurring_Always_{
+ Always: &alertsSchedulers.Recurring_Always{},
+ },
+ },
+ }, nil
+}
+
+func extractDynamic(ctx context.Context, dynamic types.Object) (*alertsSchedulers.Recurring_Dynamic_, diag.Diagnostics) {
+ if dynamic.IsNull() || dynamic.IsUnknown() {
+ return nil, nil
+ }
+
+ var dynamicModel DynamicModel
+ if diags := dynamic.As(ctx, &dynamicModel, basetypes.ObjectAsOptions{}); diags.HasError() {
+ return nil, diags
+ }
+
+ timeFrame, diags := extractTimeFrame(ctx, dynamicModel.TimeFrame)
+ if diags.HasError() {
+ return nil, diags
+ }
+
+ expandedDynamic := &alertsSchedulers.Recurring_Dynamic_{
+ Dynamic: &alertsSchedulers.Recurring_Dynamic{
+ RepeatEvery: int32(dynamicModel.RepeatEvery.ValueInt64()),
+ Timeframe: timeFrame,
+ TerminationDate: typeStringToStringPointer(dynamicModel.TerminationDay),
+ },
+ }
+ expandedDynamic.Dynamic, diags = expandFrequency(ctx, expandedDynamic.Dynamic, dynamicModel.Frequency)
+ if diags.HasError() {
+ return nil, diags
+ }
+
+ return expandedDynamic, nil
+}
+
+func expandFrequency(ctx context.Context, dynamic *alertsSchedulers.Recurring_Dynamic, frequency types.Object) (*alertsSchedulers.Recurring_Dynamic, diag.Diagnostics) {
+ var frequencyModel FrequencyModel
+ if diags := frequency.As(ctx, &frequencyModel, basetypes.ObjectAsOptions{}); diags.HasError() {
+ return nil, diags
+ }
+
+ if daily := frequencyModel.Daily; !(daily.IsNull() || daily.IsUnknown()) {
+ dynamic.Frequency = &alertsSchedulers.Recurring_Dynamic_Daily{
+ Daily: &alertsSchedulers.Daily{},
+ }
+ } else if weekly := frequencyModel.Weekly; !(weekly.IsNull() || weekly.IsUnknown()) {
+ var weeklyModel WeeklyModel
+ if diags := weekly.As(ctx, &weeklyModel, basetypes.ObjectAsOptions{}); diags.HasError() {
+ return nil, diags
+ }
+
+ days, diags := typeStringSliceToStringSlice(ctx, weeklyModel.Days.Elements())
+ if diags.HasError() {
+ return nil, diags
+ }
+ daysValues := make([]int32, len(days))
+ for i, day := range days {
+ daysValues[i] = daysToProtoValue[day]
+ }
+
+ dynamic.Frequency = &alertsSchedulers.Recurring_Dynamic_Weekly{
+ Weekly: &alertsSchedulers.Weekly{
+ DaysOfWeek: daysValues,
+ },
+ }
+ } else if monthly := frequencyModel.Monthly; !(monthly.IsNull() || monthly.IsUnknown()) {
+ var monthlyModel MonthlyModel
+ if diags := monthly.As(ctx, &monthlyModel, basetypes.ObjectAsOptions{}); diags.HasError() {
+ return nil, diags
+ }
+
+ days, diags := typeInt64SliceToInt32Slice(ctx, monthlyModel.Days.Elements())
+ if diags.HasError() {
+ return nil, diags
+ }
+
+ dynamic.Frequency = &alertsSchedulers.Recurring_Dynamic_Monthly{
+ Monthly: &alertsSchedulers.Monthly{
+ DaysOfMonth: days,
+ },
+ }
+ }
+
+ return dynamic, nil
+}
+
+func (r *AlertsSchedulerResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) {
+ var state *AlertsSchedulerResourceModel
+ diags := req.State.Get(ctx, &state)
+ resp.Diagnostics.Append(diags...)
+ if resp.Diagnostics.HasError() {
+ return
+ }
+
+ //Get refreshed alerts-scheduler value from Coralogix
+ id := state.ID.ValueString()
+ log.Printf("[INFO] Reading alerts-scheduler: %s", id)
+ getAlertsSchedulerReq := &alertsSchedulers.GetAlertSchedulerRuleRequest{AlertSchedulerRuleId: id}
+ getAlertsSchedulerResp, err := r.client.GetAlertScheduler(ctx, getAlertsSchedulerReq)
+ if err != nil {
+ log.Printf("[ERROR] Received error: %s", err.Error())
+ if status.Code(err) == codes.NotFound {
+ state.ID = types.StringNull()
+ resp.Diagnostics.AddWarning(
+ fmt.Sprintf("alerts-scheduler %q is in state, but no longer exists in Coralogix backend", id),
+ fmt.Sprintf("%s will be recreated when you apply", id),
+ )
+ } else {
+ resp.Diagnostics.AddError(
+ "Error reading alerts-scheduler",
+ formatRpcErrors(err, getAlertsSchedulerURL, protojson.Format(getAlertsSchedulerReq)),
+ )
+ }
+ return
+ }
+ alertsScheduler := getAlertsSchedulerResp.GetAlertSchedulerRule()
+ log.Printf("[INFO] Received alerts-scheduler: %s", protojson.Format(alertsScheduler))
+
+ state, diags = flattenAlertScheduler(ctx, alertsScheduler)
+ if diags.HasError() {
+ resp.Diagnostics.Append(diags...)
+ return
+ }
+ // Set state to fully populated data
+ diags = resp.State.Set(ctx, &state)
+ resp.Diagnostics.Append(diags...)
+}
+
+func (r *AlertsSchedulerResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) {
+ // Retrieve values from plan
+ var plan *AlertsSchedulerResourceModel
+ diags := req.Plan.Get(ctx, &plan)
+ resp.Diagnostics.Append(diags...)
+ if resp.Diagnostics.HasError() {
+ return
+ }
+
+ var state *AlertsSchedulerResourceModel
+ req.State.Get(ctx, &state)
+ id := new(string)
+ *id = state.ID.ValueString()
+ alertsScheduler, diags := extractAlertsScheduler(ctx, plan, id)
+ if diags.HasError() {
+ resp.Diagnostics.Append(diags...)
+ return
+ }
+ updateAlertsSchedulerReq := &alertsSchedulers.UpdateAlertSchedulerRuleRequest{
+ AlertSchedulerRule: alertsScheduler,
+ }
+ log.Printf("[INFO] Updating alerts-scheduler: %s", protojson.Format(updateAlertsSchedulerReq))
+ updateAlertsSchedulerResp, err := r.client.UpdateAlertScheduler(ctx, updateAlertsSchedulerReq)
+ if err != nil {
+ log.Printf("[ERROR] Received error: %s", err.Error())
+ resp.Diagnostics.AddError(
+ "Error updating alerts-scheduler",
+ formatRpcErrors(err, updateAlertsSchedulerURL, protojson.Format(updateAlertsSchedulerReq)),
+ )
+ return
+ }
+ log.Printf("[INFO] Submitted updated alerts-scheduler: %s", protojson.Format(updateAlertsSchedulerResp))
+
+ // Get refreshed alerts-scheduler value from Coralogix
+ getAlertsSchedulerReq := &alertsSchedulers.GetAlertSchedulerRuleRequest{AlertSchedulerRuleId: updateAlertsSchedulerResp.GetAlertSchedulerRule().GetId()}
+ getAlertsSchedulerResp, err := r.client.GetAlertScheduler(ctx, getAlertsSchedulerReq)
+ if err != nil {
+ log.Printf("[ERROR] Received error: %s", err.Error())
+ if status.Code(err) == codes.NotFound {
+ plan.ID = types.StringNull()
+ resp.Diagnostics.AddWarning(
+ fmt.Sprintf("alerts-scheduler %s is in state, but no longer exists in Coralogix backend", *id),
+ fmt.Sprintf("%s will be recreated when you apply", *id),
+ )
+ } else {
+ resp.Diagnostics.AddError(
+ "Error reading alerts-scheduler",
+ formatRpcErrors(err, getAlertsSchedulerURL, protojson.Format(getAlertsSchedulerReq)),
+ )
+ }
+ return
+ }
+ log.Printf("[INFO] Received alerts-scheduler: %s", protojson.Format(getAlertsSchedulerResp))
+
+ plan, diags = flattenAlertScheduler(ctx, getAlertsSchedulerResp.GetAlertSchedulerRule())
+ if diags.HasError() {
+ resp.Diagnostics.Append(diags...)
+ return
+ }
+
+ // Set state to fully populated data
+ diags = resp.State.Set(ctx, plan)
+ resp.Diagnostics.Append(diags...)
+}
+
+func (r *AlertsSchedulerResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) {
+ var state *AlertsSchedulerResourceModel
+ diags := req.State.Get(ctx, &state)
+ resp.Diagnostics.Append(diags...)
+ if resp.Diagnostics.HasError() {
+ return
+ }
+
+ id := state.ID.ValueString()
+ log.Printf("[INFO] Deleting alerts-scheduler %s", id)
+ deleteReq := &alertsSchedulers.DeleteAlertSchedulerRuleRequest{AlertSchedulerRuleId: id}
+ if _, err := r.client.DeleteAlertScheduler(ctx, deleteReq); err != nil {
+ resp.Diagnostics.AddError(
+ fmt.Sprintf("Error Deleting alerts-scheduler %s", id),
+ formatRpcErrors(err, deleteAlertsSchedulerURL, protojson.Format(deleteReq)),
+ )
+ return
+ }
+ log.Printf("[INFO] alerts-scheduler %s deleted", id)
+}
diff --git a/coralogix/resource_coralogix_alerts_scheduler_test.go b/coralogix/resource_coralogix_alerts_scheduler_test.go
new file mode 100644
index 00000000..52b2fdaf
--- /dev/null
+++ b/coralogix/resource_coralogix_alerts_scheduler_test.go
@@ -0,0 +1,117 @@
+package coralogix
+
+import (
+ "context"
+ "fmt"
+ "testing"
+
+ terraform2 "github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
+ "github.com/hashicorp/terraform-plugin-testing/helper/resource"
+ "github.com/hashicorp/terraform-plugin-testing/terraform"
+ "terraform-provider-coralogix/coralogix/clientset"
+ alertsSchedulers "terraform-provider-coralogix/coralogix/clientset/grpc/alerts-scheduler"
+)
+
+var (
+ alertsSchedulerResourceName = "coralogix_alerts_scheduler.test"
+)
+
+func TestAccCoralogixResourceResourceAlertsScheduler(t *testing.T) {
+ resource.Test(t, resource.TestCase{
+ PreCheck: func() { testAccPreCheck(t) },
+ CheckDestroy: testAccCheckAlertsSchedulerDestroy,
+ ProtoV6ProviderFactories: testAccProtoV6ProviderFactories,
+ Steps: []resource.TestStep{
+ {
+ Config: testAccCoralogixResourceAlertsScheduler(),
+ Check: resource.ComposeAggregateTestCheckFunc(
+ resource.TestCheckResourceAttr(alertsSchedulerResourceName, "name", "example"),
+ resource.TestCheckResourceAttr(alertsSchedulerResourceName, "filter.what_expression", "source logs | filter $d.cpodId:string == '122'"),
+ resource.TestCheckTypeSetElemNestedAttrs(alertsSchedulerResourceName, "filter.meta_labels.*", map[string]string{
+ "key": "key",
+ "value": "value",
+ }),
+ resource.TestCheckResourceAttr(alertsSchedulerResourceName, "schedule.operation", "active"),
+ resource.TestCheckResourceAttr(alertsSchedulerResourceName, "schedule.recurring.dynamic.repeat_every", "2"),
+ resource.TestCheckTypeSetElemAttr(alertsSchedulerResourceName, "schedule.recurring.dynamic.frequency.weekly.days.*", "Sunday"),
+ resource.TestCheckResourceAttr(alertsSchedulerResourceName, "schedule.recurring.dynamic.time_frame.start_time", "2021-01-01T00:00:00.000"),
+ resource.TestCheckResourceAttr(alertsSchedulerResourceName, "schedule.recurring.dynamic.time_frame.duration.for_over", "2"),
+ resource.TestCheckResourceAttr(alertsSchedulerResourceName, "schedule.recurring.dynamic.time_frame.duration.frequency", "hours"),
+ resource.TestCheckResourceAttr(alertsSchedulerResourceName, "schedule.recurring.dynamic.time_frame.time_zone", "UTC+2"),
+ resource.TestCheckResourceAttr(alertsSchedulerResourceName, "schedule.recurring.dynamic.termination_date", "2025-01-01T00:00:00.000"),
+ ),
+ },
+ {
+ ResourceName: alertsSchedulerResourceName,
+ ImportState: true,
+ ImportStateVerify: true,
+ },
+ },
+ })
+}
+
+func testAccCheckAlertsSchedulerDestroy(s *terraform.State) error {
+ testAccProvider = OldProvider()
+ rc := terraform2.ResourceConfig{}
+ testAccProvider.Configure(context.Background(), &rc)
+ client := testAccProvider.Meta().(*clientset.ClientSet).AlertSchedulers()
+ ctx := context.TODO()
+
+ for _, rs := range s.RootModule().Resources {
+ if rs.Type != "coralogix_alerts_scheduler" {
+ continue
+ }
+
+ req := &alertsSchedulers.GetAlertSchedulerRuleRequest{
+ AlertSchedulerRuleId: rs.Primary.ID,
+ }
+
+ resp, err := client.GetAlertScheduler(ctx, req)
+ if err == nil {
+ if resp.GetAlertSchedulerRule().GetId() == rs.Primary.ID {
+ return fmt.Errorf("alerts-scheduler still exists: %s", rs.Primary.ID)
+ }
+ }
+ }
+
+ return nil
+}
+
+func testAccCoralogixResourceAlertsScheduler() string {
+ return `resource "coralogix_alerts_scheduler" "test" {
+ name = "example"
+ description = "example"
+ filter = {
+ what_expression = "source logs | filter $d.cpodId:string == '122'"
+ meta_labels = [
+ {
+ key = "key"
+ value = "value"
+ }
+ ]
+ }
+ schedule = {
+ operation = "active"
+ recurring = {
+ dynamic = {
+ repeat_every = 2
+ frequency = {
+ weekly = {
+ days = ["Sunday"]
+ }
+ }
+ time_frame = {
+ start_time = "2021-01-01T00:00:00.000"
+ duration = {
+ for_over = 2
+ frequency = "hours"
+ }
+ time_zone = "UTC+2"
+ }
+ termination_date = "2025-01-01T00:00:00.000"
+ }
+ }
+ }
+}
+`
+}
diff --git a/coralogix/resource_coralogix_archive_metrics.go b/coralogix/resource_coralogix_archive_metrics.go
index 15916783..283b12ca 100644
--- a/coralogix/resource_coralogix_archive_metrics.go
+++ b/coralogix/resource_coralogix_archive_metrics.go
@@ -385,6 +385,10 @@ func (r *ArchiveMetricsResource) Read(ctx context.Context, req resource.ReadRequ
log.Printf("[INFO] Received archive-metrics: %s", protojson.Format(getResp))
state, diags = flattenArchiveMetrics(ctx, getResp.GetTenantConfig())
+ if diags.HasError() {
+ resp.Diagnostics.Append(diags...)
+ return
+ }
//
diags = resp.State.Set(ctx, &state)
resp.Diagnostics.Append(diags...)
diff --git a/coralogix/resource_coralogix_dashboard.go b/coralogix/resource_coralogix_dashboard.go
index 94ee978c..288d7b84 100644
--- a/coralogix/resource_coralogix_dashboard.go
+++ b/coralogix/resource_coralogix_dashboard.go
@@ -6326,11 +6326,10 @@ func flattenLineChartQueryResolution(ctx context.Context, resolution *dashboards
}
interval := types.StringNull()
- bucketsPresented := types.Int64Null()
if resolution.GetInterval() != nil {
interval = types.StringValue(resolution.GetInterval().String())
}
- bucketsPresented = wrapperspbInt32ToTypeInt64(resolution.GetBucketsPresented())
+ bucketsPresented := wrapperspbInt32ToTypeInt64(resolution.GetBucketsPresented())
resolutionModel := LineChartResolutionModel{
Interval: interval,
diff --git a/coralogix/utils.go b/coralogix/utils.go
index 657e0724..0741de7c 100644
--- a/coralogix/utils.go
+++ b/coralogix/utils.go
@@ -264,6 +264,17 @@ func stringSliceToTypeStringSet(s []string) types.Set {
return types.SetValueMust(types.StringType, elements)
}
+func int32SliceToTypeInt64Set(arr []int32) types.Set {
+ if len(arr) == 0 {
+ return types.SetNull(types.Int64Type)
+ }
+ elements := make([]attr.Value, 0, len(arr))
+ for _, n := range arr {
+ elements = append(elements, types.Int64Value(int64(n)))
+ }
+ return types.SetValueMust(types.StringType, elements)
+}
+
func wrappedStringSliceToTypeStringList(s []*wrapperspb.StringValue) types.List {
if len(s) == 0 {
return types.ListNull(types.StringType)
@@ -338,6 +349,28 @@ func typeStringSliceToStringSlice(ctx context.Context, s []attr.Value) ([]string
return result, nil
}
+func typeInt64SliceToInt32Slice(ctx context.Context, s []attr.Value) ([]int32, diag2.Diagnostics) {
+ result := make([]int32, 0, len(s))
+ var diags diag2.Diagnostics
+ for _, v := range s {
+ val, err := v.ToTerraformValue(ctx)
+ if err != nil {
+ diags.AddError("Failed to convert value to Terraform", err.Error())
+ continue
+ }
+ var n int64
+ if err = val.As(&n); err != nil {
+ diags.AddError("Failed to convert value to Terraform", err.Error())
+ continue
+ }
+ result = append(result, int32(n))
+ }
+ if diags.HasError() {
+ return nil, diags
+ }
+ return result, nil
+}
+
func timeInDaySchema(description string) *schema.Schema {
timeRegex := regexp.MustCompile(`^(0\d|1\d|2[0-3]):[0-5]\d$`)
return &schema.Schema{
@@ -580,6 +613,22 @@ func typeStringToWrapperspbString(str types.String) *wrapperspb.StringValue {
return result
}
+func typeStringToStringPointer(str types.String) *string {
+ if str.IsNull() || str.IsUnknown() {
+ return nil
+ }
+ result := new(string)
+ *result = str.ValueString()
+ return result
+}
+
+func stringPointerToTypeString(str *string) types.String {
+ if str == nil {
+ return types.StringNull()
+ }
+ return types.StringValue(*str)
+}
+
func typeFloat64ToWrapperspbDouble(num types.Float64) *wrapperspb.DoubleValue {
if num.IsNull() {
return nil
diff --git a/docs/data-sources/alerts_scheduler.md b/docs/data-sources/alerts_scheduler.md
new file mode 100644
index 00000000..2b333030
--- /dev/null
+++ b/docs/data-sources/alerts_scheduler.md
@@ -0,0 +1,165 @@
+---
+# generated by https://github.com/hashicorp/terraform-plugin-docs
+page_title: "coralogix_alerts_scheduler Data Source - terraform-provider-coralogix"
+subcategory: ""
+description: |-
+ Coralogix alerts-scheduler.
+---
+
+# coralogix_alerts_scheduler (Data Source)
+
+Coralogix alerts-scheduler.
+
+## Example Usage
+
+```hcl
+data "coralogix_alerts_scheduler" "example" {
+ id = "id"
+}
+```
+
+
+## Schema
+
+### Required
+
+- `id` (String) Alert Scheduler ID.
+
+### Read-Only
+
+- `description` (String) Alert Scheduler description.
+- `enabled` (Boolean) Alert Scheduler enabled. If set to `false`, the alert scheduler will be disabled. True by default.
+- `filter` (Attributes) Alert Scheduler filter. Only one of `meta_labels` or `alerts_unique_ids` can be set. If none of them set, all alerts will be affected. (see [below for nested schema](#nestedatt--filter))
+- `meta_labels` (Attributes Set) Alert Scheduler meta labels. (see [below for nested schema](#nestedatt--meta_labels))
+- `name` (String) Alert Scheduler name.
+- `schedule` (Attributes) Exactly one of `one_time` or `recurring` must be set. (see [below for nested schema](#nestedatt--schedule))
+
+
+### Nested Schema for `filter`
+
+Read-Only:
+
+- `alerts_unique_ids` (Set of String)
+- `meta_labels` (Attributes Set) (see [below for nested schema](#nestedatt--filter--meta_labels))
+- `what_expression` (String) DataPrime query expression. - [DataPrime query language](https://coralogix.com/docs/dataprime-query-language/).
+
+
+### Nested Schema for `filter.meta_labels`
+
+Read-Only:
+
+- `key` (String)
+- `value` (String)
+
+
+
+
+### Nested Schema for `meta_labels`
+
+Read-Only:
+
+- `key` (String)
+- `value` (String)
+
+
+
+### Nested Schema for `schedule`
+
+Read-Only:
+
+- `one_time` (Attributes) (see [below for nested schema](#nestedatt--schedule--one_time))
+- `operation` (String) The operation to perform. Can be `mute` or `active`.
+- `recurring` (Attributes) (see [below for nested schema](#nestedatt--schedule--recurring))
+
+
+### Nested Schema for `schedule.one_time`
+
+Read-Only:
+
+- `time_frame` (Attributes) (see [below for nested schema](#nestedatt--schedule--one_time--time_frame))
+
+
+### Nested Schema for `schedule.one_time.time_frame`
+
+Read-Only:
+
+- `duration` (Attributes) The duration from the start time to wait. (see [below for nested schema](#nestedatt--schedule--one_time--time_frame--duration))
+- `end_time` (String) The end time of the time frame. In a isodate format. For example, `2021-01-01T00:00:00.000`.
+- `start_time` (String)
+- `time_zone` (String)
+
+
+### Nested Schema for `schedule.one_time.time_frame.time_zone`
+
+Read-Only:
+
+- `for_over` (Number) The number of time units to wait before the alert is triggered. For example, if the frequency is set to `hours` and the value is set to `2`, the alert will be triggered after 2 hours.
+- `frequency` (String) The time unit to wait before the alert is triggered. Can be `minutes`, `hours` or `days`.
+
+
+
+
+
+### Nested Schema for `schedule.recurring`
+
+Read-Only:
+
+- `dynamic` (Attributes) (see [below for nested schema](#nestedatt--schedule--recurring--dynamic))
+
+
+### Nested Schema for `schedule.recurring.dynamic`
+
+Read-Only:
+
+- `frequency` (Attributes) (see [below for nested schema](#nestedatt--schedule--recurring--dynamic--frequency))
+- `repeat_every` (Number)
+- `termination_date` (String)
+- `time_frame` (Attributes) (see [below for nested schema](#nestedatt--schedule--recurring--dynamic--time_frame))
+
+
+### Nested Schema for `schedule.recurring.dynamic.time_frame`
+
+Read-Only:
+
+- `daily` (Attributes) (see [below for nested schema](#nestedatt--schedule--recurring--dynamic--time_frame--daily))
+- `monthly` (Attributes) (see [below for nested schema](#nestedatt--schedule--recurring--dynamic--time_frame--monthly))
+- `weekly` (Attributes) (see [below for nested schema](#nestedatt--schedule--recurring--dynamic--time_frame--weekly))
+
+
+### Nested Schema for `schedule.recurring.dynamic.time_frame.daily`
+
+
+
+### Nested Schema for `schedule.recurring.dynamic.time_frame.monthly`
+
+Read-Only:
+
+- `days` (Set of Number)
+
+
+
+### Nested Schema for `schedule.recurring.dynamic.time_frame.weekly`
+
+Read-Only:
+
+- `days` (Set of String)
+
+
+
+
+### Nested Schema for `schedule.recurring.dynamic.time_frame`
+
+Read-Only:
+
+- `duration` (Attributes) The duration from the start time to wait. (see [below for nested schema](#nestedatt--schedule--recurring--dynamic--time_frame--duration))
+- `end_time` (String) The end time of the time frame. In a isodate format. For example, `2021-01-01T00:00:00.000`.
+- `start_time` (String)
+- `time_zone` (String)
+
+
+### Nested Schema for `schedule.recurring.dynamic.time_frame.duration`
+
+Read-Only:
+
+- `for_over` (Number) The number of time units to wait before the alert is triggered. For example, if the frequency is set to `hours` and the value is set to `2`, the alert will be triggered after 2 hours.
+- `frequency` (String) The time unit to wait before the alert is triggered. Can be `minutes`, `hours` or `days`.
diff --git a/docs/resources/alerts_scheduler.md b/docs/resources/alerts_scheduler.md
new file mode 100644
index 00000000..680c48ad
--- /dev/null
+++ b/docs/resources/alerts_scheduler.md
@@ -0,0 +1,220 @@
+---
+# generated by https://github.com/hashicorp/terraform-plugin-docs
+page_title: "coralogix_alerts_scheduler Resource - terraform-provider-coralogix"
+subcategory: ""
+description: |-
+ Coralogix alerts-scheduler.
+---
+
+# coralogix_alerts_scheduler (Resource)
+
+Coralogix alerts-scheduler.
+## Example Usage
+
+```hcl
+resource "coralogix_alerts_scheduler" "example" {
+ name = "example"
+ description = "example"
+ filter = {
+ what_expression = "source logs | filter $d.cpodId:string == '122'"
+ meta_labels = [
+ {
+ key = "key"
+ value = "value"
+ }
+ ]
+ }
+ schedule = {
+ operation = "active"
+ recurring = {
+ dynamic = {
+ repeat_every = 2
+ frequency = {
+ weekly = {
+ days = ["Sunday"]
+ }
+ }
+ time_frame = {
+ start_time = "2021-01-01T00:00:00.000"
+ duration = {
+ for_over = 2
+ frequency = "hours"
+ }
+ time_zone = "UTC+2"
+ }
+ termination_date = "2025-01-01T00:00:00.000"
+ }
+ }
+ }
+}
+```
+
+
+## Schema
+
+### Required
+
+- `name` (String) Alert Scheduler name.
+
+### Optional
+
+- `description` (String) Alert Scheduler description.
+- `enabled` (Boolean) Alert Scheduler enabled. If set to `false`, the alert scheduler will be disabled. True by default.
+- `filter` (Attributes) Alert Scheduler filter. Only one of `meta_labels` or `alerts_unique_ids` can be set. If none of them set, all alerts will be affected. (see [below for nested schema](#nestedatt--filter))
+- `meta_labels` (Attributes Set) Alert Scheduler meta labels. (see [below for nested schema](#nestedatt--meta_labels))
+- `schedule` (Attributes) Exactly one of `one_time` or `recurring` must be set. (see [below for nested schema](#nestedatt--schedule))
+
+### Read-Only
+
+- `id` (String) Alert Scheduler ID.
+
+
+### Nested Schema for `filter`
+
+Required:
+
+- `what_expression` (String) DataPrime query expression. - [DataPrime query language](https://coralogix.com/docs/dataprime-query-language/).
+
+Optional:
+
+- `alerts_unique_ids` (Set of String)
+- `meta_labels` (Attributes Set) (see [below for nested schema](#nestedatt--filter--meta_labels))
+
+
+### Nested Schema for `filter.meta_labels`
+
+Required:
+
+- `key` (String)
+
+Optional:
+
+- `value` (String)
+
+
+
+
+### Nested Schema for `meta_labels`
+
+Required:
+
+- `key` (String)
+
+Optional:
+
+- `value` (String)
+
+
+
+### Nested Schema for `schedule`
+
+Required:
+
+- `operation` (String) The operation to perform. Can be `mute` or `active`.
+
+Optional:
+
+- `one_time` (Attributes) (see [below for nested schema](#nestedatt--schedule--one_time))
+- `recurring` (Attributes) (see [below for nested schema](#nestedatt--schedule--recurring))
+
+
+### Nested Schema for `schedule.one_time`
+
+Required:
+
+- `time_frame` (Attributes) (see [below for nested schema](#nestedatt--schedule--one_time--time_frame))
+
+
+### Nested Schema for `schedule.one_time.time_frame`
+
+Required:
+
+- `start_time` (String)
+- `time_zone` (String)
+
+Optional:
+
+- `duration` (Attributes) The duration from the start time to wait. (see [below for nested schema](#nestedatt--schedule--one_time--time_frame--duration))
+- `end_time` (String) The end time of the time frame. In a isodate format. For example, `2021-01-01T00:00:00.000`.
+
+
+### Nested Schema for `schedule.one_time.time_frame.end_time`
+
+Required:
+
+- `for_over` (Number) The number of time units to wait before the alert is triggered. For example, if the frequency is set to `hours` and the value is set to `2`, the alert will be triggered after 2 hours.
+- `frequency` (String) The time unit to wait before the alert is triggered. Can be `minutes`, `hours` or `days`.
+
+
+
+
+
+### Nested Schema for `schedule.recurring`
+
+Optional:
+
+- `dynamic` (Attributes) (see [below for nested schema](#nestedatt--schedule--recurring--dynamic))
+
+
+### Nested Schema for `schedule.recurring.dynamic`
+
+Required:
+
+- `frequency` (Attributes) (see [below for nested schema](#nestedatt--schedule--recurring--dynamic--frequency))
+- `repeat_every` (Number)
+- `time_frame` (Attributes) (see [below for nested schema](#nestedatt--schedule--recurring--dynamic--time_frame))
+
+Optional:
+
+- `termination_date` (String)
+
+
+### Nested Schema for `schedule.recurring.dynamic.termination_date`
+
+Optional:
+
+- `daily` (Attributes) (see [below for nested schema](#nestedatt--schedule--recurring--dynamic--termination_date--daily))
+- `monthly` (Attributes) (see [below for nested schema](#nestedatt--schedule--recurring--dynamic--termination_date--monthly))
+- `weekly` (Attributes) (see [below for nested schema](#nestedatt--schedule--recurring--dynamic--termination_date--weekly))
+
+
+### Nested Schema for `schedule.recurring.dynamic.termination_date.daily`
+
+
+
+### Nested Schema for `schedule.recurring.dynamic.termination_date.monthly`
+
+Optional:
+
+- `days` (Set of Number)
+
+
+
+### Nested Schema for `schedule.recurring.dynamic.termination_date.weekly`
+
+Optional:
+
+- `days` (Set of String)
+
+
+
+
+### Nested Schema for `schedule.recurring.dynamic.termination_date`
+
+Required:
+
+- `start_time` (String)
+- `time_zone` (String)
+
+Optional:
+
+- `duration` (Attributes) The duration from the start time to wait. (see [below for nested schema](#nestedatt--schedule--recurring--dynamic--termination_date--duration))
+- `end_time` (String) The end time of the time frame. In a isodate format. For example, `2021-01-01T00:00:00.000`.
+
+
+### Nested Schema for `schedule.recurring.dynamic.termination_date.duration`
+
+Required:
+
+- `for_over` (Number) The number of time units to wait before the alert is triggered. For example, if the frequency is set to `hours` and the value is set to `2`, the alert will be triggered after 2 hours.
+- `frequency` (String) The time unit to wait before the alert is triggered. Can be `minutes`, `hours` or `days`.
diff --git a/examples/alerts_scheduler/main.tf b/examples/alerts_scheduler/main.tf
new file mode 100644
index 00000000..19e28ae2
--- /dev/null
+++ b/examples/alerts_scheduler/main.tf
@@ -0,0 +1,68 @@
+terraform {
+ required_providers {
+ coralogix = {
+ version = "~> 1.10"
+ source = "coralogix/coralogix"
+ }
+ }
+}
+
+provider "coralogix" {
+ #api_key = ""
+ #env = ""
+}
+
+resource "coralogix_alerts_scheduler" "example" {
+ name = "example"
+ description = "example"
+ filter = {
+ what_expression = "source logs | filter $d.cpodId:string == '122'"
+ alerts_unique_ids = ["ed6f3713-d827-49a2-9bb6-a8dba8b8c580"]
+ }
+ schedule = {
+ operation = "mute"
+ one_time = {
+ time_frame = {
+ start_time = "2021-01-01T00:00:00.000"
+ end_time = "2021-01-01T00:00:50.000"
+ time_zone = "UTC+2"
+ }
+ }
+ }
+}
+
+resource "coralogix_alerts_scheduler" "example_2" {
+ name = "example"
+ description = "example"
+ filter = {
+ what_expression = "source logs | filter $d.cpodId:string == '122'"
+ meta_labels = [
+ {
+ key = "key"
+ value = "value"
+ }
+ ]
+ }
+ schedule = {
+ operation = "active"
+ recurring = {
+ dynamic = {
+ repeat_every = 2
+ frequency = {
+ weekly = {
+ days = ["Sunday"]
+ }
+ }
+ time_frame = {
+ start_time = "2021-01-01T00:00:00.000"
+ duration = {
+ for_over = 2
+ frequency = "hours"
+ }
+ time_zone = "UTC+2"
+ }
+ termination_date = "2025-01-01T00:00:00.000"
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/go.mod b/go.mod
index 783c9c6d..852132d8 100644
--- a/go.mod
+++ b/go.mod
@@ -29,7 +29,7 @@ require (
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
github.com/armon/go-radix v1.0.0 // indirect
github.com/bgentry/speakeasy v0.1.0 // indirect
- github.com/cloudflare/circl v1.3.3 // indirect
+ github.com/cloudflare/circl v1.3.7 // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/go-cmp v0.6.0 // indirect
diff --git a/go.sum b/go.sum
index d6da0ab8..0b8e06d3 100644
--- a/go.sum
+++ b/go.sum
@@ -29,8 +29,9 @@ github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZ
github.com/bwesterb/go-ristretto v1.2.3/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
-github.com/cloudflare/circl v1.3.3 h1:fE/Qz0QdIGqeWfnwq0RE0R7MI51s0M2E4Ga9kq5AEMs=
github.com/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUKZrLbUZFA=
+github.com/cloudflare/circl v1.3.7 h1:qlCDlTPz2n9fu58M0Nh1J/JzcFpfgkFHHX3O35r5vcU=
+github.com/cloudflare/circl v1.3.7/go.mod h1:sRTcRWXGLrKw6yIGJ+l7amYJFfAXbZG0kBSc8r4zxgA=
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
github.com/cyphar/filepath-securejoin v0.2.4 h1:Ugdm7cg7i6ZK6x3xDF1oEu1nfkyfH53EtKeQYTC3kyg=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=