xref: /aosp_15_r20/external/googleapis/google/monitoring/v3/query_service.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1// Copyright 2023 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
15syntax = "proto3";
16
17package google.monitoring.v3;
18
19import "google/api/annotations.proto";
20import "google/api/client.proto";
21import "google/monitoring/v3/metric_service.proto";
22
23option csharp_namespace = "Google.Cloud.Monitoring.V3";
24option go_package = "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb;monitoringpb";
25option java_multiple_files = true;
26option java_outer_classname = "QueryServiceProto";
27option java_package = "com.google.monitoring.v3";
28option php_namespace = "Google\\Cloud\\Monitoring\\V3";
29option ruby_package = "Google::Cloud::Monitoring::V3";
30
31// The QueryService API is used to manage time series data in Cloud
32// Monitoring. Time series data is a collection of data points that describes
33// the time-varying values of a metric.
34service QueryService {
35  option (google.api.default_host) = "monitoring.googleapis.com";
36  option (google.api.oauth_scopes) =
37      "https://www.googleapis.com/auth/cloud-platform,"
38      "https://www.googleapis.com/auth/monitoring,"
39      "https://www.googleapis.com/auth/monitoring.read";
40
41  // Queries time series using Monitoring Query Language.
42  rpc QueryTimeSeries(QueryTimeSeriesRequest)
43      returns (QueryTimeSeriesResponse) {
44    option (google.api.http) = {
45      post: "/v3/{name=projects/*}/timeSeries:query"
46      body: "*"
47    };
48  }
49}
50