query_service.proto 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // Copyright 2021 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.monitoring.v3;
  16. import "google/api/annotations.proto";
  17. import "google/api/label.proto";
  18. import "google/monitoring/v3/metric.proto";
  19. import "google/monitoring/v3/metric_service.proto";
  20. import "google/api/client.proto";
  21. option csharp_namespace = "Google.Cloud.Monitoring.V3";
  22. option go_package = "google.golang.org/genproto/googleapis/monitoring/v3;monitoring";
  23. option java_multiple_files = true;
  24. option java_outer_classname = "QueryServiceProto";
  25. option java_package = "com.google.monitoring.v3";
  26. option php_namespace = "Google\\Cloud\\Monitoring\\V3";
  27. option ruby_package = "Google::Cloud::Monitoring::V3";
  28. // The QueryService API is used to manage time series data in Stackdriver
  29. // Monitoring. Time series data is a collection of data points that describes
  30. // the time-varying values of a metric.
  31. service QueryService {
  32. option (google.api.default_host) = "monitoring.googleapis.com";
  33. option (google.api.oauth_scopes) =
  34. "https://www.googleapis.com/auth/cloud-platform,"
  35. "https://www.googleapis.com/auth/monitoring,"
  36. "https://www.googleapis.com/auth/monitoring.read";
  37. // Queries time series using Monitoring Query Language. This method does not require a Workspace.
  38. rpc QueryTimeSeries(QueryTimeSeriesRequest) returns (QueryTimeSeriesResponse) {
  39. option (google.api.http) = {
  40. post: "/v3/{name=projects/*}/timeSeries:query"
  41. body: "*"
  42. };
  43. }
  44. }