123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474 |
- syntax = "proto3";
- package google.monitoring.v3;
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/monitoring/v3/common.proto";
- import "google/monitoring/v3/mutation_record.proto";
- import "google/protobuf/duration.proto";
- import "google/protobuf/wrappers.proto";
- import "google/rpc/status.proto";
- option csharp_namespace = "Google.Cloud.Monitoring.V3";
- option go_package = "google.golang.org/genproto/googleapis/monitoring/v3;monitoring";
- option java_multiple_files = true;
- option java_outer_classname = "AlertProto";
- option java_package = "com.google.monitoring.v3";
- option php_namespace = "Google\\Cloud\\Monitoring\\V3";
- option ruby_package = "Google::Cloud::Monitoring::V3";
- message AlertPolicy {
- option (google.api.resource) = {
- type: "monitoring.googleapis.com/AlertPolicy"
- pattern: "projects/{project}/alertPolicies/{alert_policy}"
- pattern: "organizations/{organization}/alertPolicies/{alert_policy}"
- pattern: "folders/{folder}/alertPolicies/{alert_policy}"
- pattern: "*"
- };
-
-
- message Documentation {
-
-
-
-
-
- string content = 1;
-
-
-
- string mime_type = 2;
- }
-
-
-
- message Condition {
- option (google.api.resource) = {
- type: "monitoring.googleapis.com/AlertPolicyCondition"
- pattern: "projects/{project}/alertPolicies/{alert_policy}/conditions/{condition}"
- pattern: "organizations/{organization}/alertPolicies/{alert_policy}/conditions/{condition}"
- pattern: "folders/{folder}/alertPolicies/{alert_policy}/conditions/{condition}"
- pattern: "*"
- };
-
-
- message Trigger {
-
- oneof type {
-
-
- int32 count = 1;
-
-
- double percent = 2;
- }
- }
-
-
-
- enum EvaluationMissingData {
-
-
- EVALUATION_MISSING_DATA_UNSPECIFIED = 0;
-
-
- EVALUATION_MISSING_DATA_INACTIVE = 1;
-
-
- EVALUATION_MISSING_DATA_ACTIVE = 2;
-
- EVALUATION_MISSING_DATA_NO_OP = 3;
- }
-
-
- message MetricThreshold {
-
-
-
-
-
-
-
-
-
-
- string filter = 2 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
-
-
-
-
-
-
- repeated Aggregation aggregations = 8;
-
-
-
-
-
-
-
-
-
- string denominator_filter = 9;
-
-
-
-
-
-
-
-
-
-
- repeated Aggregation denominator_aggregations = 10;
-
-
-
-
-
-
- ComparisonType comparison = 4;
-
- double threshold_value = 5;
-
-
-
-
-
-
-
-
-
-
- google.protobuf.Duration duration = 6;
-
-
-
-
-
-
- Trigger trigger = 7;
-
-
- EvaluationMissingData evaluation_missing_data = 11;
- }
-
-
-
-
-
- message MetricAbsence {
-
-
-
-
-
-
-
-
-
-
- string filter = 1 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
-
-
-
-
-
-
- repeated Aggregation aggregations = 5;
-
-
-
-
-
-
-
- google.protobuf.Duration duration = 2;
-
-
-
-
- Trigger trigger = 3;
- }
-
-
-
-
- message LogMatch {
-
-
-
- string filter = 1 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
-
-
-
-
-
-
- map<string, string> label_extractors = 2;
- }
-
-
- message MonitoringQueryLanguageCondition {
-
-
- string query = 1;
-
-
-
-
-
-
-
-
-
-
- google.protobuf.Duration duration = 2;
-
-
-
-
-
-
- Trigger trigger = 3;
-
-
- EvaluationMissingData evaluation_missing_data = 4;
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- string name = 12;
-
-
-
- string display_name = 6;
-
- oneof condition {
-
- MetricThreshold condition_threshold = 1;
-
-
- MetricAbsence condition_absent = 2;
-
-
- LogMatch condition_matched_log = 20;
-
-
- MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
- }
- }
-
- enum ConditionCombinerType {
-
- COMBINE_UNSPECIFIED = 0;
-
-
-
-
- AND = 1;
-
-
- OR = 2;
-
-
-
- AND_WITH_MATCHING_RESOURCE = 3;
- }
-
-
- message AlertStrategy {
-
-
- message NotificationRateLimit {
-
- google.protobuf.Duration period = 1;
- }
-
-
-
- NotificationRateLimit notification_rate_limit = 1;
-
-
- google.protobuf.Duration auto_close = 3;
- }
-
-
-
-
-
-
-
-
-
-
- string name = 1;
-
-
-
-
- string display_name = 2;
-
-
-
-
-
- Documentation documentation = 13;
-
-
-
-
-
-
-
- map<string, string> user_labels = 16;
-
-
-
-
-
-
- repeated Condition conditions = 12;
-
-
-
-
- ConditionCombinerType combiner = 6;
-
-
-
-
-
- google.protobuf.BoolValue enabled = 17;
-
-
- google.rpc.Status validity = 18;
-
-
-
-
-
-
-
-
-
-
- repeated string notification_channels = 14;
-
-
- MutationRecord creation_record = 10;
-
-
- MutationRecord mutation_record = 11;
-
- AlertStrategy alert_strategy = 21;
- }
|