github.com/cloudwan/edgelq-sdk@v1.15.4/monitoring/proto/v4/time_series_collection_rule.proto (about) 1 syntax = "proto3"; 2 3 package ntt.monitoring.v4; 4 5 import "edgelq-sdk/monitoring/proto/v4/common.proto"; 6 import "google/api/resource.proto"; 7 import "goten-sdk/types/meta.proto"; 8 9 option go_package = "github.com/cloudwan/edgelq-sdk/monitoring/resources/v4/time_series_collection_rule;time_series_collection_rule"; 10 option java_multiple_files = true; 11 option java_outer_classname = "TimeSeriesCollectionRuleProto"; 12 option java_package = "com.ntt.monitoring.pb.v4"; 13 14 // TimeSeriesCollectionRule Resource is a persistent WatchTimeSeries 15 // session registered on the server side. It collects time series according 16 // to the specified filter/aggregation, and within a project where rule is. 17 // Sink resource can be from different project. 18 message TimeSeriesCollectionRule { 19 option (google.api.resource) = { 20 type : "monitoring.edgelq.com/TimeSeriesCollectionRule" 21 pattern : "projects/{project}/timeSeriesCollectionRules/" 22 "{time_series_collection_rule}" 23 }; 24 25 // Name of TimeSeriesCollectionRule 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 // Optional display name 39 string display_name = 7; 40 41 // Time series filter to apply. 42 string filter = 3; 43 44 // Instructs how to transform individual time series (aligner) and combine 45 // them together (reducer, group by fields). 46 Aggregation aggregation = 4; 47 48 // Allocated persistent rule IDs for underlying watch. 49 repeated string rule_ids = 5; 50 51 // Optional sink where data is automatically forwarder. 52 // It can be nil, if intention for this collection rule is to aid in pulling 53 // via time series watch feature (TODO: Not implemented, rule without sink has 54 // no effect). 55 string sink = 6; 56 }