1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/api/monitoring.proto 3 4package serviceconfig 5 6import ( 7 fmt "fmt" 8 math "math" 9 10 proto "github.com/golang/protobuf/proto" 11) 12 13// Reference imports to suppress errors if they are not otherwise used. 14var _ = proto.Marshal 15var _ = fmt.Errorf 16var _ = math.Inf 17 18// This is a compile-time assertion to ensure that this generated file 19// is compatible with the proto package it is being compiled against. 20// A compilation error at this line likely means your copy of the 21// proto package needs to be updated. 22const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 23 24// Monitoring configuration of the service. 25// 26// The example below shows how to configure monitored resources and metrics 27// for monitoring. In the example, a monitored resource and two metrics are 28// defined. The `library.googleapis.com/book/returned_count` metric is sent 29// to both producer and consumer projects, whereas the 30// `library.googleapis.com/book/overdue_count` metric is only sent to the 31// consumer project. 32// 33// monitored_resources: 34// - type: library.googleapis.com/branch 35// labels: 36// - key: /city 37// description: The city where the library branch is located in. 38// - key: /name 39// description: The name of the branch. 40// metrics: 41// - name: library.googleapis.com/book/returned_count 42// metric_kind: DELTA 43// value_type: INT64 44// labels: 45// - key: /customer_id 46// - name: library.googleapis.com/book/overdue_count 47// metric_kind: GAUGE 48// value_type: INT64 49// labels: 50// - key: /customer_id 51// monitoring: 52// producer_destinations: 53// - monitored_resource: library.googleapis.com/branch 54// metrics: 55// - library.googleapis.com/book/returned_count 56// consumer_destinations: 57// - monitored_resource: library.googleapis.com/branch 58// metrics: 59// - library.googleapis.com/book/returned_count 60// - library.googleapis.com/book/overdue_count 61type Monitoring struct { 62 // Monitoring configurations for sending metrics to the producer project. 63 // There can be multiple producer 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 ProducerDestinations []*Monitoring_MonitoringDestination `protobuf:"bytes,1,rep,name=producer_destinations,json=producerDestinations,proto3" json:"producer_destinations,omitempty"` 69 // Monitoring configurations for sending metrics to the consumer project. 70 // There can be multiple consumer destinations. A monitored resouce type may 71 // appear in multiple monitoring destinations if different aggregations are 72 // needed for different sets of metrics associated with that monitored 73 // resource type. A monitored resource and metric pair may only be used once 74 // in the Monitoring configuration. 75 ConsumerDestinations []*Monitoring_MonitoringDestination `protobuf:"bytes,2,rep,name=consumer_destinations,json=consumerDestinations,proto3" json:"consumer_destinations,omitempty"` 76 XXX_NoUnkeyedLiteral struct{} `json:"-"` 77 XXX_unrecognized []byte `json:"-"` 78 XXX_sizecache int32 `json:"-"` 79} 80 81func (m *Monitoring) Reset() { *m = Monitoring{} } 82func (m *Monitoring) String() string { return proto.CompactTextString(m) } 83func (*Monitoring) ProtoMessage() {} 84func (*Monitoring) Descriptor() ([]byte, []int) { 85 return fileDescriptor_6e2076230a37a7e3, []int{0} 86} 87 88func (m *Monitoring) XXX_Unmarshal(b []byte) error { 89 return xxx_messageInfo_Monitoring.Unmarshal(m, b) 90} 91func (m *Monitoring) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 92 return xxx_messageInfo_Monitoring.Marshal(b, m, deterministic) 93} 94func (m *Monitoring) XXX_Merge(src proto.Message) { 95 xxx_messageInfo_Monitoring.Merge(m, src) 96} 97func (m *Monitoring) XXX_Size() int { 98 return xxx_messageInfo_Monitoring.Size(m) 99} 100func (m *Monitoring) XXX_DiscardUnknown() { 101 xxx_messageInfo_Monitoring.DiscardUnknown(m) 102} 103 104var xxx_messageInfo_Monitoring proto.InternalMessageInfo 105 106func (m *Monitoring) GetProducerDestinations() []*Monitoring_MonitoringDestination { 107 if m != nil { 108 return m.ProducerDestinations 109 } 110 return nil 111} 112 113func (m *Monitoring) GetConsumerDestinations() []*Monitoring_MonitoringDestination { 114 if m != nil { 115 return m.ConsumerDestinations 116 } 117 return nil 118} 119 120// Configuration of a specific monitoring destination (the producer project 121// or the consumer project). 122type Monitoring_MonitoringDestination struct { 123 // The monitored resource type. The type must be defined in 124 // [Service.monitored_resources][google.api.Service.monitored_resources] section. 125 MonitoredResource string `protobuf:"bytes,1,opt,name=monitored_resource,json=monitoredResource,proto3" json:"monitored_resource,omitempty"` 126 // Types of the metrics to report to this monitoring destination. 127 // Each type must be defined in [Service.metrics][google.api.Service.metrics] section. 128 Metrics []string `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty"` 129 XXX_NoUnkeyedLiteral struct{} `json:"-"` 130 XXX_unrecognized []byte `json:"-"` 131 XXX_sizecache int32 `json:"-"` 132} 133 134func (m *Monitoring_MonitoringDestination) Reset() { *m = Monitoring_MonitoringDestination{} } 135func (m *Monitoring_MonitoringDestination) String() string { return proto.CompactTextString(m) } 136func (*Monitoring_MonitoringDestination) ProtoMessage() {} 137func (*Monitoring_MonitoringDestination) Descriptor() ([]byte, []int) { 138 return fileDescriptor_6e2076230a37a7e3, []int{0, 0} 139} 140 141func (m *Monitoring_MonitoringDestination) XXX_Unmarshal(b []byte) error { 142 return xxx_messageInfo_Monitoring_MonitoringDestination.Unmarshal(m, b) 143} 144func (m *Monitoring_MonitoringDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 145 return xxx_messageInfo_Monitoring_MonitoringDestination.Marshal(b, m, deterministic) 146} 147func (m *Monitoring_MonitoringDestination) XXX_Merge(src proto.Message) { 148 xxx_messageInfo_Monitoring_MonitoringDestination.Merge(m, src) 149} 150func (m *Monitoring_MonitoringDestination) XXX_Size() int { 151 return xxx_messageInfo_Monitoring_MonitoringDestination.Size(m) 152} 153func (m *Monitoring_MonitoringDestination) XXX_DiscardUnknown() { 154 xxx_messageInfo_Monitoring_MonitoringDestination.DiscardUnknown(m) 155} 156 157var xxx_messageInfo_Monitoring_MonitoringDestination proto.InternalMessageInfo 158 159func (m *Monitoring_MonitoringDestination) GetMonitoredResource() string { 160 if m != nil { 161 return m.MonitoredResource 162 } 163 return "" 164} 165 166func (m *Monitoring_MonitoringDestination) GetMetrics() []string { 167 if m != nil { 168 return m.Metrics 169 } 170 return nil 171} 172 173func init() { 174 proto.RegisterType((*Monitoring)(nil), "google.api.Monitoring") 175 proto.RegisterType((*Monitoring_MonitoringDestination)(nil), "google.api.Monitoring.MonitoringDestination") 176} 177 178func init() { proto.RegisterFile("google/api/monitoring.proto", fileDescriptor_6e2076230a37a7e3) } 179 180var fileDescriptor_6e2076230a37a7e3 = []byte{ 181 // 263 bytes of a gzipped FileDescriptorProto 182 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x91, 0xcf, 0x4a, 0xc4, 0x30, 183 0x10, 0xc6, 0xe9, 0x2a, 0xca, 0x46, 0x50, 0x0c, 0x2e, 0x14, 0xbd, 0x2c, 0x9e, 0xf6, 0xa0, 0x29, 184 0xe8, 0xd1, 0x93, 0x8b, 0x22, 0x1e, 0x84, 0xd2, 0xa3, 0x97, 0x35, 0xa6, 0x63, 0x18, 0xd8, 0x66, 185 0xe2, 0x24, 0xf5, 0x81, 0x7c, 0x06, 0x1f, 0x50, 0xb6, 0x7f, 0xb6, 0x55, 0x3c, 0x79, 0xcb, 0xe4, 186 0x9b, 0x6f, 0x7e, 0xc3, 0x7c, 0xe2, 0xcc, 0x12, 0xd9, 0x35, 0x64, 0xda, 0x63, 0x56, 0x91, 0xc3, 187 0x48, 0x8c, 0xce, 0x2a, 0xcf, 0x14, 0x49, 0x8a, 0x56, 0x54, 0xda, 0xe3, 0xf9, 0xd7, 0x44, 0x88, 188 0xa7, 0x6d, 0x83, 0xd4, 0x62, 0xe6, 0x99, 0xca, 0xda, 0x00, 0xaf, 0x4a, 0x08, 0x11, 0x9d, 0x8e, 189 0x48, 0x2e, 0xa4, 0xc9, 0x7c, 0x67, 0x71, 0x70, 0x75, 0xa1, 0x06, 0xab, 0x1a, 0x6c, 0xa3, 0xe7, 190 0xdd, 0x60, 0x2a, 0x4e, 0xfa, 0x51, 0xa3, 0xcf, 0xb0, 0x41, 0x18, 0x72, 0xa1, 0xae, 0x7e, 0x23, 191 0x26, 0xff, 0x41, 0xf4, 0xa3, 0xc6, 0x88, 0xd3, 0x17, 0x31, 0xfb, 0xb3, 0x5d, 0x5e, 0x0a, 0xd9, 192 0x5d, 0x03, 0xca, 0x15, 0x43, 0xa0, 0x9a, 0x0d, 0xa4, 0xc9, 0x3c, 0x59, 0x4c, 0x8b, 0xe3, 0xad, 193 0x52, 0x74, 0x82, 0x4c, 0xc5, 0x7e, 0x05, 0x91, 0xd1, 0xb4, 0xcb, 0x4d, 0x8b, 0xbe, 0x5c, 0xbe, 194 0x8b, 0x43, 0x43, 0xd5, 0x68, 0xd5, 0xe5, 0xd1, 0x40, 0xcc, 0x37, 0x57, 0xce, 0x93, 0xe7, 0xfb, 195 0x4e, 0xb6, 0xb4, 0xd6, 0xce, 0x2a, 0x62, 0x9b, 0x59, 0x70, 0x4d, 0x06, 0x59, 0x2b, 0x69, 0x8f, 196 0xa1, 0xc9, 0x28, 0x00, 0x7f, 0xa0, 0x01, 0x43, 0xee, 0x0d, 0xed, 0xcd, 0x8f, 0xea, 0x73, 0xb2, 197 0xfb, 0x70, 0x9b, 0x3f, 0xbe, 0xee, 0x35, 0xc6, 0xeb, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb1, 198 0x9a, 0xd5, 0x79, 0xdb, 0x01, 0x00, 0x00, 199} 200