OSDN Git Service

new repo
[bytom/vapor.git] / vendor / google.golang.org / genproto / googleapis / api / serviceconfig / monitoring.pb.go
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/api/monitoring.proto
3
4 package serviceconfig
5
6 import proto "github.com/golang/protobuf/proto"
7 import fmt "fmt"
8 import math "math"
9 import _ "google.golang.org/genproto/googleapis/api/annotations"
10
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
16 // Monitoring configuration of the service.
17 //
18 // The example below shows how to configure monitored resources and metrics
19 // for monitoring. In the example, a monitored resource and two metrics are
20 // defined. The `library.googleapis.com/book/returned_count` metric is sent
21 // to both producer and consumer projects, whereas the
22 // `library.googleapis.com/book/overdue_count` metric is only sent to the
23 // consumer project.
24 //
25 //     monitored_resources:
26 //     - type: library.googleapis.com/branch
27 //       labels:
28 //       - key: /city
29 //         description: The city where the library branch is located in.
30 //       - key: /name
31 //         description: The name of the branch.
32 //     metrics:
33 //     - name: library.googleapis.com/book/returned_count
34 //       metric_kind: DELTA
35 //       value_type: INT64
36 //       labels:
37 //       - key: /customer_id
38 //     - name: library.googleapis.com/book/overdue_count
39 //       metric_kind: GAUGE
40 //       value_type: INT64
41 //       labels:
42 //       - key: /customer_id
43 //     monitoring:
44 //       producer_destinations:
45 //       - monitored_resource: library.googleapis.com/branch
46 //         metrics:
47 //         - library.googleapis.com/book/returned_count
48 //       consumer_destinations:
49 //       - monitored_resource: library.googleapis.com/branch
50 //         metrics:
51 //         - library.googleapis.com/book/returned_count
52 //         - library.googleapis.com/book/overdue_count
53 type Monitoring struct {
54         // Monitoring configurations for sending metrics to the producer project.
55         // There can be multiple producer destinations, each one must have a
56         // different monitored resource type. A metric can be used in at most
57         // one producer destination.
58         ProducerDestinations []*Monitoring_MonitoringDestination `protobuf:"bytes,1,rep,name=producer_destinations,json=producerDestinations" json:"producer_destinations,omitempty"`
59         // Monitoring configurations for sending metrics to the consumer project.
60         // There can be multiple consumer destinations, each one must have a
61         // different monitored resource type. A metric can be used in at most
62         // one consumer destination.
63         ConsumerDestinations []*Monitoring_MonitoringDestination `protobuf:"bytes,2,rep,name=consumer_destinations,json=consumerDestinations" json:"consumer_destinations,omitempty"`
64 }
65
66 func (m *Monitoring) Reset()                    { *m = Monitoring{} }
67 func (m *Monitoring) String() string            { return proto.CompactTextString(m) }
68 func (*Monitoring) ProtoMessage()               {}
69 func (*Monitoring) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{0} }
70
71 func (m *Monitoring) GetProducerDestinations() []*Monitoring_MonitoringDestination {
72         if m != nil {
73                 return m.ProducerDestinations
74         }
75         return nil
76 }
77
78 func (m *Monitoring) GetConsumerDestinations() []*Monitoring_MonitoringDestination {
79         if m != nil {
80                 return m.ConsumerDestinations
81         }
82         return nil
83 }
84
85 // Configuration of a specific monitoring destination (the producer project
86 // or the consumer project).
87 type Monitoring_MonitoringDestination struct {
88         // The monitored resource type. The type must be defined in
89         // [Service.monitored_resources][google.api.Service.monitored_resources] section.
90         MonitoredResource string `protobuf:"bytes,1,opt,name=monitored_resource,json=monitoredResource" json:"monitored_resource,omitempty"`
91         // Names of the metrics to report to this monitoring destination.
92         // Each name must be defined in [Service.metrics][google.api.Service.metrics] section.
93         Metrics []string `protobuf:"bytes,2,rep,name=metrics" json:"metrics,omitempty"`
94 }
95
96 func (m *Monitoring_MonitoringDestination) Reset()         { *m = Monitoring_MonitoringDestination{} }
97 func (m *Monitoring_MonitoringDestination) String() string { return proto.CompactTextString(m) }
98 func (*Monitoring_MonitoringDestination) ProtoMessage()    {}
99 func (*Monitoring_MonitoringDestination) Descriptor() ([]byte, []int) {
100         return fileDescriptor10, []int{0, 0}
101 }
102
103 func (m *Monitoring_MonitoringDestination) GetMonitoredResource() string {
104         if m != nil {
105                 return m.MonitoredResource
106         }
107         return ""
108 }
109
110 func (m *Monitoring_MonitoringDestination) GetMetrics() []string {
111         if m != nil {
112                 return m.Metrics
113         }
114         return nil
115 }
116
117 func init() {
118         proto.RegisterType((*Monitoring)(nil), "google.api.Monitoring")
119         proto.RegisterType((*Monitoring_MonitoringDestination)(nil), "google.api.Monitoring.MonitoringDestination")
120 }
121
122 func init() { proto.RegisterFile("google/api/monitoring.proto", fileDescriptor10) }
123
124 var fileDescriptor10 = []byte{
125         // 271 bytes of a gzipped FileDescriptorProto
126         0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x51, 0xcd, 0x4a, 0xc4, 0x30,
127         0x10, 0xa6, 0x55, 0x94, 0x8d, 0xa0, 0x58, 0x5c, 0x28, 0xab, 0x87, 0xc5, 0xd3, 0x1e, 0xb4, 0x05,
128         0x3d, 0x7a, 0x72, 0x51, 0xc4, 0x83, 0x50, 0x7a, 0xf4, 0xb2, 0xc6, 0x74, 0x0c, 0x03, 0xdb, 0x99,
129         0x9a, 0xa4, 0x3e, 0x90, 0xcf, 0xe0, 0x03, 0xca, 0x36, 0xed, 0x36, 0x8a, 0x27, 0x6f, 0x99, 0x7c,
130         0x7f, 0xc3, 0x37, 0xe2, 0x54, 0x33, 0xeb, 0x35, 0xe4, 0xb2, 0xc1, 0xbc, 0x66, 0x42, 0xc7, 0x06,
131         0x49, 0x67, 0x8d, 0x61, 0xc7, 0x89, 0xf0, 0x60, 0x26, 0x1b, 0x9c, 0x9d, 0x05, 0x44, 0x49, 0xc4,
132         0x4e, 0x3a, 0x64, 0xb2, 0x9e, 0x79, 0xfe, 0x15, 0x0b, 0xf1, 0xb4, 0x95, 0x27, 0x52, 0x4c, 0x1b,
133         0xc3, 0x55, 0xab, 0xc0, 0xac, 0x2a, 0xb0, 0x0e, 0xc9, 0xb3, 0xd3, 0x68, 0xbe, 0xb3, 0x38, 0xb8,
134         0xba, 0xc8, 0x46, 0xe3, 0x6c, 0x94, 0x05, 0xcf, 0xbb, 0x51, 0x54, 0x9e, 0x0c, 0x56, 0xc1, 0xa7,
135         0xdd, 0x44, 0x28, 0x26, 0xdb, 0xd6, 0xbf, 0x23, 0xe2, 0xff, 0x44, 0x0c, 0x56, 0x61, 0xc4, 0xec,
136         0x45, 0x4c, 0xff, 0xa4, 0x27, 0x97, 0x22, 0xe9, 0xbb, 0x82, 0x6a, 0x65, 0xc0, 0x72, 0x6b, 0x14,
137         0xa4, 0xd1, 0x3c, 0x5a, 0x4c, 0xca, 0xe3, 0x2d, 0x52, 0xf6, 0x40, 0x92, 0x8a, 0xfd, 0x1a, 0x9c,
138         0x41, 0xe5, 0x97, 0x9b, 0x94, 0xc3, 0xb8, 0x7c, 0x17, 0x87, 0x8a, 0xeb, 0x60, 0xd5, 0xe5, 0xd1,
139         0x98, 0x58, 0x6c, 0x9a, 0x2d, 0xa2, 0xe7, 0xfb, 0x1e, 0xd6, 0xbc, 0x96, 0xa4, 0x33, 0x36, 0x3a,
140         0xd7, 0x40, 0x5d, 0xef, 0xb9, 0x87, 0x64, 0x83, 0xb6, 0x3b, 0x8c, 0x05, 0xf3, 0x81, 0x0a, 0x14,
141         0xd3, 0x1b, 0xea, 0x9b, 0x1f, 0xd3, 0x67, 0xbc, 0xfb, 0x70, 0x5b, 0x3c, 0xbe, 0xee, 0x75, 0xc2,
142         0xeb, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x51, 0x35, 0xf3, 0xe2, 0xf9, 0x01, 0x00, 0x00,
143 }