github.com/cloudwan/edgelq-sdk@v1.15.4/monitoring/proto/v3/metric_descriptor_custom.proto (about) 1 syntax = "proto3"; 2 3 package ntt.monitoring.v3; 4 5 import "edgelq-sdk/monitoring/proto/v3/metric_descriptor.proto"; 6 import "google/protobuf/field_mask.proto"; 7 import "goten-sdk/types/view.proto"; 8 9 option go_package = "github.com/cloudwan/edgelq-sdk/monitoring/client/v3/metric_descriptor;metric_descriptor_client"; 10 option java_multiple_files = false; 11 option java_outer_classname = "MetricDescriptorCustomProto"; 12 option java_package = "com.ntt.monitoring.pb.v3"; 13 14 // Request message for method 15 // [ListMetricDescriptors][ntt.monitoring.v3.ListMetricDescriptors] 16 message ListMetricDescriptorsRequest { 17 // The project on which to execute the request. The format is 18 // `"projects/{project_id_or_number}"`. 19 string parent = 5; 20 21 // If this field is empty, all custom and 22 // system-defined metric descriptors are returned. 23 // Otherwise, the [filter](/monitoring/api/v3/filters) 24 // specifies which metric descriptors are to be 25 // returned. For example, the following filter matches all 26 // [custom metrics](/monitoring/custom-metrics): 27 // 28 // metric.type = starts_with("custom.googleapis.com/") 29 string filter = 2; 30 31 // A positive number that is the maximum number of results to return. 32 int32 page_size = 3; 33 34 // If this field is not empty then it must contain the `nextPageToken` value 35 // returned by a previous call to this method. Using this field causes the 36 // method to return additional results from the previous method call. 37 string page_token = 4; 38 39 // Order By - 40 // https://cloud.google.com/apis/design/design_patterns#list_pagination 41 string order_by = 666; 42 43 // A list of extra fields to be obtained for each response item on top of 44 // fields defined by request field view 45 google.protobuf.FieldMask field_mask = 6; 46 47 // View defines list of standard response fields present in response items. 48 // Additional fields can be amended by request field field_mask 49 goten.types.View view = 7; 50 51 // Indicates if list response should contain total count and offset (fields 52 // current_offset and total_results_count). 53 bool include_paging_info = 8; 54 } 55 56 // Response message for method 57 // [ListMetricDescriptors][ntt.monitoring.v3.ListMetricDescriptors] 58 message ListMetricDescriptorsResponse { 59 // The metric descriptors that are available to the project 60 // and that match the value of `filter`, if present. 61 repeated MetricDescriptor metric_descriptors = 1; 62 63 // If there are more results than have been returned, then this field is set 64 // to a non-empty value. To see the additional results, 65 // use that value as `pageToken` in the next call to this method. 66 string next_page_token = 2; 67 68 string prev_page_token = 666; 69 70 // Current offset from the first page (0 if no page tokens were given or 71 // paging info was not requested). Page index can be computed from offset and 72 // limit provided in a request. 73 int32 current_offset = 5; 74 75 // Number of total MetricDescriptors across all pages or 0, if there are no 76 // items or paging info was not requested. 77 int32 total_results_count = 6; 78 } 79 80 // Request message for method 81 // [GetMetricDescriptor][ntt.monitoring.v3.GetMetricDescriptor] 82 message GetMetricDescriptorRequest { 83 // The metric descriptor on which to execute the request. The format is 84 // `"projects/{project_id_or_number}/metricDescriptors/{metric_id}"`. 85 // An example value of `{metric_id}` is 86 // `"compute.googleapis.com/instance/disk/read_bytes_count"`. 87 string name = 3; 88 89 // A list of extra fields to be obtained for each response item on top of 90 // fields defined by request field view 91 google.protobuf.FieldMask field_mask = 4; 92 93 // View defines list of standard response fields present in response items. 94 // Additional fields can be amended by request field field_mask 95 goten.types.View view = 5; 96 } 97 98 // Request message for method 99 // [CreateMetricDescriptor][ntt.monitoring.v3.CreateMetricDescriptor] 100 message CreateMetricDescriptorRequest { 101 // The project on which to execute the request. The format is 102 // `"projects/{project_id_or_number}"`. 103 string parent = 3; 104 105 // The new [custom metric](/monitoring/custom-metrics) 106 // descriptor. 107 MetricDescriptor metric_descriptor = 2; 108 109 // Optional masking applied to response object to reduce message response 110 // size. 111 ResponseMask response_mask = 4; 112 113 // ResponseMask allows client to reduce response message size. 114 message ResponseMask { 115 oneof masking { 116 // If this flag has value true, then response will contain just empty 117 // resource without any fields populated. 118 bool skip_entire_response_body = 1; 119 120 // If this field is populated, then resource in response will contain only 121 // specific fields. 122 google.protobuf.FieldMask body_mask = 2; 123 } 124 } 125 } 126 127 // Request message for method 128 // [UpdateMetricDescriptor][ntt.monitoring.v3.UpdateMetricDescriptor] 129 message UpdateMetricDescriptorRequest { 130 // MetricDescriptor resource body 131 MetricDescriptor metric_descriptor = 2; 132 133 // FieldMask applied to request - change will be applied only for fields in 134 // the mask 135 google.protobuf.FieldMask update_mask = 3; 136 137 // Conditional update applied to request if update should be executed only for 138 // specific resource state. If this field is populated, then server will fetch 139 // existing resource, compare with the one stored in the cas field (after 140 // applying field mask) and proceed with update only and only if they match. 141 // Otherwise RPC error Aborted will be returned. 142 CAS cas = 4; 143 144 // If set to true, and the resource is not found, 145 // a new resource will be created. In this situation, 146 // 'field_mask' is ignored. 147 // 148 // https://google.aip.dev/134#create-or-update 149 bool allow_missing = 5; 150 151 ResponseMask response_mask = 6; 152 153 // CAS - Compare and Swap. This object is used if user wants to make update 154 // conditional based upon previous resource version. 155 message CAS { 156 // Conditional desired state of a resource before update. 157 MetricDescriptor conditional_state = 1; 158 159 // Field paths from conditional state of resource server should check and 160 // compare. 161 google.protobuf.FieldMask field_mask = 2; 162 } 163 164 // ResponseMask allows client to reduce response message size. 165 message ResponseMask { 166 oneof masking { 167 // If this flag has value true, then response will contain just empty 168 // resource without any fields populated. Field body_mask is ignored if 169 // set. 170 bool skip_entire_response_body = 1; 171 172 // Include all fields that were actually updated during processing. Note 173 // this may be larger than update mask if some fields were computed 174 // additionally. Name is added as well. 175 bool updated_fields_only = 2; 176 177 // If this field is populated, then resource in response will contain only 178 // specific fields. If skip_entire_response_body is true, this field is 179 // ignored. 180 google.protobuf.FieldMask body_mask = 3; 181 } 182 } 183 } 184 185 // Request message for method 186 // [DeleteMetricDescriptor][ntt.monitoring.v3.DeleteMetricDescriptor] 187 message DeleteMetricDescriptorRequest { 188 // The metric descriptor on which to execute the request. The format is 189 // `"projects/{project_id_or_number}/metricDescriptors/{metric_id}"`. 190 // An example of `{metric_id}` is: 191 // `"custom.googleapis.com/my_test_metric"`. 192 string name = 3; 193 194 // If true, call will not return NotFound error if deleted resource does not 195 // exist. 196 bool allow_missing = 4; 197 }