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