mirror of
https://github.com/genuinetools/reg.git
synced 2024-08-21 14:20:23 -04:00
194 lines
8.6 KiB
Go
194 lines
8.6 KiB
Go
![]() |
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
|
// source: google/api/monitoring.proto
|
||
|
|
||
|
package serviceconfig // import "google.golang.org/genproto/googleapis/api/serviceconfig"
|
||
|
|
||
|
import proto "github.com/golang/protobuf/proto"
|
||
|
import fmt "fmt"
|
||
|
import math "math"
|
||
|
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||
|
|
||
|
// Reference imports to suppress errors if they are not otherwise used.
|
||
|
var _ = proto.Marshal
|
||
|
var _ = fmt.Errorf
|
||
|
var _ = math.Inf
|
||
|
|
||
|
// This is a compile-time assertion to ensure that this generated file
|
||
|
// is compatible with the proto package it is being compiled against.
|
||
|
// A compilation error at this line likely means your copy of the
|
||
|
// proto package needs to be updated.
|
||
|
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||
|
|
||
|
// Monitoring configuration of the service.
|
||
|
//
|
||
|
// The example below shows how to configure monitored resources and metrics
|
||
|
// for monitoring. In the example, a monitored resource and two metrics are
|
||
|
// defined. The `library.googleapis.com/book/returned_count` metric is sent
|
||
|
// to both producer and consumer projects, whereas the
|
||
|
// `library.googleapis.com/book/overdue_count` metric is only sent to the
|
||
|
// consumer project.
|
||
|
//
|
||
|
// monitored_resources:
|
||
|
// - type: library.googleapis.com/branch
|
||
|
// labels:
|
||
|
// - key: /city
|
||
|
// description: The city where the library branch is located in.
|
||
|
// - key: /name
|
||
|
// description: The name of the branch.
|
||
|
// metrics:
|
||
|
// - name: library.googleapis.com/book/returned_count
|
||
|
// metric_kind: DELTA
|
||
|
// value_type: INT64
|
||
|
// labels:
|
||
|
// - key: /customer_id
|
||
|
// - name: library.googleapis.com/book/overdue_count
|
||
|
// metric_kind: GAUGE
|
||
|
// value_type: INT64
|
||
|
// labels:
|
||
|
// - key: /customer_id
|
||
|
// monitoring:
|
||
|
// producer_destinations:
|
||
|
// - monitored_resource: library.googleapis.com/branch
|
||
|
// metrics:
|
||
|
// - library.googleapis.com/book/returned_count
|
||
|
// consumer_destinations:
|
||
|
// - monitored_resource: library.googleapis.com/branch
|
||
|
// metrics:
|
||
|
// - library.googleapis.com/book/returned_count
|
||
|
// - library.googleapis.com/book/overdue_count
|
||
|
type Monitoring struct {
|
||
|
// Monitoring configurations for sending metrics to the producer project.
|
||
|
// There can be multiple producer destinations, each one must have a
|
||
|
// different monitored resource type. A metric can be used in at most
|
||
|
// one producer destination.
|
||
|
ProducerDestinations []*Monitoring_MonitoringDestination `protobuf:"bytes,1,rep,name=producer_destinations,json=producerDestinations,proto3" json:"producer_destinations,omitempty"`
|
||
|
// Monitoring configurations for sending metrics to the consumer project.
|
||
|
// There can be multiple consumer destinations, each one must have a
|
||
|
// different monitored resource type. A metric can be used in at most
|
||
|
// one consumer destination.
|
||
|
ConsumerDestinations []*Monitoring_MonitoringDestination `protobuf:"bytes,2,rep,name=consumer_destinations,json=consumerDestinations,proto3" json:"consumer_destinations,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *Monitoring) Reset() { *m = Monitoring{} }
|
||
|
func (m *Monitoring) String() string { return proto.CompactTextString(m) }
|
||
|
func (*Monitoring) ProtoMessage() {}
|
||
|
func (*Monitoring) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_monitoring_4e73ce5561a2dc9c, []int{0}
|
||
|
}
|
||
|
func (m *Monitoring) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_Monitoring.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *Monitoring) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_Monitoring.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *Monitoring) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_Monitoring.Merge(dst, src)
|
||
|
}
|
||
|
func (m *Monitoring) XXX_Size() int {
|
||
|
return xxx_messageInfo_Monitoring.Size(m)
|
||
|
}
|
||
|
func (m *Monitoring) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_Monitoring.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_Monitoring proto.InternalMessageInfo
|
||
|
|
||
|
func (m *Monitoring) GetProducerDestinations() []*Monitoring_MonitoringDestination {
|
||
|
if m != nil {
|
||
|
return m.ProducerDestinations
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *Monitoring) GetConsumerDestinations() []*Monitoring_MonitoringDestination {
|
||
|
if m != nil {
|
||
|
return m.ConsumerDestinations
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// Configuration of a specific monitoring destination (the producer project
|
||
|
// or the consumer project).
|
||
|
type Monitoring_MonitoringDestination struct {
|
||
|
// The monitored resource type. The type must be defined in
|
||
|
// [Service.monitored_resources][google.api.Service.monitored_resources] section.
|
||
|
MonitoredResource string `protobuf:"bytes,1,opt,name=monitored_resource,json=monitoredResource,proto3" json:"monitored_resource,omitempty"`
|
||
|
// Names of the metrics to report to this monitoring destination.
|
||
|
// Each name must be defined in [Service.metrics][google.api.Service.metrics] section.
|
||
|
Metrics []string `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *Monitoring_MonitoringDestination) Reset() { *m = Monitoring_MonitoringDestination{} }
|
||
|
func (m *Monitoring_MonitoringDestination) String() string { return proto.CompactTextString(m) }
|
||
|
func (*Monitoring_MonitoringDestination) ProtoMessage() {}
|
||
|
func (*Monitoring_MonitoringDestination) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_monitoring_4e73ce5561a2dc9c, []int{0, 0}
|
||
|
}
|
||
|
func (m *Monitoring_MonitoringDestination) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_Monitoring_MonitoringDestination.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *Monitoring_MonitoringDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_Monitoring_MonitoringDestination.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *Monitoring_MonitoringDestination) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_Monitoring_MonitoringDestination.Merge(dst, src)
|
||
|
}
|
||
|
func (m *Monitoring_MonitoringDestination) XXX_Size() int {
|
||
|
return xxx_messageInfo_Monitoring_MonitoringDestination.Size(m)
|
||
|
}
|
||
|
func (m *Monitoring_MonitoringDestination) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_Monitoring_MonitoringDestination.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_Monitoring_MonitoringDestination proto.InternalMessageInfo
|
||
|
|
||
|
func (m *Monitoring_MonitoringDestination) GetMonitoredResource() string {
|
||
|
if m != nil {
|
||
|
return m.MonitoredResource
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *Monitoring_MonitoringDestination) GetMetrics() []string {
|
||
|
if m != nil {
|
||
|
return m.Metrics
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
proto.RegisterType((*Monitoring)(nil), "google.api.Monitoring")
|
||
|
proto.RegisterType((*Monitoring_MonitoringDestination)(nil), "google.api.Monitoring.MonitoringDestination")
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
proto.RegisterFile("google/api/monitoring.proto", fileDescriptor_monitoring_4e73ce5561a2dc9c)
|
||
|
}
|
||
|
|
||
|
var fileDescriptor_monitoring_4e73ce5561a2dc9c = []byte{
|
||
|
// 271 bytes of a gzipped FileD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