github.com/cloudwan/edgelq-sdk@v1.15.4/alerting/proto/v1/log_condition.proto (about) 1 syntax = "proto3"; 2 3 package ntt.alerting.v1; 4 5 import "edgelq-sdk/alerting/proto/v1/policy.proto"; 6 import "edgelq-sdk/alerting/proto/v1/specs.proto"; 7 import "google/api/resource.proto"; 8 import "google/protobuf/duration.proto"; 9 import "google/protobuf/field_mask.proto"; 10 import "goten-sdk/types/meta.proto"; 11 12 option go_package = "github.com/cloudwan/edgelq-sdk/alerting/resources/v1/log_condition;log_condition"; 13 option java_multiple_files = true; 14 option java_outer_classname = "LogConditionProto"; 15 option java_package = "com.ntt.alerting.pb.v1"; 16 17 // LogCondition describes when Alert based on Logs data should be raised. 18 message LogCondition { 19 option (google.api.resource) = { 20 type : "alerting.edgelq.com/LogCondition" 21 pattern : "projects/{project}/policies/{policy}/logConditions/" 22 "{log_condition}" 23 }; 24 25 // Name of LogCondition 26 // When creating a new instance, this field is optional and if not provided, 27 // it will be generated automatically. Last ID segment must conform to the 28 // following regex: [a-z][a-z0-9\\-]{0,28}[a-z0-9] 29 string name = 1; 30 31 // Metadata is an object with information like create, update and delete time 32 // (for async deleted resources), has user labels/annotations, sharding 33 // information, multi-region syncing information and may have non-schema 34 // owners (useful for taking ownership of resources belonging to lower level 35 // services by higher ones). 36 goten.types.Meta metadata = 2; 37 38 // Display Name 39 string display_name = 3; 40 41 // Long description 42 string description = 4; 43 44 // List of documents useful for troubleshooting and fixing alerts triggered 45 // by this condition. 46 repeated string supporting_docs = 5; 47 48 // Defines what query is being monitored, and what content must trigger an 49 // Alert. 50 LogCndSpec spec = 6; 51 52 // Internal field. 53 Internal internal = 7; 54 55 // template source for current LogCondition 56 TemplateSource template_source = 8; 57 58 // Internal data. 59 message Internal { 60 // Informs if log condition is processed at the backend or on edge. 61 PolicySpec.ProcessingLocation alerting_location = 1; 62 } 63 64 // TemplateSource describes where condition is coming from originally. 65 message TemplateSource { 66 // Reference to template 67 string template = 1; 68 69 // List of modified fields compared to the template. 70 // It is a mask of Spec object. 71 google.protobuf.FieldMask updated_fields = 2; 72 } 73 }