@@ -107,6 +107,8 @@ service MetricService {
107107 }
108108
109109 // Creates a new metric descriptor.
110+ // The creation is executed asynchronously and callers may check the returned
111+ // operation to track its progress.
110112 // User-created metric descriptors define
111113 // [custom metrics](https://cloud.google.com/monitoring/custom-metrics).
112114 rpc CreateMetricDescriptor (CreateMetricDescriptorRequest ) returns (google.api.MetricDescriptor ) {
@@ -152,6 +154,23 @@ service MetricService {
152154 };
153155 option (google.api.method_signature ) = "name,time_series" ;
154156 }
157+
158+ // Creates or adds data to one or more service time series. A service time
159+ // series is a time series for a metric from a Google Cloud service. The
160+ // response is empty if all time series in the request were written. If any
161+ // time series could not be written, a corresponding failure message is
162+ // included in the error response. This endpoint rejects writes to
163+ // user-defined metrics.
164+ // This method is only for use by Google Cloud services. Use
165+ // [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries]
166+ // instead.
167+ rpc CreateServiceTimeSeries (CreateTimeSeriesRequest ) returns (google.protobuf.Empty ) {
168+ option (google.api.http ) = {
169+ post : "/v3/{name=projects/*}/timeSeries:createService"
170+ body : "*"
171+ };
172+ option (google.api.method_signature ) = "name,time_series" ;
173+ }
155174}
156175
157176// The `ListMonitoredResourceDescriptors` request.
0 commit comments