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.
 
 
 

200 lines
9.0 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/api/monitoring.proto
  3. package serviceconfig // import "google.golang.org/genproto/googleapis/api/serviceconfig"
  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. // Reference imports to suppress errors if they are not otherwise used.
  9. var _ = proto.Marshal
  10. var _ = fmt.Errorf
  11. var _ = math.Inf
  12. // This is a compile-time assertion to ensure that this generated file
  13. // is compatible with the proto package it is being compiled against.
  14. // A compilation error at this line likely means your copy of the
  15. // proto package needs to be updated.
  16. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  17. // Monitoring configuration of the service.
  18. //
  19. // The example below shows how to configure monitored resources and metrics
  20. // for monitoring. In the example, a monitored resource and two metrics are
  21. // defined. The `library.googleapis.com/book/returned_count` metric is sent
  22. // to both producer and consumer projects, whereas the
  23. // `library.googleapis.com/book/overdue_count` metric is only sent to the
  24. // consumer project.
  25. //
  26. // monitored_resources:
  27. // - type: library.googleapis.com/branch
  28. // labels:
  29. // - key: /city
  30. // description: The city where the library branch is located in.
  31. // - key: /name
  32. // description: The name of the branch.
  33. // metrics:
  34. // - name: library.googleapis.com/book/returned_count
  35. // metric_kind: DELTA
  36. // value_type: INT64
  37. // labels:
  38. // - key: /customer_id
  39. // - name: library.googleapis.com/book/overdue_count
  40. // metric_kind: GAUGE
  41. // value_type: INT64
  42. // labels:
  43. // - key: /customer_id
  44. // monitoring:
  45. // producer_destinations:
  46. // - monitored_resource: library.googleapis.com/branch
  47. // metrics:
  48. // - library.googleapis.com/book/returned_count
  49. // consumer_destinations:
  50. // - monitored_resource: library.googleapis.com/branch
  51. // metrics:
  52. // - library.googleapis.com/book/returned_count
  53. // - library.googleapis.com/book/overdue_count
  54. type Monitoring struct {
  55. // Monitoring configurations for sending metrics to the producer project.
  56. // There can be multiple producer destinations. A monitored resouce type may
  57. // appear in multiple monitoring destinations if different aggregations are
  58. // needed for different sets of metrics associated with that monitored
  59. // resource type. A monitored resource and metric pair may only be used once
  60. // in the Monitoring configuration.
  61. ProducerDestinations []*Monitoring_MonitoringDestination `protobuf:"bytes,1,rep,name=producer_destinations,json=producerDestinations,proto3" json:"producer_destinations,omitempty"`
  62. // Monitoring configurations for sending metrics to the consumer project.
  63. // There can be multiple consumer destinations. A monitored resouce type may
  64. // appear in multiple monitoring destinations if different aggregations are
  65. // needed for different sets of metrics associated with that monitored
  66. // resource type. A monitored resource and metric pair may only be used once
  67. // in the Monitoring configuration.
  68. ConsumerDestinations []*Monitoring_MonitoringDestination `protobuf:"bytes,2,rep,name=consumer_destinations,json=consumerDestinations,proto3" json:"consumer_destinations,omitempty"`
  69. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  70. XXX_unrecognized []byte `json:"-"`
  71. XXX_sizecache int32 `json:"-"`
  72. }
  73. func (m *Monitoring) Reset() { *m = Monitoring{} }
  74. func (m *Monitoring) String() string { return proto.CompactTextString(m) }
  75. func (*Monitoring) ProtoMessage() {}
  76. func (*Monitoring) Descriptor() ([]byte, []int) {
  77. return fileDescriptor_monitoring_5fec56252b27d7ca, []int{0}
  78. }
  79. func (m *Monitoring) XXX_Unmarshal(b []byte) error {
  80. return xxx_messageInfo_Monitoring.Unmarshal(m, b)
  81. }
  82. func (m *Monitoring) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  83. return xxx_messageInfo_Monitoring.Marshal(b, m, deterministic)
  84. }
  85. func (dst *Monitoring) XXX_Merge(src proto.Message) {
  86. xxx_messageInfo_Monitoring.Merge(dst, src)
  87. }
  88. func (m *Monitoring) XXX_Size() int {
  89. return xxx_messageInfo_Monitoring.Size(m)
  90. }
  91. func (m *Monitoring) XXX_DiscardUnknown() {
  92. xxx_messageInfo_Monitoring.DiscardUnknown(m)
  93. }
  94. var xxx_messageInfo_Monitoring proto.InternalMessageInfo
  95. func (m *Monitoring) GetProducerDestinations() []*Monitoring_MonitoringDestination {
  96. if m != nil {
  97. return m.ProducerDestinations
  98. }
  99. return nil
  100. }
  101. func (m *Monitoring) GetConsumerDestinations() []*Monitoring_MonitoringDestination {
  102. if m != nil {
  103. return m.ConsumerDestinations
  104. }
  105. return nil
  106. }
  107. // Configuration of a specific monitoring destination (the producer project
  108. // or the consumer project).
  109. type Monitoring_MonitoringDestination struct {
  110. // The monitored resource type. The type must be defined in
  111. // [Service.monitored_resources][google.api.Service.monitored_resources]
  112. // section.
  113. MonitoredResource string `protobuf:"bytes,1,opt,name=monitored_resource,json=monitoredResource,proto3" json:"monitored_resource,omitempty"`
  114. // Types of the metrics to report to this monitoring destination.
  115. // Each type must be defined in
  116. // [Service.metrics][google.api.Service.metrics] section.
  117. Metrics []string `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty"`
  118. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  119. XXX_unrecognized []byte `json:"-"`
  120. XXX_sizecache int32 `json:"-"`
  121. }
  122. func (m *Monitoring_MonitoringDestination) Reset() { *m = Monitoring_MonitoringDestination{} }
  123. func (m *Monitoring_MonitoringDestination) String() string { return proto.CompactTextString(m) }
  124. func (*Monitoring_MonitoringDestination) ProtoMessage() {}
  125. func (*Monitoring_MonitoringDestination) Descriptor() ([]byte, []int) {
  126. return fileDescriptor_monitoring_5fec56252b27d7ca, []int{0, 0}
  127. }
  128. func (m *Monitoring_MonitoringDestination) XXX_Unmarshal(b []byte) error {
  129. return xxx_messageInfo_Monitoring_MonitoringDestination.Unmarshal(m, b)
  130. }
  131. func (m *Monitoring_MonitoringDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  132. return xxx_messageInfo_Monitoring_MonitoringDestination.Marshal(b, m, deterministic)
  133. }
  134. func (dst *Monitoring_MonitoringDestination) XXX_Merge(src proto.Message) {
  135. xxx_messageInfo_Monitoring_MonitoringDestination.Merge(dst, src)
  136. }
  137. func (m *Monitoring_MonitoringDestination) XXX_Size() int {
  138. return xxx_messageInfo_Monitoring_MonitoringDestination.Size(m)
  139. }
  140. func (m *Monitoring_MonitoringDestination) XXX_DiscardUnknown() {
  141. xxx_messageInfo_Monitoring_MonitoringDestination.DiscardUnknown(m)
  142. }
  143. var xxx_messageInfo_Monitoring_MonitoringDestination proto.InternalMessageInfo
  144. func (m *Monitoring_MonitoringDestination) GetMonitoredResource() string {
  145. if m != nil {
  146. return m.MonitoredResource
  147. }
  148. return ""
  149. }
  150. func (m *Monitoring_MonitoringDestination) GetMetrics() []string {
  151. if m != nil {
  152. return m.Metrics
  153. }
  154. return nil
  155. }
  156. func init() {
  157. proto.RegisterType((*Monitoring)(nil), "google.api.Monitoring")
  158. proto.RegisterType((*Monitoring_MonitoringDestination)(nil), "google.api.Monitoring.MonitoringDestination")
  159. }
  160. func init() {
  161. proto.RegisterFile("google/api/monitoring.proto", fileDescriptor_monitoring_5fec56252b27d7ca)
  162. }
  163. var fileDescriptor_monitoring_5fec56252b27d7ca = []byte{
  164. // 271 bytes of a gzipped FileDescriptorProto
  165. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x51, 0xcd, 0x4a, 0xc4, 0x30,
  166. 0x10, 0xa6, 0x55, 0x94, 0x8d, 0xa0, 0x58, 0x5c, 0x28, 0xab, 0x87, 0xc5, 0xd3, 0x1e, 0xb4, 0x05,
  167. 0x3d, 0x7a, 0x72, 0x51, 0xc4, 0x83, 0x50, 0x7a, 0xf4, 0xb2, 0xc6, 0x74, 0x0c, 0x03, 0xdb, 0x99,
  168. 0x9a, 0xa4, 0x3e, 0x90, 0xcf, 0xe0, 0x03, 0xca, 0x36, 0xed, 0x36, 0x8a, 0x27, 0x6f, 0x99, 0x7c,
  169. 0x7f, 0xc3, 0x37, 0xe2, 0x54, 0x33, 0xeb, 0x35, 0xe4, 0xb2, 0xc1, 0xbc, 0x66, 0x42, 0xc7, 0x06,
  170. 0x49, 0x67, 0x8d, 0x61, 0xc7, 0x89, 0xf0, 0x60, 0x26, 0x1b, 0x9c, 0x9d, 0x05, 0x44, 0x49, 0xc4,
  171. 0x4e, 0x3a, 0x64, 0xb2, 0x9e, 0x79, 0xfe, 0x15, 0x0b, 0xf1, 0xb4, 0x95, 0x27, 0x52, 0x4c, 0x1b,
  172. 0xc3, 0x55, 0xab, 0xc0, 0xac, 0x2a, 0xb0, 0x0e, 0xc9, 0xb3, 0xd3, 0x68, 0xbe, 0xb3, 0x38, 0xb8,
  173. 0xba, 0xc8, 0x46, 0xe3, 0x6c, 0x94, 0x05, 0xcf, 0xbb, 0x51, 0x54, 0x9e, 0x0c, 0x56, 0xc1, 0xa7,
  174. 0xdd, 0x44, 0x28, 0x26, 0xdb, 0xd6, 0xbf, 0x23, 0xe2, 0xff, 0x44, 0x0c, 0x56, 0x61, 0xc4, 0xec,
  175. 0x45, 0x4c, 0xff, 0xa4, 0x27, 0x97, 0x22, 0xe9, 0xbb, 0x82, 0x6a, 0x65, 0xc0, 0x72, 0x6b, 0x14,
  176. 0xa4, 0xd1, 0x3c, 0x5a, 0x4c, 0xca, 0xe3, 0x2d, 0x52, 0xf6, 0x40, 0x92, 0x8a, 0xfd, 0x1a, 0x9c,
  177. 0x41, 0xe5, 0x97, 0x9b, 0x94, 0xc3, 0xb8, 0x7c, 0x17, 0x87, 0x8a, 0xeb, 0x60, 0xd5, 0xe5, 0xd1,
  178. 0x98, 0x58, 0x6c, 0x9a, 0x2d, 0xa2, 0xe7, 0xfb, 0x1e, 0xd6, 0xbc, 0x96, 0xa4, 0x33, 0x36, 0x3a,
  179. 0xd7, 0x40, 0x5d, 0xef, 0xb9, 0x87, 0x64, 0x83, 0xb6, 0x3b, 0x8c, 0x05, 0xf3, 0x81, 0x0a, 0x14,
  180. 0xd3, 0x1b, 0xea, 0x9b, 0x1f, 0xd3, 0x67, 0xbc, 0xfb, 0x70, 0x5b, 0x3c, 0xbe, 0xee, 0x75, 0xc2,
  181. 0xeb, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x51, 0x35, 0xf3, 0xe2, 0xf9, 0x01, 0x00, 0x00,
  182. }