metric.proto 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. // Copyright 2016 Google Inc.
  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/metric.proto";
  17. import "google/api/monitored_resource.proto";
  18. import "google/monitoring/v3/common.proto";
  19. option java_multiple_files = true;
  20. option java_outer_classname = "MetricProto";
  21. option java_package = "com.google.monitoring.v3";
  22. // A single data point in a time series.
  23. message Point {
  24. // The time interval to which the value applies.
  25. TimeInterval interval = 1;
  26. // The value of the data point.
  27. TypedValue value = 2;
  28. }
  29. // A collection of data points that describes the time-varying nature
  30. // of a metric. A time series is identified by a combination of a
  31. // fully-specified monitored resource and a fully-specified metric.
  32. message TimeSeries {
  33. // The fully-specified metric used to identify the time series.
  34. google.api.Metric metric = 1;
  35. // The fully-specified monitored resource used to identify the time series.
  36. google.api.MonitoredResource resource = 2;
  37. // The metric kind of the time series. This can be different than the metric
  38. // kind specified in [google.api.MetricDescriptor] because of alignment and
  39. // reduction operations on the data. This field is ignored when writing data;
  40. // the value specified in the descriptor is used instead.
  41. // @OutputOnly
  42. google.api.MetricDescriptor.MetricKind metric_kind = 3;
  43. // The value type of the time series. This can be different than the value
  44. // type specified in [google.api.MetricDescriptor] because of alignment and
  45. // reduction operations on the data. This field is ignored when writing data;
  46. // the value specified in the descriptor is used instead.
  47. // @OutputOnly
  48. google.api.MetricDescriptor.ValueType value_type = 4;
  49. // The data points of this time series. When used as output, points will be
  50. // sorted by decreasing time order. When used as input, points could be
  51. // written in any orders.
  52. repeated Point points = 5;
  53. }