query_service.proto 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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/monitoring/v3/metric_service.proto";
  18. import "google/api/client.proto";
  19. option csharp_namespace = "Google.Cloud.Monitoring.V3";
  20. option go_package = "google.golang.org/genproto/googleapis/monitoring/v3;monitoring";
  21. option java_multiple_files = true;
  22. option java_outer_classname = "QueryServiceProto";
  23. option java_package = "com.google.monitoring.v3";
  24. option php_namespace = "Google\\Cloud\\Monitoring\\V3";
  25. option ruby_package = "Google::Cloud::Monitoring::V3";
  26. // The QueryService API is used to manage time series data in Stackdriver
  27. // Monitoring. Time series data is a collection of data points that describes
  28. // the time-varying values of a metric.
  29. service QueryService {
  30. option (google.api.default_host) = "monitoring.googleapis.com";
  31. option (google.api.oauth_scopes) =
  32. "https://www.googleapis.com/auth/cloud-platform,"
  33. "https://www.googleapis.com/auth/monitoring,"
  34. "https://www.googleapis.com/auth/monitoring.read";
  35. // Queries time series using Monitoring Query Language. This method does not require a Workspace.
  36. rpc QueryTimeSeries(QueryTimeSeriesRequest) returns (QueryTimeSeriesResponse) {
  37. option (google.api.http) = {
  38. post: "/v3/{name=projects/*}/timeSeries:query"
  39. body: "*"
  40. };
  41. }
  42. }