1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/monitoring/dashboard/v1/metrics.proto 18 19 package com.google.monitoring.dashboard.v1; 20 21 public interface TimeSeriesQueryOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.TimeSeriesQuery) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * Filter parameters to fetch time series. 31 * </pre> 32 * 33 * <code>.google.monitoring.dashboard.v1.TimeSeriesFilter time_series_filter = 1;</code> 34 * 35 * @return Whether the timeSeriesFilter field is set. 36 */ hasTimeSeriesFilter()37 boolean hasTimeSeriesFilter(); 38 /** 39 * 40 * 41 * <pre> 42 * Filter parameters to fetch time series. 43 * </pre> 44 * 45 * <code>.google.monitoring.dashboard.v1.TimeSeriesFilter time_series_filter = 1;</code> 46 * 47 * @return The timeSeriesFilter. 48 */ getTimeSeriesFilter()49 com.google.monitoring.dashboard.v1.TimeSeriesFilter getTimeSeriesFilter(); 50 /** 51 * 52 * 53 * <pre> 54 * Filter parameters to fetch time series. 55 * </pre> 56 * 57 * <code>.google.monitoring.dashboard.v1.TimeSeriesFilter time_series_filter = 1;</code> 58 */ getTimeSeriesFilterOrBuilder()59 com.google.monitoring.dashboard.v1.TimeSeriesFilterOrBuilder getTimeSeriesFilterOrBuilder(); 60 61 /** 62 * 63 * 64 * <pre> 65 * Parameters to fetch a ratio between two time series filters. 66 * </pre> 67 * 68 * <code>.google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; 69 * </code> 70 * 71 * @return Whether the timeSeriesFilterRatio field is set. 72 */ hasTimeSeriesFilterRatio()73 boolean hasTimeSeriesFilterRatio(); 74 /** 75 * 76 * 77 * <pre> 78 * Parameters to fetch a ratio between two time series filters. 79 * </pre> 80 * 81 * <code>.google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; 82 * </code> 83 * 84 * @return The timeSeriesFilterRatio. 85 */ getTimeSeriesFilterRatio()86 com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio getTimeSeriesFilterRatio(); 87 /** 88 * 89 * 90 * <pre> 91 * Parameters to fetch a ratio between two time series filters. 92 * </pre> 93 * 94 * <code>.google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; 95 * </code> 96 */ 97 com.google.monitoring.dashboard.v1.TimeSeriesFilterRatioOrBuilder getTimeSeriesFilterRatioOrBuilder()98 getTimeSeriesFilterRatioOrBuilder(); 99 100 /** 101 * 102 * 103 * <pre> 104 * A query used to fetch time series with MQL. 105 * </pre> 106 * 107 * <code>string time_series_query_language = 3;</code> 108 * 109 * @return Whether the timeSeriesQueryLanguage field is set. 110 */ hasTimeSeriesQueryLanguage()111 boolean hasTimeSeriesQueryLanguage(); 112 /** 113 * 114 * 115 * <pre> 116 * A query used to fetch time series with MQL. 117 * </pre> 118 * 119 * <code>string time_series_query_language = 3;</code> 120 * 121 * @return The timeSeriesQueryLanguage. 122 */ getTimeSeriesQueryLanguage()123 java.lang.String getTimeSeriesQueryLanguage(); 124 /** 125 * 126 * 127 * <pre> 128 * A query used to fetch time series with MQL. 129 * </pre> 130 * 131 * <code>string time_series_query_language = 3;</code> 132 * 133 * @return The bytes for timeSeriesQueryLanguage. 134 */ getTimeSeriesQueryLanguageBytes()135 com.google.protobuf.ByteString getTimeSeriesQueryLanguageBytes(); 136 137 /** 138 * 139 * 140 * <pre> 141 * A query used to fetch time series with PromQL. 142 * </pre> 143 * 144 * <code>string prometheus_query = 6;</code> 145 * 146 * @return Whether the prometheusQuery field is set. 147 */ hasPrometheusQuery()148 boolean hasPrometheusQuery(); 149 /** 150 * 151 * 152 * <pre> 153 * A query used to fetch time series with PromQL. 154 * </pre> 155 * 156 * <code>string prometheus_query = 6;</code> 157 * 158 * @return The prometheusQuery. 159 */ getPrometheusQuery()160 java.lang.String getPrometheusQuery(); 161 /** 162 * 163 * 164 * <pre> 165 * A query used to fetch time series with PromQL. 166 * </pre> 167 * 168 * <code>string prometheus_query = 6;</code> 169 * 170 * @return The bytes for prometheusQuery. 171 */ getPrometheusQueryBytes()172 com.google.protobuf.ByteString getPrometheusQueryBytes(); 173 174 /** 175 * 176 * 177 * <pre> 178 * The unit of data contained in fetched time series. If non-empty, this 179 * unit will override any unit that accompanies fetched data. The format is 180 * the same as the 181 * [`unit`](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors) 182 * field in `MetricDescriptor`. 183 * </pre> 184 * 185 * <code>string unit_override = 5;</code> 186 * 187 * @return The unitOverride. 188 */ getUnitOverride()189 java.lang.String getUnitOverride(); 190 /** 191 * 192 * 193 * <pre> 194 * The unit of data contained in fetched time series. If non-empty, this 195 * unit will override any unit that accompanies fetched data. The format is 196 * the same as the 197 * [`unit`](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors) 198 * field in `MetricDescriptor`. 199 * </pre> 200 * 201 * <code>string unit_override = 5;</code> 202 * 203 * @return The bytes for unitOverride. 204 */ getUnitOverrideBytes()205 com.google.protobuf.ByteString getUnitOverrideBytes(); 206 getSourceCase()207 public com.google.monitoring.dashboard.v1.TimeSeriesQuery.SourceCase getSourceCase(); 208 } 209