github.com/cloudwan/edgelq-sdk@v1.15.4/monitoring/proto/v4/metric_descriptor_custom.proto (about) 1 syntax = "proto3"; 2 3 package ntt.monitoring.v4; 4 5 import "edgelq-sdk/monitoring/proto/v4/metric_descriptor.proto"; 6 import "edgelq-sdk/monitoring/proto/v4/metric_descriptor_change.proto"; 7 import "google/protobuf/field_mask.proto"; 8 import "goten-sdk/types/view.proto"; 9 10 option go_package = "github.com/cloudwan/edgelq-sdk/monitoring/client/v4/metric_descriptor;metric_descriptor_client"; 11 option java_multiple_files = false; 12 option java_outer_classname = "MetricDescriptorCustomProto"; 13 option java_package = "com.ntt.monitoring.pb.v4"; 14 15 // Request message for method 16 // [GetMetricDescriptor][ntt.monitoring.v4.GetMetricDescriptor] 17 message GetMetricDescriptorRequest { 18 // Name of ntt.monitoring.v4.MetricDescriptor 19 string name = 3; 20 21 // A list of extra fields to be obtained for each response item on top of 22 // fields defined by request field view 23 google.protobuf.FieldMask field_mask = 4; 24 25 // View defines list of standard response fields present in response items. 26 // Additional fields can be amended by request field field_mask 27 goten.types.View view = 5; 28 } 29 30 // Request message for method 31 // [CreateMetricDescriptor][ntt.monitoring.v4.CreateMetricDescriptor] 32 message CreateMetricDescriptorRequest { 33 // Parent name of ntt.monitoring.v4.MetricDescriptor 34 string parent = 3; 35 36 // MetricDescriptor resource body 37 MetricDescriptor metric_descriptor = 2; 38 39 // Optional masking applied to response object to reduce message response 40 // size. 41 ResponseMask response_mask = 4; 42 43 // ResponseMask allows client to reduce response message size. 44 message ResponseMask { 45 oneof masking { 46 // If this flag has value true, then response will contain just empty 47 // resource without any fields populated. 48 bool skip_entire_response_body = 1; 49 50 // If this field is populated, then resource in response will contain only 51 // specific fields. 52 google.protobuf.FieldMask body_mask = 2; 53 } 54 } 55 } 56 57 // Request message for method 58 // [UpdateMetricDescriptor][ntt.monitoring.v4.UpdateMetricDescriptor] 59 message UpdateMetricDescriptorRequest { 60 // MetricDescriptor resource body 61 MetricDescriptor metric_descriptor = 2; 62 63 // FieldMask applied to request - change will be applied only for fields in 64 // the mask 65 google.protobuf.FieldMask update_mask = 3; 66 67 // Conditional update applied to request if update should be executed only for 68 // specific resource state. If this field is populated, then server will fetch 69 // existing resource, compare with the one stored in the cas field (after 70 // applying field mask) and proceed with update only and only if they match. 71 // Otherwise RPC error Aborted will be returned. 72 CAS cas = 4; 73 74 // If set to true, and the resource is not found, 75 // a new resource will be created. In this situation, 76 // 'field_mask' is ignored. 77 // 78 // https://google.aip.dev/134#create-or-update 79 bool allow_missing = 5; 80 81 ResponseMask response_mask = 6; 82 83 // CAS - Compare and Swap. This object is used if user wants to make update 84 // conditional based upon previous resource version. 85 message CAS { 86 // Conditional desired state of a resource before update. 87 MetricDescriptor conditional_state = 1; 88 89 // Field paths from conditional state of resource server should check and 90 // compare. 91 google.protobuf.FieldMask field_mask = 2; 92 } 93 94 // ResponseMask allows client to reduce response message size. 95 message ResponseMask { 96 oneof masking { 97 // If this flag has value true, then response will contain just empty 98 // resource without any fields populated. Field body_mask is ignored if 99 // set. 100 bool skip_entire_response_body = 1; 101 102 // Include all fields that were actually updated during processing. Note 103 // this may be larger than update mask if some fields were computed 104 // additionally. Name is added as well. 105 bool updated_fields_only = 2; 106 107 // If this field is populated, then resource in response will contain only 108 // specific fields. If skip_entire_response_body is true, this field is 109 // ignored. 110 google.protobuf.FieldMask body_mask = 3; 111 } 112 } 113 } 114 115 // Request message for method 116 // [DeleteMetricDescriptor][ntt.monitoring.v4.DeleteMetricDescriptor] 117 message DeleteMetricDescriptorRequest { 118 // Name of ntt.monitoring.v4.MetricDescriptor 119 string name = 3; 120 121 // If true, call will not return NotFound error if deleted resource does not 122 // exist. 123 bool allow_missing = 4; 124 } 125 126 // Request message for method 127 // [ListMetricDescriptors][ntt.monitoring.v4.ListMetricDescriptors] 128 message ListMetricDescriptorsRequest { 129 // Parent name of ntt.monitoring.v4.MetricDescriptor 130 string parent = 5; 131 132 // Requested page size. Server may return fewer MetricDescriptors than 133 // requested. If unspecified, server will pick an appropriate default. 134 int32 page_size = 3; 135 136 // A token identifying a page of results the server should return. 137 // Typically, this is the value of 138 // [ListMetricDescriptorsResponse.next_page_token][ntt.monitoring.v4.ListMetricDescriptorsResponse.next_page_token] 139 string page_token = 4; 140 141 // Order By - 142 // https://cloud.google.com/apis/design/design_patterns#list_pagination list 143 // of field path with order directive, either 'asc' or 'desc'. If direction is 144 // not provided, 'asc' is assumed. e.g. "state.nested_field asc, 145 // state.something.else desc, theme" 146 string order_by = 666; 147 148 // Filter - filter results by field criteria. Simplified SQL-like syntax with 149 // following operators: 150 // <=, >=, =, !=, <, >, LIKE, CONTAINS (aliases CONTAIN, HAS, HAVE), IN, IS 151 // [NOT] NULL | NaN . Combine conditions with OR | AND example: 'meta.labels 152 // CONTAINS "severity:important" OR (state.last_error_time > 153 // "2018-11-15T10:00:00Z" AND state.status = "ERROR")' 154 string filter = 2; 155 156 // A list of extra fields to be obtained for each response item on top of 157 // fields defined by request field view 158 google.protobuf.FieldMask field_mask = 6; 159 160 // View defines list of standard response fields present in response items. 161 // Additional fields can be amended by request field field_mask 162 goten.types.View view = 7; 163 164 // Indicates if list response should contain total count and offset (fields 165 // current_offset and total_results_count). 166 bool include_paging_info = 8; 167 } 168 169 // Request message for method 170 // [ListMetricDescriptors][ntt.monitoring.v4.ListMetricDescriptors] 171 message ListMetricDescriptorsResponse { 172 // The list of MetricDescriptors 173 repeated MetricDescriptor metric_descriptors = 1; 174 175 // A token to retrieve previous page of results. Pass this value in the 176 // [ListMetricDescriptorsRequest.page_token][ntt.monitoring.v4.ListMetricDescriptorsRequest.page_token] 177 string prev_page_token = 666; 178 179 // A token to retrieve next page of results. Pass this value in the 180 // [ListMetricDescriptorsRequest.page_token][ntt.monitoring.v4.ListMetricDescriptorsRequest.page_token] 181 string next_page_token = 2; 182 183 // Current offset from the first page or 0 if no page tokens were given, 184 // paging info was not requested or there was an error while trying to get 185 // it). Page index can be computed from offset and limit provided in a 186 // request. 187 int32 current_offset = 5; 188 189 // Number of total MetricDescriptors across all pages or 0, if there are no 190 // items, paging info was not requested or there was an error while trying to 191 // get it. 192 int32 total_results_count = 6; 193 }