-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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 <[email protected]> Co-authored-by: Alex-Tara <[email protected]>
- Loading branch information
1 parent
c0b8998
commit 832258e
Showing
56 changed files
with
355 additions
and
370 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ enum AlertDefPriority { | |
ALERT_DEF_PRIORITY_P3 = 2; | ||
ALERT_DEF_PRIORITY_P2 = 3; | ||
ALERT_DEF_PRIORITY_P1 = 4; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,4 +23,4 @@ message TimeOfDay { | |
int32 hours = 1; | ||
// Minutes of hour of day. Must be from 0 to 59. | ||
int32 minutes = 2; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
com/coralogixapis/alerts/v3/alert_def_type_definition/arithmetic_operator.proto
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...dard/logs_immediate_type_definition.proto → ...logs/logs_immediate_type_definition.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...ralogixapis/alerts/v3/alert_def_type_definition/logs/logs_new_value_type_definition.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
31 changes: 31 additions & 0 deletions
31
...xapis/alerts/v3/alert_def_type_definition/logs/logs_ratio_threshold_type_definition.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
25 changes: 25 additions & 0 deletions
25
...ralogixapis/alerts/v3/alert_def_type_definition/logs/logs_threshold_type_definition.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
26 changes: 26 additions & 0 deletions
26
...erts/v3/alert_def_type_definition/logs/logs_time_relative_threshold_type_definition.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
24 changes: 24 additions & 0 deletions
24
...ogixapis/alerts/v3/alert_def_type_definition/logs/logs_unique_count_type_definition.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
23 changes: 23 additions & 0 deletions
23
...coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_unusual_type_definition.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
...alogixapis/alerts/v3/alert_def_type_definition/logs/ratio/logs_ratio_condition_type.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
...is/alerts/v3/alert_def_type_definition/logs/threshold/logs_threshold_condition_type.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.