github.com/cloudwan/edgelq-sdk@v1.15.4/monitoring/proto/v3/time_serie_custom.proto (about) 1 syntax = "proto3"; 2 3 package ntt.monitoring.v3; 4 5 import "edgelq-sdk/common/rpc/status.proto"; 6 import "edgelq-sdk/monitoring/proto/v3/common.proto"; 7 import "edgelq-sdk/monitoring/proto/v3/time_serie.proto"; 8 import "google/protobuf/field_mask.proto"; 9 10 option go_package = "github.com/cloudwan/edgelq-sdk/monitoring/client/v3/time_serie;time_serie_client"; 11 option java_multiple_files = false; 12 option java_outer_classname = "TimeSerieCustomProto"; 13 option java_package = "com.ntt.monitoring.pb.v3"; 14 15 // Request message for method [ListTimeSeries][ntt.monitoring.v3.ListTimeSeries] 16 message ListTimeSeriesRequest { 17 // The project on which to execute the request. The format is 18 // "projects/{project_id_or_number}". 19 string parent = 10; 20 21 // A monitoring filter that specifies which time 22 // series should be returned. The filter must specify a single metric type, 23 // and can additionally specify metric labels and other information. For 24 // example: 25 // 26 // metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND 27 // metric.label.instance_name = "my-instance-name" 28 string filter = 2; 29 30 // The time interval for which results should be returned. Only time series 31 // that contain data points in the specified interval are included 32 // in the response. 33 TimeInterval interval = 4; 34 35 // By default, the raw time series data is returned. 36 // Use this field to combine multiple time series for different 37 // views of the data. 38 Aggregation aggregation = 5; 39 40 // Picks paginated time series according to pre-defined (in metric descriptor) 41 // view and function. Cannot be used with aggregation, because pagination 42 // view and function determines time series transformation and sorting. 43 Pagination pagination = 3; 44 45 // Specifies which information is returned about the time series. 46 TimeSeriesView view = 7; 47 48 // view list mask. Optimize network usage and limit returned header fields to 49 // a required subset. example fields in field mask: 50 // - "key": for later caching, 51 // - "resource.labels.project_id", "resource.labels.instance_name", etc - 52 // specific labels only 53 // - "resource", "metric": all resource labels, reduced_labels and type 54 // NOTE: points are added implicitly 55 google.protobuf.FieldMask field_mask = 12; 56 57 // A positive number that is the maximum number of Points to return. If 58 // `points_cap` is empty or more than 100,000 results, the effective 59 // `points_cap` is 100,000 results. If `view` is set to `HEADERS`, this is 60 // the maximum number of `TimeSeries` returned. 61 int32 points_cap = 8; 62 63 // If this field is not empty then it must contain the `continuation_token` 64 // value returned by a previous call to this method. Using this field causes 65 // the method to return additional results from the previous method call. 66 string continuation_token = 9; 67 68 reserved 6; 69 } 70 71 // Response message for method 72 // [ListTimeSeries][ntt.monitoring.v3.ListTimeSeries] 73 message ListTimeSeriesResponse { 74 // One or more time series that match the filter included in the request. 75 repeated TimeSerie time_series = 1; 76 77 // If there are more results than have been returned, then this field is set 78 // to a non-empty value. To see the additional results, 79 // use that value as `continuation_token` in the next call to this method. 80 string continuation_token = 2; 81 82 // Special time series with total amount of records available for pagination 83 // by given time series key. Metric/Resource labels will contain "common" 84 // values shared by all ranked time series. ValueType will be always INT64 and 85 // metricKind GAUGE. In a sense, this time series is execution of 86 // ListTimeSeries with Aggregation = {groupByFields: [<viewPaginatedLabels>], 87 // REDUCER: REDUCE_COUNT} This field is only populated for paginated queries 88 // (pagination in ListTimeSeries is specified). 89 repeated TimeSerie total_point_counters = 4; 90 91 // ErrorDetails is used when one of the queried regions fails to produce 92 // results. It is used in execution_errors field (see subfield 93 // ntt.rpc.Status.details). 94 message ErrorDetails { 95 // region id which failed to give results. 96 string region_id = 1; 97 } 98 } 99 100 // Request message for method 101 // [CreateTimeSeries][ntt.monitoring.v3.CreateTimeSeries] 102 message CreateTimeSeriesRequest { 103 // The project on which to execute the request. The format is 104 // `"projects/{project_id_or_number}"`. 105 string parent = 3; 106 107 // The new data to be added to a list of time series. 108 // Adds at most one data point to each of several time series. The new data 109 // point must be more recent than any other point in its time series. Each 110 // `TimeSeries` value must fully specify a unique time series by supplying 111 // all label values for the metric and the monitored resource. 112 repeated TimeSerie time_series = 2; 113 } 114 115 // Response message for method 116 // [CreateTimeSeries][ntt.monitoring.v3.CreateTimeSeries] 117 message CreateTimeSeriesResponse { 118 // Time Serie keys indexed by Create position - present only when given 119 // TimeSerie didn't use Key field 120 map<uint32, bytes> time_serie_keys = 11; 121 122 // Time series that failed to be created 123 repeated CreateTimeSeriesError failed_time_series = 50; 124 } 125 126 // Describes the result of a failed request to write data to a time series. 127 message CreateTimeSeriesError { 128 // The time series, including the `Metric`, `MonitoredResource`, 129 // and `Point`s (including timestamp and value) that resulted 130 // in the error. This field provides all of the context that 131 // would be needed to retry the operation. 132 TimeSerie time_series = 1; 133 134 // The status of the requested write operation. 135 ntt.rpc.Status status = 2; 136 }