()
| 153 | } |
| 154 | |
| 155 | public String toString() { |
| 156 | final StringBuilder buf = new StringBuilder(); |
| 157 | buf.append("TSSubQuery(metric=") |
| 158 | .append(metric == null || metric.isEmpty() ? "" : metric); |
| 159 | buf.append(", filters=["); |
| 160 | if (filters != null && !filters.isEmpty()) { |
| 161 | int counter = 0; |
| 162 | for (final TagVFilter filter : filters) { |
| 163 | if (counter > 0) { |
| 164 | buf.append(", "); |
| 165 | } |
| 166 | buf.append(filter); |
| 167 | ++counter; |
| 168 | } |
| 169 | } |
| 170 | buf.append("], tsuids=["); |
| 171 | if (tsuids != null && !tsuids.isEmpty()) { |
| 172 | int counter = 0; |
| 173 | for (String tsuid : tsuids) { |
| 174 | if (counter > 0) { |
| 175 | buf.append(", "); |
| 176 | } |
| 177 | buf.append(tsuid); |
| 178 | counter++; |
| 179 | } |
| 180 | } |
| 181 | buf.append("], agg=") |
| 182 | .append(aggregator) |
| 183 | .append(", downsample=") |
| 184 | .append(downsample) |
| 185 | .append(", ds_interval=") |
| 186 | .append(downsample_specifier.getInterval()) |
| 187 | .append(", rate=") |
| 188 | .append(rate) |
| 189 | .append(", rate_options=") |
| 190 | .append(rate_options) |
| 191 | .append(", explicit_tags=") |
| 192 | .append("explicit_tags") |
| 193 | .append(", index=") |
| 194 | .append(index) |
| 195 | .append(", percentiles=") |
| 196 | .append(percentiles) |
| 197 | .append(", show_histogram_buckets=") |
| 198 | .append(show_histogram_buckets) |
| 199 | .append(")"); |
| 200 | return buf.toString(); |
| 201 | } |
| 202 | |
| 203 | /** |
| 204 | * Runs through query parameters to make sure it's a valid request. |
nothing calls this directly
no test coverage detected