You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

233 lines
10 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/monitoring/v3/metric.proto
  3. package monitoring // import "google.golang.org/genproto/googleapis/monitoring/v3"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "google.golang.org/genproto/googleapis/api/annotations"
  8. import _ "google.golang.org/genproto/googleapis/api/label"
  9. import metric "google.golang.org/genproto/googleapis/api/metric"
  10. import monitoredres "google.golang.org/genproto/googleapis/api/monitoredres"
  11. // Reference imports to suppress errors if they are not otherwise used.
  12. var _ = proto.Marshal
  13. var _ = fmt.Errorf
  14. var _ = math.Inf
  15. // This is a compile-time assertion to ensure that this generated file
  16. // is compatible with the proto package it is being compiled against.
  17. // A compilation error at this line likely means your copy of the
  18. // proto package needs to be updated.
  19. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  20. // A single data point in a time series.
  21. type Point struct {
  22. // The time interval to which the data point applies. For `GAUGE` metrics,
  23. // only the end time of the interval is used. For `DELTA` metrics, the start
  24. // and end time should specify a non-zero interval, with subsequent points
  25. // specifying contiguous and non-overlapping intervals. For `CUMULATIVE`
  26. // metrics, the start and end time should specify a non-zero interval, with
  27. // subsequent points specifying the same start time and increasing end times,
  28. // until an event resets the cumulative value to zero and sets a new start
  29. // time for the following points.
  30. Interval *TimeInterval `protobuf:"bytes,1,opt,name=interval,proto3" json:"interval,omitempty"`
  31. // The value of the data point.
  32. Value *TypedValue `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  33. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  34. XXX_unrecognized []byte `json:"-"`
  35. XXX_sizecache int32 `json:"-"`
  36. }
  37. func (m *Point) Reset() { *m = Point{} }
  38. func (m *Point) String() string { return proto.CompactTextString(m) }
  39. func (*Point) ProtoMessage() {}
  40. func (*Point) Descriptor() ([]byte, []int) {
  41. return fileDescriptor_metric_0e98e1ce848c2349, []int{0}
  42. }
  43. func (m *Point) XXX_Unmarshal(b []byte) error {
  44. return xxx_messageInfo_Point.Unmarshal(m, b)
  45. }
  46. func (m *Point) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  47. return xxx_messageInfo_Point.Marshal(b, m, deterministic)
  48. }
  49. func (dst *Point) XXX_Merge(src proto.Message) {
  50. xxx_messageInfo_Point.Merge(dst, src)
  51. }
  52. func (m *Point) XXX_Size() int {
  53. return xxx_messageInfo_Point.Size(m)
  54. }
  55. func (m *Point) XXX_DiscardUnknown() {
  56. xxx_messageInfo_Point.DiscardUnknown(m)
  57. }
  58. var xxx_messageInfo_Point proto.InternalMessageInfo
  59. func (m *Point) GetInterval() *TimeInterval {
  60. if m != nil {
  61. return m.Interval
  62. }
  63. return nil
  64. }
  65. func (m *Point) GetValue() *TypedValue {
  66. if m != nil {
  67. return m.Value
  68. }
  69. return nil
  70. }
  71. // A collection of data points that describes the time-varying values
  72. // of a metric. A time series is identified by a combination of a
  73. // fully-specified monitored resource and a fully-specified metric.
  74. // This type is used for both listing and creating time series.
  75. type TimeSeries struct {
  76. // The associated metric. A fully-specified metric used to identify the time
  77. // series.
  78. Metric *metric.Metric `protobuf:"bytes,1,opt,name=metric,proto3" json:"metric,omitempty"`
  79. // The associated monitored resource. Custom metrics can use only certain
  80. // monitored resource types in their time series data.
  81. Resource *monitoredres.MonitoredResource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
  82. // Output only. The associated monitored resource metadata. When reading a
  83. // a timeseries, this field will include metadata labels that are explicitly
  84. // named in the reduction. When creating a timeseries, this field is ignored.
  85. Metadata *monitoredres.MonitoredResourceMetadata `protobuf:"bytes,7,opt,name=metadata,proto3" json:"metadata,omitempty"`
  86. // The metric kind of the time series. When listing time series, this metric
  87. // kind might be different from the metric kind of the associated metric if
  88. // this time series is an alignment or reduction of other time series.
  89. //
  90. // When creating a time series, this field is optional. If present, it must be
  91. // the same as the metric kind of the associated metric. If the associated
  92. // metric's descriptor must be auto-created, then this field specifies the
  93. // metric kind of the new descriptor and must be either `GAUGE` (the default)
  94. // or `CUMULATIVE`.
  95. MetricKind metric.MetricDescriptor_MetricKind `protobuf:"varint,3,opt,name=metric_kind,json=metricKind,proto3,enum=google.api.MetricDescriptor_MetricKind" json:"metric_kind,omitempty"`
  96. // The value type of the time series. When listing time series, this value
  97. // type might be different from the value type of the associated metric if
  98. // this time series is an alignment or reduction of other time series.
  99. //
  100. // When creating a time series, this field is optional. If present, it must be
  101. // the same as the type of the data in the `points` field.
  102. ValueType metric.MetricDescriptor_ValueType `protobuf:"varint,4,opt,name=value_type,json=valueType,proto3,enum=google.api.MetricDescriptor_ValueType" json:"value_type,omitempty"`
  103. // The data points of this time series. When listing time series, points are
  104. // returned in reverse time order.
  105. //
  106. // When creating a time series, this field must contain exactly one point and
  107. // the point's type must be the same as the value type of the associated
  108. // metric. If the associated metric's descriptor must be auto-created, then
  109. // the value type of the descriptor is determined by the point's type, which
  110. // must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
  111. Points []*Point `protobuf:"bytes,5,rep,name=points,proto3" json:"points,omitempty"`
  112. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  113. XXX_unrecognized []byte `json:"-"`
  114. XXX_sizecache int32 `json:"-"`
  115. }
  116. func (m *TimeSeries) Reset() { *m = TimeSeries{} }
  117. func (m *TimeSeries) String() string { return proto.CompactTextString(m) }
  118. func (*TimeSeries) ProtoMessage() {}
  119. func (*TimeSeries) Descriptor() ([]byte, []int) {
  120. return fileDescriptor_metric_0e98e1ce848c2349, []int{1}
  121. }
  122. func (m *TimeSeries) XXX_Unmarshal(b []byte) error {
  123. return xxx_messageInfo_TimeSeries.Unmarshal(m, b)
  124. }
  125. func (m *TimeSeries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  126. return xxx_messageInfo_TimeSeries.Marshal(b, m, deterministic)
  127. }
  128. func (dst *TimeSeries) XXX_Merge(src proto.Message) {
  129. xxx_messageInfo_TimeSeries.Merge(dst, src)
  130. }
  131. func (m *TimeSeries) XXX_Size() int {
  132. return xxx_messageInfo_TimeSeries.Size(m)
  133. }
  134. func (m *TimeSeries) XXX_DiscardUnknown() {
  135. xxx_messageInfo_TimeSeries.DiscardUnknown(m)
  136. }
  137. var xxx_messageInfo_TimeSeries proto.InternalMessageInfo
  138. func (m *TimeSeries) GetMetric() *metric.Metric {
  139. if m != nil {
  140. return m.Metric
  141. }
  142. return nil
  143. }
  144. func (m *TimeSeries) GetResource() *monitoredres.MonitoredResource {
  145. if m != nil {
  146. return m.Resource
  147. }
  148. return nil
  149. }
  150. func (m *TimeSeries) GetMetadata() *monitoredres.MonitoredResourceMetadata {
  151. if m != nil {
  152. return m.Metadata
  153. }
  154. return nil
  155. }
  156. func (m *TimeSeries) GetMetricKind() metric.MetricDescriptor_MetricKind {
  157. if m != nil {
  158. return m.MetricKind
  159. }
  160. return metric.MetricDescriptor_METRIC_KIND_UNSPECIFIED
  161. }
  162. func (m *TimeSeries) GetValueType() metric.MetricDescriptor_ValueType {
  163. if m != nil {
  164. return m.ValueType
  165. }
  166. return metric.MetricDescriptor_VALUE_TYPE_UNSPECIFIED
  167. }
  168. func (m *TimeSeries) GetPoints() []*Point {
  169. if m != nil {
  170. return m.Points
  171. }
  172. return nil
  173. }
  174. func init() {
  175. proto.RegisterType((*Point)(nil), "google.monitoring.v3.Point")
  176. proto.RegisterType((*TimeSeries)(nil), "google.monitoring.v3.TimeSeries")
  177. }
  178. func init() {
  179. proto.RegisterFile("google/monitoring/v3/metric.proto", fileDescriptor_metric_0e98e1ce848c2349)
  180. }
  181. var fileDescriptor_metric_0e98e1ce848c2349 = []byte{
  182. // 441 bytes of a gzipped FileDescriptorProto
  183. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0x51, 0xab, 0xd3, 0x30,
  184. 0x14, 0xc7, 0xe9, 0xae, 0x9b, 0x33, 0x03, 0x1f, 0x82, 0x68, 0x99, 0x0a, 0x73, 0xa2, 0x0e, 0x1f,
  185. 0x5a, 0x58, 0x41, 0x10, 0xe1, 0x82, 0x57, 0x45, 0x45, 0x2e, 0x8c, 0x28, 0x7b, 0x90, 0xc1, 0xc8,
  186. 0x6d, 0x0f, 0x25, 0xd8, 0xe4, 0x84, 0x34, 0x2b, 0xdc, 0x27, 0x3f, 0x8c, 0x6f, 0x7e, 0x14, 0x3f,
  187. 0x93, 0x0f, 0xd2, 0x24, 0xdd, 0x76, 0xb1, 0xf7, 0xbe, 0xb5, 0xf9, 0xff, 0xfe, 0xe7, 0x7f, 0x72,
  188. 0x72, 0xc8, 0x93, 0x12, 0xb1, 0xac, 0x20, 0x95, 0xa8, 0x84, 0x45, 0x23, 0x54, 0x99, 0x36, 0x59,
  189. 0x2a, 0xc1, 0x1a, 0x91, 0x27, 0xda, 0xa0, 0x45, 0x7a, 0xcf, 0x23, 0xc9, 0x01, 0x49, 0x9a, 0x6c,
  190. 0xfa, 0x28, 0x18, 0xb9, 0x16, 0x29, 0x57, 0x0a, 0x2d, 0xb7, 0x02, 0x55, 0xed, 0x3d, 0xd3, 0xfb,
  191. 0x47, 0x6a, 0xc5, 0x2f, 0xa0, 0x0a, 0xe7, 0x0f, 0x8e, 0xce, 0x8f, 0x43, 0xa6, 0x4f, 0x8f, 0x05,
  192. 0x1f, 0x04, 0xc5, 0xd6, 0x40, 0x8d, 0x3b, 0x93, 0x43, 0x80, 0xfa, 0x9b, 0xcd, 0x51, 0x4a, 0x54,
  193. 0x1e, 0x99, 0xff, 0x24, 0xc3, 0x15, 0x0a, 0x65, 0xe9, 0x29, 0x19, 0x0b, 0x65, 0xc1, 0x34, 0xbc,
  194. 0x8a, 0xa3, 0x59, 0xb4, 0x98, 0x2c, 0xe7, 0x49, 0xdf, 0x45, 0x92, 0x6f, 0x42, 0xc2, 0xe7, 0x40,
  195. 0xb2, 0xbd, 0x87, 0xbe, 0x22, 0xc3, 0x86, 0x57, 0x3b, 0x88, 0x07, 0xce, 0x3c, 0xbb, 0xc6, 0x7c,
  196. 0xa9, 0xa1, 0x58, 0xb7, 0x1c, 0xf3, 0xf8, 0xfc, 0xef, 0x80, 0x90, 0xb6, 0xe4, 0x57, 0x30, 0x02,
  197. 0x6a, 0xfa, 0x92, 0x8c, 0xfc, 0x3d, 0x43, 0x13, 0xb4, 0xab, 0xc3, 0xb5, 0x48, 0xce, 0x9d, 0xc2,
  198. 0x02, 0x41, 0x5f, 0x93, 0x71, 0x77, 0xe1, 0x90, 0xfa, 0xf8, 0x0a, 0xdd, 0x8d, 0x85, 0x05, 0x88,
  199. 0xed, 0x71, 0xfa, 0x96, 0x8c, 0x25, 0x58, 0x5e, 0x70, 0xcb, 0xe3, 0xdb, 0xce, 0xfa, 0xec, 0x46,
  200. 0xeb, 0x79, 0x80, 0xd9, 0xde, 0x46, 0x3f, 0x91, 0x89, 0xef, 0x63, 0xfb, 0x43, 0xa8, 0x22, 0x3e,
  201. 0x99, 0x45, 0x8b, 0xbb, 0xcb, 0x17, 0xff, 0xb7, 0xfb, 0x1e, 0xea, 0xdc, 0x08, 0x6d, 0xd1, 0x84,
  202. 0x83, 0x2f, 0x42, 0x15, 0x8c, 0xc8, 0xfd, 0x37, 0xfd, 0x40, 0x88, 0x9b, 0xc5, 0xd6, 0x5e, 0x6a,
  203. 0x88, 0x6f, 0xb9, 0x42, 0xcf, 0x6f, 0x2c, 0xe4, 0x26, 0xd8, 0xce, 0x92, 0xdd, 0x69, 0xba, 0x4f,
  204. 0x9a, 0x91, 0x91, 0x6e, 0x9f, 0xb2, 0x8e, 0x87, 0xb3, 0x93, 0xc5, 0x64, 0xf9, 0xb0, 0xff, 0x09,
  205. 0xdc, 0x73, 0xb3, 0x80, 0x9e, 0xfd, 0x8a, 0x48, 0x9c, 0xa3, 0xec, 0x45, 0xcf, 0x26, 0x3e, 0x78,
  206. 0xd5, 0x6e, 0xca, 0x2a, 0xfa, 0x7e, 0x1a, 0xa0, 0x12, 0x2b, 0xae, 0xca, 0x04, 0x4d, 0x99, 0x96,
  207. 0xa0, 0xdc, 0x1e, 0xa5, 0x5e, 0xe2, 0x5a, 0xd4, 0x57, 0xb7, 0xed, 0xcd, 0xe1, 0xef, 0xf7, 0x60,
  208. 0xfa, 0xd1, 0x17, 0x78, 0x57, 0xe1, 0xae, 0xe8, 0x86, 0xdc, 0x66, 0xad, 0xb3, 0x3f, 0x9d, 0xb8,
  209. 0x71, 0xe2, 0xe6, 0x20, 0x6e, 0xd6, 0xd9, 0xc5, 0xc8, 0x85, 0x64, 0xff, 0x02, 0x00, 0x00, 0xff,
  210. 0xff, 0x5a, 0x88, 0xc9, 0x0b, 0x7e, 0x03, 0x00, 0x00,
  211. }