From 832258e5ac558bbff43525cc5b049cbc65e4ec5e Mon Sep 17 00:00:00 2001 From: Michal Cohen <95693229+michal-co@users.noreply.github.com> Date: Thu, 29 Aug 2024 17:23:44 +0300 Subject: [PATCH] Alert types v3 reloaded (#68) * add condition type to alert type * small naming fixes * aa * some comments * v3 and v3_5 for better migration in alerts-api v3 should be deleted and v3_5 should be v3 once we're done * putting all the override in comment since the feature is not out * deleting v3 and getting back event * changing back from v35 to v3 * moving files around and changing alotttt of names * changing name of unique count * unusual condition type * enum names more accurate * removing comments and changing to rules instead of rule --------- Co-authored-by: Ofir Tadmor Co-authored-by: Alex-Tara --- com/coralogixapis/alerts/v3/alert_def.proto | 83 ++++++++----------- .../alerts/v3/alert_def_priority.proto | 2 +- .../alerts/v3/alert_def_scheduling.proto | 2 +- .../alerts/v3/alert_def_type.proto | 21 ++--- .../activity_analysis/activity_analysis.proto | 2 +- .../arithmetic_operator.proto | 12 --- .../flow/flow_type_definition.proto | 2 +- .../{ => logs/common}/logs_filter.proto | 6 +- .../common}/logs_timewindow.proto | 0 .../logs_immediate_type_definition.proto | 6 +- .../logs/logs_new_value_type_definition.proto | 20 +++++ ...logs_ratio_threshold_type_definition.proto | 31 +++++++ .../logs/logs_threshold_type_definition.proto | 25 ++++++ ...e_relative_threshold_type_definition.proto | 26 ++++++ .../logs_unique_count_type_definition.proto | 24 ++++++ .../logs/logs_unusual_type_definition.proto | 23 +++++ .../new_value/logs_new_value_timewindow.proto | 0 .../ratio/logs_ratio_condition_type.proto | 9 ++ .../ratio/logs_ratio_group_by_for.proto | 0 .../ratio/logs_ratio_timewindow.proto | 0 .../logs_threshold_condition_type.proto | 9 ++ .../logs_time_relative_compared_to.proto | 2 +- .../logs_time_relative_condition_type.proto | 9 ++ .../logs_unique_value_timewindow.proto} | 0 .../unusual/logs_unsual_condition_type.proto | 7 ++ .../{ => common}/metric_timewindow.proto | 0 .../{ => metric/common}/metrics_filter.proto | 0 .../metric_less_than_eq_type_definition.proto | 18 ---- .../metric_less_than_type_definition.proto | 18 ---- ...tric_less_than_usual_type_definition.proto | 15 ---- .../metric_more_than_eq_type_definition.proto | 16 ---- .../metric_more_than_type_definition.proto | 16 ---- ...tric_more_than_usual_type_definition.proto | 15 ---- .../metric_threshold_type_definition.proto | 27 ++++++ .../metric_unusual_type_definition.proto | 24 ++++++ .../metric_threshold_condition_type.proto | 10 +++ .../metric_threshold_missing_values.proto} | 0 .../metric_unsual_condition_type.proto | 8 ++ .../logs_new_value_type_definition.proto | 14 ---- .../alert_def_type_definition/overrides.proto | 9 ++ ...logs_ratio_less_than_type_definition.proto | 22 ----- ...logs_ratio_more_than_type_definition.proto | 20 ----- .../logs_less_than_type_definition.proto | 16 ---- ...logs_less_than_usual_type_definition.proto | 11 --- .../logs_more_than_type_definition.proto | 19 ----- ...logs_more_than_usual_type_definition.proto | 14 ---- ...e_relative_less_than_type_definition.proto | 17 ---- ...e_relative_more_than_type_definition.proto | 15 ---- .../tracing_filter.proto} | 9 +- .../tracing_threshold_condition_type.proto | 8 ++ .../tracing_threshold_timewindow.proto} | 0 .../tracing_immediate_type_definition.proto | 8 +- .../tracing_more_than_type_definition.proto | 14 ---- .../tracing_threshold_type_definition.proto | 23 +++++ .../unique_count_type_definition.proto | 16 ---- .../alerts/v3/alert_defs_service.proto | 2 +- 56 files changed, 355 insertions(+), 370 deletions(-) delete mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/arithmetic_operator.proto rename com/coralogixapis/alerts/v3/alert_def_type_definition/{ => logs/common}/logs_filter.proto (86%) rename com/coralogixapis/alerts/v3/alert_def_type_definition/{standard => logs/common}/logs_timewindow.proto (100%) rename com/coralogixapis/alerts/v3/alert_def_type_definition/{standard => logs}/logs_immediate_type_definition.proto (81%) create mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_new_value_type_definition.proto create mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_ratio_threshold_type_definition.proto create mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_threshold_type_definition.proto create mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_time_relative_threshold_type_definition.proto create mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_unique_count_type_definition.proto create mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_unusual_type_definition.proto rename com/coralogixapis/alerts/v3/alert_def_type_definition/{ => logs}/new_value/logs_new_value_timewindow.proto (100%) create mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/logs/ratio/logs_ratio_condition_type.proto rename com/coralogixapis/alerts/v3/alert_def_type_definition/{ => logs}/ratio/logs_ratio_group_by_for.proto (100%) rename com/coralogixapis/alerts/v3/alert_def_type_definition/{ => logs}/ratio/logs_ratio_timewindow.proto (100%) create mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/logs/threshold/logs_threshold_condition_type.proto rename com/coralogixapis/alerts/v3/alert_def_type_definition/{ => logs}/time_relative/logs_time_relative_compared_to.proto (99%) create mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/logs/time_relative/logs_time_relative_condition_type.proto rename com/coralogixapis/alerts/v3/alert_def_type_definition/{unique_count/unique_value_timewindow.proto => logs/unique_count/logs_unique_value_timewindow.proto} (100%) create mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/logs/unusual/logs_unsual_condition_type.proto rename com/coralogixapis/alerts/v3/alert_def_type_definition/metric/{ => common}/metric_timewindow.proto (100%) rename com/coralogixapis/alerts/v3/alert_def_type_definition/{ => metric/common}/metrics_filter.proto (100%) delete mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_less_than_eq_type_definition.proto delete mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_less_than_type_definition.proto delete mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_less_than_usual_type_definition.proto delete mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_more_than_eq_type_definition.proto delete mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_more_than_type_definition.proto delete mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_more_than_usual_type_definition.proto create mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_threshold_type_definition.proto create mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_unusual_type_definition.proto create mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/metric/threshold/metric_threshold_condition_type.proto rename com/coralogixapis/alerts/v3/alert_def_type_definition/metric/{metric_missing_values.proto => threshold/metric_threshold_missing_values.proto} (100%) create mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/metric/unusual/metric_unsual_condition_type.proto delete mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/new_value/logs_new_value_type_definition.proto create mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/overrides.proto delete mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/ratio/logs_ratio_less_than_type_definition.proto delete mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/ratio/logs_ratio_more_than_type_definition.proto delete mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/standard/logs_less_than_type_definition.proto delete mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/standard/logs_less_than_usual_type_definition.proto delete mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/standard/logs_more_than_type_definition.proto delete mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/standard/logs_more_than_usual_type_definition.proto delete mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/time_relative/logs_time_relative_less_than_type_definition.proto delete mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/time_relative/logs_time_relative_more_than_type_definition.proto rename com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/{tracing_query.proto => common/tracing_filter.proto} (85%) create mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/threshold/tracing_threshold_condition_type.proto rename com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/{tracing_timewindow.proto => threshold/tracing_threshold_timewindow.proto} (100%) delete mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/tracing_more_than_type_definition.proto create mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/tracing_threshold_type_definition.proto delete mode 100644 com/coralogixapis/alerts/v3/alert_def_type_definition/unique_count/unique_count_type_definition.proto diff --git a/com/coralogixapis/alerts/v3/alert_def.proto b/com/coralogixapis/alerts/v3/alert_def.proto index 45e2fc5..7043dff 100644 --- a/com/coralogixapis/alerts/v3/alert_def.proto +++ b/com/coralogixapis/alerts/v3/alert_def.proto @@ -2,45 +2,38 @@ syntax = "proto3"; package com.coralogixapis.alerts.v3; -import "google/protobuf/wrappers.proto"; -import "google/protobuf/timestamp.proto"; -import "com/coralogixapis/alerts/v3/alert_def_scheduling.proto"; import "com/coralogixapis/alerts/v3/alert_def_notification_group.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/standard/logs_immediate_type_definition.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/standard/logs_more_than_type_definition.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/standard/logs_less_than_type_definition.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/standard/logs_more_than_usual_type_definition.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/standard/logs_less_than_usual_type_definition.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/ratio/logs_ratio_more_than_type_definition.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/ratio/logs_ratio_less_than_type_definition.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/new_value/logs_new_value_type_definition.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/unique_count/unique_count_type_definition.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/time_relative/logs_time_relative_more_than_type_definition.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/time_relative/logs_time_relative_less_than_type_definition.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_more_than_eq_type_definition.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_less_than_eq_type_definition.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_less_than_type_definition.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_more_than_type_definition.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_more_than_usual_type_definition.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_less_than_usual_type_definition.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/tracing_immediate_type_definition.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/tracing_more_than_type_definition.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/flow/flow_type_definition.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type.proto"; import "com/coralogixapis/alerts/v3/alert_def_priority.proto"; +import "com/coralogixapis/alerts/v3/alert_def_scheduling.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/flow/flow_type_definition.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_threshold_type_definition.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_unusual_type_definition.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_new_value_type_definition.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_ratio_threshold_type_definition.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_immediate_type_definition.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_threshold_type_definition.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_unusual_type_definition.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_time_relative_threshold_type_definition.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/tracing_immediate_type_definition.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/tracing_threshold_type_definition.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_unique_count_type_definition.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/wrappers.proto"; /** -* Represents An Existing or Created Alert Definition + * Represents An Existing or Created Alert Definition */ message AlertDef { AlertDefProperties alert_def_properties = 1; google.protobuf.StringValue id = 2; // This is the Alert Definition's Persistent ID (does not change on replace) , AKA UniqueIdentifier + google.protobuf.StringValue alert_version_id = 20; // the old alertId google.protobuf.Timestamp created_time = 3; google.protobuf.Timestamp updated_time = 4; } /** -* Represents The non generated alert definition properties (the ones that are set by the user) + * Represents The non generated alert definition properties (the ones that are set by the user) */ message AlertDefProperties { google.protobuf.StringValue name = 1; @@ -50,31 +43,25 @@ message AlertDefProperties { oneof schedule { ActivitySchedule active_on = 5; } - AlertDefType alert_def_type = 6; + AlertDefType type = 6; oneof type_definition { - LogsImmediateTypeDefinition logs_immediate = 100; - LogsMoreThanTypeDefinition logs_more_than = 101; - LogsLessThanTypeDefinition logs_less_than = 102; - LogsMoreThanUsualTypeDefinition logs_more_than_usual = 103; - LogsRatioMoreThanTypeDefinition logs_ratio_more_than = 104; - LogsRatioLessThanTypeDefinition logs_ratio_less_than = 105; - LogsNewValueTypeDefinition logs_new_value = 106; - LogsUniqueCountTypeDefinition logs_unique_count = 107; - LogsTimeRelativeMoreThanTypeDefinition logs_time_relative_more_than = 108; - LogsTimeRelativeLessThanTypeDefinition logs_time_relative_less_than = 109; - MetricMoreThanTypeDefinition metric_more_than = 112; - MetricLessThanTypeDefinition metric_less_than = 113; - MetricMoreThanUsualTypeDefinition metric_more_than_usual = 114; - TracingImmediateTypeDefinition tracing_immediate = 115; - TracingMoreThanTypeDefinition tracing_more_than = 116; - FlowTypeDefinition flow = 117; - MetricLessThanUsualTypeDefinition metric_less_than_usual = 118; - MetricMoreThanOrEqualsTypeDefinition metric_more_than_or_equals = 119; - MetricLessThanOrEqualsTypeDefinition metric_less_than_or_equals = 120; - }; + LogsImmediateType logs_immediate = 101; + TracingImmediateType tracing_immediate = 102; + LogsThresholdType logs_threshold = 103; + LogsRatioThresholdType logs_ratio_threshold = 104; + LogsTimeRelativeThresholdType logs_time_relative_threshold = 105; + MetricThresholdType metric_threshold = 106; + TracingThresholdType tracing_threshold = 107; + FlowType flow = 108; + LogsUnusualType logs_unusual = 109; + MetricUnusualType metric_unusual = 110; + LogsNewValueType logs_new_value = 111; + LogsUniqueCountType logs_unique_count = 112; + } repeated google.protobuf.StringValue group_by = 7; AlertDefIncidentSettings incidents_settings = 8; AlertDefNotificationGroup notification_group = 9; - map labels = 10; + map labels = 10; google.protobuf.BoolValue phantom_mode = 11; + google.protobuf.BoolValue deleted = 12; } diff --git a/com/coralogixapis/alerts/v3/alert_def_priority.proto b/com/coralogixapis/alerts/v3/alert_def_priority.proto index 508f26e..111fdb9 100644 --- a/com/coralogixapis/alerts/v3/alert_def_priority.proto +++ b/com/coralogixapis/alerts/v3/alert_def_priority.proto @@ -8,4 +8,4 @@ enum AlertDefPriority { ALERT_DEF_PRIORITY_P3 = 2; ALERT_DEF_PRIORITY_P2 = 3; ALERT_DEF_PRIORITY_P1 = 4; -} \ No newline at end of file +} diff --git a/com/coralogixapis/alerts/v3/alert_def_scheduling.proto b/com/coralogixapis/alerts/v3/alert_def_scheduling.proto index 656aa63..4b34e6a 100644 --- a/com/coralogixapis/alerts/v3/alert_def_scheduling.proto +++ b/com/coralogixapis/alerts/v3/alert_def_scheduling.proto @@ -23,4 +23,4 @@ message TimeOfDay { int32 hours = 1; // Minutes of hour of day. Must be from 0 to 59. int32 minutes = 2; -} \ No newline at end of file +} diff --git a/com/coralogixapis/alerts/v3/alert_def_type.proto b/com/coralogixapis/alerts/v3/alert_def_type.proto index 1df184a..5d0befe 100644 --- a/com/coralogixapis/alerts/v3/alert_def_type.proto +++ b/com/coralogixapis/alerts/v3/alert_def_type.proto @@ -4,22 +4,15 @@ package com.coralogixapis.alerts.v3; enum AlertDefType { ALERT_DEF_TYPE_LOGS_IMMEDIATE_OR_UNSPECIFIED = 0; - ALERT_DEF_TYPE_LOGS_MORE_THAN = 1; - ALERT_DEF_TYPE_LOGS_LESS_THAN = 2; - ALERT_DEF_TYPE_LOGS_MORE_THAN_USUAL = 3; - ALERT_DEF_TYPE_LOGS_RATIO_MORE_THAN = 4; - ALERT_DEF_TYPE_LOGS_RATIO_LESS_THAN = 5; + ALERT_DEF_TYPE_LOGS_THRESHOLD = 1; + ALERT_DEF_TYPE_LOGS_UNUSUAL = 3; + ALERT_DEF_TYPE_LOGS_RATIO_THRESHOLD = 4; ALERT_DEF_TYPE_LOGS_NEW_VALUE = 6; ALERT_DEF_TYPE_LOGS_UNIQUE_COUNT = 7; - ALERT_DEF_TYPE_LOGS_TIME_RELATIVE_MORE_THAN = 8; - ALERT_DEF_TYPE_LOGS_TIME_RELATIVE_LESS_THAN = 9; - ALERT_DEF_TYPE_METRIC_MORE_THAN = 10; - ALERT_DEF_TYPE_METRIC_LESS_THAN = 11; - ALERT_DEF_TYPE_METRIC_MORE_THAN_USUAL = 14; + ALERT_DEF_TYPE_LOGS_TIME_RELATIVE_THRESHOLD = 8; + ALERT_DEF_TYPE_METRIC_THRESHOLD = 10; + ALERT_DEF_TYPE_METRIC_UNUSUAL = 14; ALERT_DEF_TYPE_TRACING_IMMEDIATE = 15; - ALERT_DEF_TYPE_TRACING_MORE_THAN = 16; + ALERT_DEF_TYPE_TRACING_THRESHOLD = 16; ALERT_DEF_TYPE_FLOW = 17; - ALERT_DEF_TYPE_METRIC_MORE_THAN_OR_EQUALS = 18; - ALERT_DEF_TYPE_METRIC_LESS_THAN_OR_EQUALS = 19; - ALERT_DEF_TYPE_METRIC_LESS_THAN_USUAL = 21; } diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/activity_analysis/activity_analysis.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/activity_analysis/activity_analysis.proto index 1d145ce..3c556d6 100644 --- a/com/coralogixapis/alerts/v3/alert_def_type_definition/activity_analysis/activity_analysis.proto +++ b/com/coralogixapis/alerts/v3/alert_def_type_definition/activity_analysis/activity_analysis.proto @@ -10,4 +10,4 @@ message ActivityAnalysis { enum ActivityAnalysisStatus { ACTIVITY_ANALYSIS_STATUS_ACTIVATE_OR_UNSPECIFIED = 0; ACTIVITY_ANALYSIS_STATUS_MUTE = 1; -} \ No newline at end of file +} diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/arithmetic_operator.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/arithmetic_operator.proto deleted file mode 100644 index a51d73a..0000000 --- a/com/coralogixapis/alerts/v3/alert_def_type_definition/arithmetic_operator.proto +++ /dev/null @@ -1,12 +0,0 @@ -syntax = "proto3"; - -package com.coralogixapis.alerts.v3; - -enum ArithmeticOperator { - ARITHMETIC_OPERATOR_AVERAGE_OR_UNSPECIFIED = 0; - ARITHMETIC_OPERATOR_MIN = 1; - ARITHMETIC_OPERATOR_MAX = 2; - ARITHMETIC_OPERATOR_SUM = 3; - ARITHMETIC_OPERATOR_COUNT = 4; - ARITHMETIC_OPERATOR_PERCENTILE = 5; -} diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/flow/flow_type_definition.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/flow/flow_type_definition.proto index 4237339..6e850ec 100644 --- a/com/coralogixapis/alerts/v3/alert_def_type_definition/flow/flow_type_definition.proto +++ b/com/coralogixapis/alerts/v3/alert_def_type_definition/flow/flow_type_definition.proto @@ -4,7 +4,7 @@ package com.coralogixapis.alerts.v3; import "google/protobuf/wrappers.proto"; -message FlowTypeDefinition { +message FlowType { repeated FlowStages stages = 1 ; google.protobuf.BoolValue enforce_suppression = 2; } diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/logs_filter.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/common/logs_filter.proto similarity index 86% rename from com/coralogixapis/alerts/v3/alert_def_type_definition/logs_filter.proto rename to com/coralogixapis/alerts/v3/alert_def_type_definition/logs/common/logs_filter.proto index 4673261..df74a4e 100644 --- a/com/coralogixapis/alerts/v3/alert_def_type_definition/logs_filter.proto +++ b/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/common/logs_filter.proto @@ -6,12 +6,10 @@ import "google/protobuf/wrappers.proto"; message LogsFilter { oneof filter_type { - LuceneFilter lucene_filter = 1; - // DPXL will be added here in the future - //google.protobuf.StringValue dpxl = 2; + LogsSimpleFilter simple_filter = 1; } } -message LuceneFilter { +message LogsSimpleFilter { google.protobuf.StringValue lucene_query = 1; LabelFilters label_filters = 2; } diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/standard/logs_timewindow.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/common/logs_timewindow.proto similarity index 100% rename from com/coralogixapis/alerts/v3/alert_def_type_definition/standard/logs_timewindow.proto rename to com/coralogixapis/alerts/v3/alert_def_type_definition/logs/common/logs_timewindow.proto diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/standard/logs_immediate_type_definition.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_immediate_type_definition.proto similarity index 81% rename from com/coralogixapis/alerts/v3/alert_def_type_definition/standard/logs_immediate_type_definition.proto rename to com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_immediate_type_definition.proto index 6b4e01d..a603090 100644 --- a/com/coralogixapis/alerts/v3/alert_def_type_definition/standard/logs_immediate_type_definition.proto +++ b/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_immediate_type_definition.proto @@ -1,10 +1,10 @@ syntax = "proto3"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs_filter.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs/common/logs_filter.proto"; import "google/protobuf/wrappers.proto"; package com.coralogixapis.alerts.v3; -message LogsImmediateTypeDefinition { +message LogsImmediateType { LogsFilter logs_filter = 1; repeated google.protobuf.StringValue notification_payload_filter = 2; -} \ No newline at end of file +} diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_new_value_type_definition.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_new_value_type_definition.proto new file mode 100644 index 0000000..4978fb3 --- /dev/null +++ b/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_new_value_type_definition.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +package com.coralogixapis.alerts.v3; + +import "google/protobuf/wrappers.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs/new_value/logs_new_value_timewindow.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs/common/logs_filter.proto"; + +message LogsNewValueType { + LogsFilter logs_filter = 1; + repeated LogsNewValueRule rules = 2; + repeated google.protobuf.StringValue notification_payload_filter = 3; +} +message LogsNewValueRule { + LogsNewValueCondition condition = 1; +} +message LogsNewValueCondition { + google.protobuf.StringValue keypath_to_track = 1; + LogsNewValueTimeWindow time_window = 2; +} diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_ratio_threshold_type_definition.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_ratio_threshold_type_definition.proto new file mode 100644 index 0000000..73a889b --- /dev/null +++ b/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_ratio_threshold_type_definition.proto @@ -0,0 +1,31 @@ +syntax = "proto3"; + +package com.coralogixapis.alerts.v3; + +import "google/protobuf/wrappers.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs/common/logs_filter.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs/ratio/logs_ratio_timewindow.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/undetected_values_management.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs/ratio/logs_ratio_group_by_for.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs/ratio/logs_ratio_condition_type.proto"; + +message LogsRatioThresholdType { + LogsFilter numerator = 1; + google.protobuf.StringValue numerator_alias =2; + LogsFilter denominator = 3; + google.protobuf.StringValue denominator_alias = 4; + repeated LogsRatioRules rules = 5; + repeated google.protobuf.StringValue notification_payload_filter = 6; + LogsRatioGroupByFor group_by_for = 7; + UndetectedValuesManagement undetected_values_management = 8; +} +message LogsRatioRules { + LogsRatioCondition condition = 1; +} + +message LogsRatioCondition { + google.protobuf.DoubleValue threshold = 1; + LogsRatioTimeWindow time_window = 2; + google.protobuf.BoolValue ignore_infinity = 3; + LogsRatioConditionType condition_type = 4; +} diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_threshold_type_definition.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_threshold_type_definition.proto new file mode 100644 index 0000000..58924b8 --- /dev/null +++ b/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_threshold_type_definition.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; + +package com.coralogixapis.alerts.v3; + +import "google/protobuf/wrappers.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs/common/logs_filter.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/undetected_values_management.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs/common/logs_timewindow.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs/threshold/logs_threshold_condition_type.proto"; + +message LogsThresholdType { + LogsFilter logs_filter = 1; + UndetectedValuesManagement undetected_values_management = 2; + repeated LogsThresholdRule rules = 3; + repeated google.protobuf.StringValue notification_payload_filter = 4; +} +message LogsThresholdRule { + LogsThresholdCondition condition = 1; +} + +message LogsThresholdCondition { + google.protobuf.DoubleValue threshold = 1; + LogsTimeWindow time_window = 2; + LogsThresholdConditionType condition_type = 3; +} diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_time_relative_threshold_type_definition.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_time_relative_threshold_type_definition.proto new file mode 100644 index 0000000..2db4359 --- /dev/null +++ b/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_time_relative_threshold_type_definition.proto @@ -0,0 +1,26 @@ +syntax = "proto3"; + +package com.coralogixapis.alerts.v3; + +import "google/protobuf/wrappers.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs/common/logs_filter.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs/time_relative/logs_time_relative_compared_to.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/undetected_values_management.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs/time_relative/logs_time_relative_condition_type.proto"; + +message LogsTimeRelativeThresholdType { + LogsFilter logs_filter = 1; + repeated LogsTimeRelativeRule rules = 2; + repeated google.protobuf.StringValue notification_payload_filter = 4; + UndetectedValuesManagement undetected_values_management = 5; +} +message LogsTimeRelativeRule { + LogsTimeRelativeCondition condition = 1; +} + +message LogsTimeRelativeCondition{ + google.protobuf.DoubleValue threshold =1; + LogsTimeRelativeComparedTo compared_to = 2; + google.protobuf.BoolValue ignore_infinity = 3; + LogsTimeRelativeConditionType condition_type = 4; +} diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_unique_count_type_definition.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_unique_count_type_definition.proto new file mode 100644 index 0000000..0982383 --- /dev/null +++ b/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_unique_count_type_definition.proto @@ -0,0 +1,24 @@ +syntax = "proto3"; + +package com.coralogixapis.alerts.v3; + +import "google/protobuf/wrappers.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs/common/logs_filter.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs/unique_count/logs_unique_value_timewindow.proto"; + +message LogsUniqueCountType { + LogsFilter logs_filter = 1; + repeated LogsUniqueCountRule rules = 2; + repeated google.protobuf.StringValue notification_payload_filter = 3; +} + +message LogsUniqueCountRule{ + LogsUniqueCountCondition condition = 1; +} + +message LogsUniqueCountCondition{ + google.protobuf.StringValue unique_count_keypath = 1; + google.protobuf.Int64Value max_unique_count = 2; + LogsUniqueValueTimeWindow time_window = 3; + google.protobuf.Int64Value max_unique_count_per_group_by_key = 4; +} diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_unusual_type_definition.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_unusual_type_definition.proto new file mode 100644 index 0000000..16a1bfa --- /dev/null +++ b/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_unusual_type_definition.proto @@ -0,0 +1,23 @@ +syntax = "proto3"; + +package com.coralogixapis.alerts.v3; + +import "google/protobuf/wrappers.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs/common/logs_filter.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs/common/logs_timewindow.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs/unusual/logs_unsual_condition_type.proto"; + +message LogsUnusualType { + LogsFilter logs_filter = 1; + repeated LogsUnusualRule rules = 2; + repeated google.protobuf.StringValue notification_payload_filter = 3; +} +message LogsUnusualRule { + LogsUnusualCondition condition = 1; +} + +message LogsUnusualCondition { + google.protobuf.DoubleValue minimum_threshold = 1; + LogsTimeWindow time_window = 2; + LogsUnusualConditionType condition_type = 3; +} diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/new_value/logs_new_value_timewindow.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/new_value/logs_new_value_timewindow.proto similarity index 100% rename from com/coralogixapis/alerts/v3/alert_def_type_definition/new_value/logs_new_value_timewindow.proto rename to com/coralogixapis/alerts/v3/alert_def_type_definition/logs/new_value/logs_new_value_timewindow.proto diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/ratio/logs_ratio_condition_type.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/ratio/logs_ratio_condition_type.proto new file mode 100644 index 0000000..6c1519d --- /dev/null +++ b/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/ratio/logs_ratio_condition_type.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +package com.coralogixapis.alerts.v3; + + +enum LogsRatioConditionType { + LOGS_RATIO_CONDITION_TYPE_MORE_THAN_OR_UNSPECIFIED = 0; + LOGS_RATIO_CONDITION_TYPE_LESS_THAN = 1; +} diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/ratio/logs_ratio_group_by_for.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/ratio/logs_ratio_group_by_for.proto similarity index 100% rename from com/coralogixapis/alerts/v3/alert_def_type_definition/ratio/logs_ratio_group_by_for.proto rename to com/coralogixapis/alerts/v3/alert_def_type_definition/logs/ratio/logs_ratio_group_by_for.proto diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/ratio/logs_ratio_timewindow.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/ratio/logs_ratio_timewindow.proto similarity index 100% rename from com/coralogixapis/alerts/v3/alert_def_type_definition/ratio/logs_ratio_timewindow.proto rename to com/coralogixapis/alerts/v3/alert_def_type_definition/logs/ratio/logs_ratio_timewindow.proto diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/threshold/logs_threshold_condition_type.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/threshold/logs_threshold_condition_type.proto new file mode 100644 index 0000000..ff1517e --- /dev/null +++ b/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/threshold/logs_threshold_condition_type.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +package com.coralogixapis.alerts.v3; + + +enum LogsThresholdConditionType { + LOGS_THRESHOLD_CONDITION_TYPE_MORE_THAN_OR_UNSPECIFIED = 0; + LOGS_THRESHOLD_CONDITION_TYPE_LESS_THAN = 1; +} diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/time_relative/logs_time_relative_compared_to.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/time_relative/logs_time_relative_compared_to.proto similarity index 99% rename from com/coralogixapis/alerts/v3/alert_def_type_definition/time_relative/logs_time_relative_compared_to.proto rename to com/coralogixapis/alerts/v3/alert_def_type_definition/logs/time_relative/logs_time_relative_compared_to.proto index 178e197..743fe89 100644 --- a/com/coralogixapis/alerts/v3/alert_def_type_definition/time_relative/logs_time_relative_compared_to.proto +++ b/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/time_relative/logs_time_relative_compared_to.proto @@ -9,4 +9,4 @@ enum LogsTimeRelativeComparedTo { LOGS_TIME_RELATIVE_COMPARED_TO_YESTERDAY = 3; LOGS_TIME_RELATIVE_COMPARED_TO_SAME_DAY_LAST_WEEK = 4; LOGS_TIME_RELATIVE_COMPARED_TO_SAME_DAY_LAST_MONTH = 5; -} \ No newline at end of file +} diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/time_relative/logs_time_relative_condition_type.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/time_relative/logs_time_relative_condition_type.proto new file mode 100644 index 0000000..cfa09b1 --- /dev/null +++ b/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/time_relative/logs_time_relative_condition_type.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +package com.coralogixapis.alerts.v3; + + +enum LogsTimeRelativeConditionType { + LOGS_TIME_RELATIVE_CONDITION_TYPE_MORE_THAN_OR_UNSPECIFIED = 0; + LOGS_TIME_RELATIVE_CONDITION_TYPE_LESS_THAN = 1; +} diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/unique_count/unique_value_timewindow.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/unique_count/logs_unique_value_timewindow.proto similarity index 100% rename from com/coralogixapis/alerts/v3/alert_def_type_definition/unique_count/unique_value_timewindow.proto rename to com/coralogixapis/alerts/v3/alert_def_type_definition/logs/unique_count/logs_unique_value_timewindow.proto diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/unusual/logs_unsual_condition_type.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/unusual/logs_unsual_condition_type.proto new file mode 100644 index 0000000..4fee71e --- /dev/null +++ b/com/coralogixapis/alerts/v3/alert_def_type_definition/logs/unusual/logs_unsual_condition_type.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +package com.coralogixapis.alerts.v3; + +enum LogsUnusualConditionType { + LOGS_UNUSUAL_CONDITION_TYPE_MORE_THAN_USUAL_OR_UNSPECIFIED = 0; +} diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_timewindow.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/common/metric_timewindow.proto similarity index 100% rename from com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_timewindow.proto rename to com/coralogixapis/alerts/v3/alert_def_type_definition/metric/common/metric_timewindow.proto diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/metrics_filter.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/common/metrics_filter.proto similarity index 100% rename from com/coralogixapis/alerts/v3/alert_def_type_definition/metrics_filter.proto rename to com/coralogixapis/alerts/v3/alert_def_type_definition/metric/common/metrics_filter.proto diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_less_than_eq_type_definition.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_less_than_eq_type_definition.proto deleted file mode 100644 index 652a1b4..0000000 --- a/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_less_than_eq_type_definition.proto +++ /dev/null @@ -1,18 +0,0 @@ -syntax = "proto3"; - -package com.coralogixapis.alerts.v3; - -import "google/protobuf/wrappers.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_timewindow.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/undetected_values_management.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_missing_values.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/metrics_filter.proto"; - -message MetricLessThanOrEqualsTypeDefinition { - MetricFilter metric_filter = 1; - google.protobuf.FloatValue threshold = 2; - google.protobuf.UInt32Value for_over_pct = 3; - MetricTimeWindow of_the_last = 4; - MetricMissingValues missing_values =5; - optional UndetectedValuesManagement undetected_values_management = 6; -} diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_less_than_type_definition.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_less_than_type_definition.proto deleted file mode 100644 index ad85f81..0000000 --- a/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_less_than_type_definition.proto +++ /dev/null @@ -1,18 +0,0 @@ -syntax = "proto3"; - -package com.coralogixapis.alerts.v3; - -import "google/protobuf/wrappers.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_timewindow.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/undetected_values_management.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_missing_values.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/metrics_filter.proto"; - -message MetricLessThanTypeDefinition { - MetricFilter metric_filter = 1; - google.protobuf.FloatValue threshold = 2; - google.protobuf.UInt32Value for_over_pct = 3; - MetricTimeWindow of_the_last = 4; - MetricMissingValues missing_values =5; - optional UndetectedValuesManagement undetected_values_management = 6; -} diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_less_than_usual_type_definition.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_less_than_usual_type_definition.proto deleted file mode 100644 index df0aab9..0000000 --- a/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_less_than_usual_type_definition.proto +++ /dev/null @@ -1,15 +0,0 @@ -syntax = "proto3"; - -package com.coralogixapis.alerts.v3; - -import "google/protobuf/wrappers.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_timewindow.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/metrics_filter.proto"; - -message MetricLessThanUsualTypeDefinition { - MetricFilter metric_filter = 1; - google.protobuf.UInt32Value threshold = 2; - google.protobuf.UInt32Value for_over_pct = 3; - MetricTimeWindow of_the_last = 4; - google.protobuf.UInt32Value min_non_null_values_pct = 5; -} \ No newline at end of file diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_more_than_eq_type_definition.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_more_than_eq_type_definition.proto deleted file mode 100644 index 3880154..0000000 --- a/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_more_than_eq_type_definition.proto +++ /dev/null @@ -1,16 +0,0 @@ -syntax = "proto3"; - -package com.coralogixapis.alerts.v3; - -import "google/protobuf/wrappers.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_timewindow.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_missing_values.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/metrics_filter.proto"; - -message MetricMoreThanOrEqualsTypeDefinition { - MetricFilter metric_filter = 1; - google.protobuf.FloatValue threshold = 2; - google.protobuf.UInt32Value for_over_pct = 3; - MetricTimeWindow of_the_last = 4; - MetricMissingValues missing_values = 5; -} diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_more_than_type_definition.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_more_than_type_definition.proto deleted file mode 100644 index 0930884..0000000 --- a/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_more_than_type_definition.proto +++ /dev/null @@ -1,16 +0,0 @@ -syntax = "proto3"; - -package com.coralogixapis.alerts.v3; - -import "google/protobuf/wrappers.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_timewindow.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_missing_values.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/metrics_filter.proto"; - -message MetricMoreThanTypeDefinition { - MetricFilter metric_filter = 1; - google.protobuf.FloatValue threshold = 2; - google.protobuf.UInt32Value for_over_pct = 3; - MetricTimeWindow of_the_last = 4; - MetricMissingValues missing_values = 5; -} diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_more_than_usual_type_definition.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_more_than_usual_type_definition.proto deleted file mode 100644 index 1e2bce5..0000000 --- a/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_more_than_usual_type_definition.proto +++ /dev/null @@ -1,15 +0,0 @@ -syntax = "proto3"; - -package com.coralogixapis.alerts.v3; - -import "google/protobuf/wrappers.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_timewindow.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/metrics_filter.proto"; - -message MetricMoreThanUsualTypeDefinition { - MetricFilter metric_filter = 1; - google.protobuf.UInt32Value threshold = 2; - google.protobuf.UInt32Value for_over_pct = 3; - MetricTimeWindow of_the_last = 4; - google.protobuf.UInt32Value min_non_null_values_pct = 5; -} \ No newline at end of file diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_threshold_type_definition.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_threshold_type_definition.proto new file mode 100644 index 0000000..e87ea4e --- /dev/null +++ b/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_threshold_type_definition.proto @@ -0,0 +1,27 @@ +syntax = "proto3"; + +package com.coralogixapis.alerts.v3; + +import "google/protobuf/wrappers.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/metric/common/metric_timewindow.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/undetected_values_management.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/metric/threshold/metric_threshold_missing_values.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/metric/common/metrics_filter.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/metric/threshold/metric_threshold_condition_type.proto"; + +message MetricThresholdType { + MetricFilter metric_filter = 1; + repeated MetricThresholdRule rules = 2; + UndetectedValuesManagement undetected_values_management = 3; +} + +message MetricThresholdRule { + MetricThresholdCondition condition = 1; +} +message MetricThresholdCondition { + google.protobuf.DoubleValue threshold = 1; + google.protobuf.UInt32Value for_over_pct = 2; + MetricTimeWindow of_the_last = 3; + MetricMissingValues missing_values = 4; + MetricThresholdConditionType condition_type = 5; +} diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_unusual_type_definition.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_unusual_type_definition.proto new file mode 100644 index 0000000..f50d794 --- /dev/null +++ b/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_unusual_type_definition.proto @@ -0,0 +1,24 @@ +syntax = "proto3"; + +package com.coralogixapis.alerts.v3; + +import "google/protobuf/wrappers.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/metric/common/metric_timewindow.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/metric/common/metrics_filter.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/metric/unusual/metric_unsual_condition_type.proto"; + +message MetricUnusualType { + MetricFilter metric_filter = 1; + repeated MetricUnusualRule rules = 2; +} +message MetricUnusualRule { + MetricUnusualCondition condition = 1; +} + +message MetricUnusualCondition { + google.protobuf.DoubleValue threshold = 1; + google.protobuf.UInt32Value for_over_pct = 2; + MetricTimeWindow of_the_last = 3; + google.protobuf.UInt32Value min_non_null_values_pct = 4; + MetricUnusualConditionType condition_type = 5; +} diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/threshold/metric_threshold_condition_type.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/threshold/metric_threshold_condition_type.proto new file mode 100644 index 0000000..63e0e2e --- /dev/null +++ b/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/threshold/metric_threshold_condition_type.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +package com.coralogixapis.alerts.v3; + +enum MetricThresholdConditionType { + METRIC_THRESHOLD_CONDITION_TYPE_MORE_THAN_OR_UNSPECIFIED = 0; + METRIC_THRESHOLD_CONDITION_TYPE_LESS_THAN = 1; + METRIC_THRESHOLD_CONDITION_TYPE_MORE_THAN_OR_EQUALS = 2; + METRIC_THRESHOLD_CONDITION_TYPE_LESS_THAN_OR_EQUALS = 3; +} diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_missing_values.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/threshold/metric_threshold_missing_values.proto similarity index 100% rename from com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_missing_values.proto rename to com/coralogixapis/alerts/v3/alert_def_type_definition/metric/threshold/metric_threshold_missing_values.proto diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/unusual/metric_unsual_condition_type.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/unusual/metric_unsual_condition_type.proto new file mode 100644 index 0000000..a7812bd --- /dev/null +++ b/com/coralogixapis/alerts/v3/alert_def_type_definition/metric/unusual/metric_unsual_condition_type.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +package com.coralogixapis.alerts.v3; + +enum MetricUnusualConditionType { + METRIC_UNUSUAL_CONDITION_TYPE_MORE_THAN_USUAL_OR_UNSPECIFIED = 0; + METRIC_UNUSUAL_CONDITION_TYPE_LESS_THAN_USUAL= 1; +} diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/new_value/logs_new_value_type_definition.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/new_value/logs_new_value_type_definition.proto deleted file mode 100644 index aaac77f..0000000 --- a/com/coralogixapis/alerts/v3/alert_def_type_definition/new_value/logs_new_value_type_definition.proto +++ /dev/null @@ -1,14 +0,0 @@ -syntax = "proto3"; - -package com.coralogixapis.alerts.v3; - -import "google/protobuf/wrappers.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/new_value/logs_new_value_timewindow.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs_filter.proto"; - -message LogsNewValueTypeDefinition { - LogsFilter logs_filter = 1; - google.protobuf.StringValue keypath_to_track = 3; - LogsNewValueTimeWindow time_window = 4; - repeated google.protobuf.StringValue notification_payload_filter = 5; -} \ No newline at end of file diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/overrides.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/overrides.proto new file mode 100644 index 0000000..03b6404 --- /dev/null +++ b/com/coralogixapis/alerts/v3/alert_def_type_definition/overrides.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +package com.coralogixapis.alerts.v3; + +import "com/coralogixapis/alerts/v3/alert_def_priority.proto"; + +message AlertDefOverride { + AlertDefPriority priority = 1; +} diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/ratio/logs_ratio_less_than_type_definition.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/ratio/logs_ratio_less_than_type_definition.proto deleted file mode 100644 index 3a028ff..0000000 --- a/com/coralogixapis/alerts/v3/alert_def_type_definition/ratio/logs_ratio_less_than_type_definition.proto +++ /dev/null @@ -1,22 +0,0 @@ -syntax = "proto3"; - -package com.coralogixapis.alerts.v3; - -import "google/protobuf/wrappers.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs_filter.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/ratio/logs_ratio_timewindow.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/undetected_values_management.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/ratio/logs_ratio_group_by_for.proto"; - -message LogsRatioLessThanTypeDefinition { - LogsFilter numerator_logs_filter = 1; - google.protobuf.StringValue numerator_alias =2; - LogsFilter denominator_logs_filter = 3; - google.protobuf.StringValue denominator_alias = 4; - google.protobuf.UInt32Value threshold = 5; - LogsRatioTimeWindow time_window = 6; - google.protobuf.BoolValue ignore_infinity = 7; - UndetectedValuesManagement undetected_values_management = 8; - repeated google.protobuf.StringValue notification_payload_filter = 9; - LogsRatioGroupByFor group_by_for = 10; -} \ No newline at end of file diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/ratio/logs_ratio_more_than_type_definition.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/ratio/logs_ratio_more_than_type_definition.proto deleted file mode 100644 index c2c77bc..0000000 --- a/com/coralogixapis/alerts/v3/alert_def_type_definition/ratio/logs_ratio_more_than_type_definition.proto +++ /dev/null @@ -1,20 +0,0 @@ -syntax = "proto3"; - -package com.coralogixapis.alerts.v3; - -import "google/protobuf/wrappers.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs_filter.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/ratio/logs_ratio_timewindow.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/ratio/logs_ratio_group_by_for.proto"; - -message LogsRatioMoreThanTypeDefinition { - LogsFilter numerator_logs_filter = 1; - google.protobuf.StringValue numerator_alias =2; - LogsFilter denominator_logs_filter = 3; - google.protobuf.StringValue denominator_alias = 4; - google.protobuf.UInt32Value threshold = 5; - LogsRatioTimeWindow time_window = 6; - google.protobuf.BoolValue ignore_infinity = 7; - repeated google.protobuf.StringValue notification_payload_filter =8; - LogsRatioGroupByFor group_by_for = 10; -} \ No newline at end of file diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/standard/logs_less_than_type_definition.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/standard/logs_less_than_type_definition.proto deleted file mode 100644 index f02961b..0000000 --- a/com/coralogixapis/alerts/v3/alert_def_type_definition/standard/logs_less_than_type_definition.proto +++ /dev/null @@ -1,16 +0,0 @@ -syntax = "proto3"; - -package com.coralogixapis.alerts.v3; - -import "google/protobuf/wrappers.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs_filter.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/undetected_values_management.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/standard/logs_timewindow.proto"; - -message LogsLessThanTypeDefinition { - LogsFilter logs_filter = 1; - google.protobuf.UInt32Value threshold = 2; - LogsTimeWindow time_window = 3; - UndetectedValuesManagement undetected_values_management = 4; - repeated google.protobuf.StringValue notification_payload_filter = 5; -} \ No newline at end of file diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/standard/logs_less_than_usual_type_definition.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/standard/logs_less_than_usual_type_definition.proto deleted file mode 100644 index 3c9c60d..0000000 --- a/com/coralogixapis/alerts/v3/alert_def_type_definition/standard/logs_less_than_usual_type_definition.proto +++ /dev/null @@ -1,11 +0,0 @@ -syntax = "proto3"; - -package com.coralogixapis.alerts.v3; - -import "google/protobuf/wrappers.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs_filter.proto"; - -message LogsLessThanAlertTypeDefinitionUsual { - LogsFilter logs_filter = 1; - repeated google.protobuf.StringValue notification_payload_filter = 2; -} \ No newline at end of file diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/standard/logs_more_than_type_definition.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/standard/logs_more_than_type_definition.proto deleted file mode 100644 index effa396..0000000 --- a/com/coralogixapis/alerts/v3/alert_def_type_definition/standard/logs_more_than_type_definition.proto +++ /dev/null @@ -1,19 +0,0 @@ -syntax = "proto3"; - -package com.coralogixapis.alerts.v3; - -import "google/protobuf/wrappers.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs_filter.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/standard/logs_timewindow.proto"; - -message LogsMoreThanTypeDefinition { - LogsFilter logs_filter = 1; - google.protobuf.UInt32Value threshold = 2; - LogsTimeWindow time_window = 3; - EvaluationWindow evaluation_window = 4; - repeated google.protobuf.StringValue notification_payload_filter = 5; -} -enum EvaluationWindow { - EVALUATION_WINDOW_ROLLING_OR_UNSPECIFIED = 0; - EVALUATION_WINDOW_DYNAMIC = 1; -} diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/standard/logs_more_than_usual_type_definition.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/standard/logs_more_than_usual_type_definition.proto deleted file mode 100644 index 6677050..0000000 --- a/com/coralogixapis/alerts/v3/alert_def_type_definition/standard/logs_more_than_usual_type_definition.proto +++ /dev/null @@ -1,14 +0,0 @@ -syntax = "proto3"; - -package com.coralogixapis.alerts.v3; - -import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs_filter.proto"; -import "google/protobuf/wrappers.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/standard/logs_timewindow.proto"; - -message LogsMoreThanUsualTypeDefinition { - LogsFilter logs_filter = 1; - google.protobuf.UInt32Value minimum_threshold = 2; - LogsTimeWindow time_window = 3; - repeated google.protobuf.StringValue notification_payload_filter = 4; -} \ No newline at end of file diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/time_relative/logs_time_relative_less_than_type_definition.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/time_relative/logs_time_relative_less_than_type_definition.proto deleted file mode 100644 index aa2e509..0000000 --- a/com/coralogixapis/alerts/v3/alert_def_type_definition/time_relative/logs_time_relative_less_than_type_definition.proto +++ /dev/null @@ -1,17 +0,0 @@ -syntax = "proto3"; - -package com.coralogixapis.alerts.v3; - -import "google/protobuf/wrappers.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs_filter.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/time_relative/logs_time_relative_compared_to.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/undetected_values_management.proto"; - -message LogsTimeRelativeLessThanTypeDefinition { - LogsFilter logs_filter = 1; - google.protobuf.UInt32Value threshold = 3; - LogsTimeRelativeComparedTo compared_to = 4; - google.protobuf.BoolValue ignore_infinity = 5; - optional UndetectedValuesManagement undetected_values_management = 6; - repeated google.protobuf.StringValue notification_payload_filter = 7; -} \ No newline at end of file diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/time_relative/logs_time_relative_more_than_type_definition.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/time_relative/logs_time_relative_more_than_type_definition.proto deleted file mode 100644 index bddabf4..0000000 --- a/com/coralogixapis/alerts/v3/alert_def_type_definition/time_relative/logs_time_relative_more_than_type_definition.proto +++ /dev/null @@ -1,15 +0,0 @@ -syntax = "proto3"; - -package com.coralogixapis.alerts.v3; - -import "google/protobuf/wrappers.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs_filter.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/time_relative/logs_time_relative_compared_to.proto"; - -message LogsTimeRelativeMoreThanTypeDefinition { - LogsFilter logs_filter = 1; - google.protobuf.UInt32Value threshold = 3; - LogsTimeRelativeComparedTo compared_to = 4; - google.protobuf.BoolValue ignore_infinity = 5; - repeated google.protobuf.StringValue notification_payload_filter = 6; -} \ No newline at end of file diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/tracing_query.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/common/tracing_filter.proto similarity index 85% rename from com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/tracing_query.proto rename to com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/common/tracing_filter.proto index b754a4e..f0914cc 100644 --- a/com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/tracing_query.proto +++ b/com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/common/tracing_filter.proto @@ -4,10 +4,13 @@ package com.coralogixapis.alerts.v3; import "google/protobuf/wrappers.proto"; -message TracingQuery { - oneof filters { - TracingLabelFilters tracing_label_filters = 1; +message TracingFilter { + oneof filter_type { + TracingSimpleFilter simple_filter = 1; } +} +message TracingSimpleFilter { + TracingLabelFilters tracing_label_filters = 1; google.protobuf.UInt32Value latency_threshold_ms = 2; } diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/threshold/tracing_threshold_condition_type.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/threshold/tracing_threshold_condition_type.proto new file mode 100644 index 0000000..7a5c479 --- /dev/null +++ b/com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/threshold/tracing_threshold_condition_type.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +package com.coralogixapis.alerts.v3; + + +enum TracingThresholdConditionType { + TRACING_THRESHOLD_CONDITION_TYPE_MORE_THAN_OR_UNSPECIFIED = 0; +} diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/tracing_timewindow.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/threshold/tracing_threshold_timewindow.proto similarity index 100% rename from com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/tracing_timewindow.proto rename to com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/threshold/tracing_threshold_timewindow.proto diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/tracing_immediate_type_definition.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/tracing_immediate_type_definition.proto index 9ad3b62..f928aad 100644 --- a/com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/tracing_immediate_type_definition.proto +++ b/com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/tracing_immediate_type_definition.proto @@ -3,9 +3,9 @@ syntax = "proto3"; package com.coralogixapis.alerts.v3; import "google/protobuf/wrappers.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/tracing_query.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/common/tracing_filter.proto"; -message TracingImmediateTypeDefinition { - TracingQuery tracing_query = 1; +message TracingImmediateType { + TracingFilter tracing_filter = 1; repeated google.protobuf.StringValue notification_payload_filter = 2; -} \ No newline at end of file +} diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/tracing_more_than_type_definition.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/tracing_more_than_type_definition.proto deleted file mode 100644 index b467cbb..0000000 --- a/com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/tracing_more_than_type_definition.proto +++ /dev/null @@ -1,14 +0,0 @@ -syntax = "proto3"; - -package com.coralogixapis.alerts.v3; - -import "google/protobuf/wrappers.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/tracing_timewindow.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/tracing_query.proto"; - -message TracingMoreThanTypeDefinition { - TracingQuery tracing_query = 1; - google.protobuf.UInt32Value span_amount = 2; - TracingTimeWindow time_window = 3; - repeated google.protobuf.StringValue notification_payload_filter = 4; -} \ No newline at end of file diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/tracing_threshold_type_definition.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/tracing_threshold_type_definition.proto new file mode 100644 index 0000000..a4ecd7b --- /dev/null +++ b/com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/tracing_threshold_type_definition.proto @@ -0,0 +1,23 @@ +syntax = "proto3"; + +package com.coralogixapis.alerts.v3; + +import "google/protobuf/wrappers.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/threshold/tracing_threshold_timewindow.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/common/tracing_filter.proto"; +import "com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/threshold/tracing_threshold_condition_type.proto"; + +message TracingThresholdType { + TracingFilter tracing_query = 1; + repeated TracingThresholdRule rules = 2; + repeated google.protobuf.StringValue notification_payload_filter = 3; +} +message TracingThresholdRule { + TracingThresholdCondition condition = 1; +} + +message TracingThresholdCondition { + google.protobuf.DoubleValue span_amount = 1; + TracingTimeWindow time_window = 2; + TracingThresholdConditionType condition_type = 3; +} diff --git a/com/coralogixapis/alerts/v3/alert_def_type_definition/unique_count/unique_count_type_definition.proto b/com/coralogixapis/alerts/v3/alert_def_type_definition/unique_count/unique_count_type_definition.proto deleted file mode 100644 index 95657b7..0000000 --- a/com/coralogixapis/alerts/v3/alert_def_type_definition/unique_count/unique_count_type_definition.proto +++ /dev/null @@ -1,16 +0,0 @@ -syntax = "proto3"; - -package com.coralogixapis.alerts.v3; - -import "google/protobuf/wrappers.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/logs_filter.proto"; -import "com/coralogixapis/alerts/v3/alert_def_type_definition/unique_count/unique_value_timewindow.proto"; - -message LogsUniqueCountTypeDefinition { - LogsFilter logs_filter = 1; - google.protobuf.StringValue unique_count_keypath = 3; - google.protobuf.Int64Value max_unique_count = 4; - LogsUniqueValueTimeWindow time_window = 5; - repeated google.protobuf.StringValue notification_payload_filter = 6; - optional google.protobuf.Int64Value max_unique_count_per_group_by_key = 7; -} \ No newline at end of file diff --git a/com/coralogixapis/alerts/v3/alert_defs_service.proto b/com/coralogixapis/alerts/v3/alert_defs_service.proto index c344206..44cf01a 100644 --- a/com/coralogixapis/alerts/v3/alert_defs_service.proto +++ b/com/coralogixapis/alerts/v3/alert_defs_service.proto @@ -197,4 +197,4 @@ message SetActiveRequest{ google.protobuf.BoolValue active = 2; } message SetActiveResponse { -} \ No newline at end of file +}