update vendor
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
19a32db84d
commit
94d1cfbfbf
10501 changed files with 2307943 additions and 29279 deletions
250
vendor/google.golang.org/genproto/googleapis/logging/type/http_request.pb.go
generated
vendored
Normal file
250
vendor/google.golang.org/genproto/googleapis/logging/type/http_request.pb.go
generated
vendored
Normal file
|
@ -0,0 +1,250 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/logging/type/http_request.proto
|
||||
|
||||
package ltype
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
duration "github.com/golang/protobuf/ptypes/duration"
|
||||
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
// A common proto for logging HTTP requests. Only contains semantics
|
||||
// defined by the HTTP specification. Product-specific logging
|
||||
// information MUST be defined in a separate message.
|
||||
type HttpRequest struct {
|
||||
// The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
|
||||
RequestMethod string `protobuf:"bytes,1,opt,name=request_method,json=requestMethod,proto3" json:"request_method,omitempty"`
|
||||
// The scheme (http, https), the host name, the path and the query
|
||||
// portion of the URL that was requested.
|
||||
// Example: `"http://example.com/some/info?color=red"`.
|
||||
RequestUrl string `protobuf:"bytes,2,opt,name=request_url,json=requestUrl,proto3" json:"request_url,omitempty"`
|
||||
// The size of the HTTP request message in bytes, including the request
|
||||
// headers and the request body.
|
||||
RequestSize int64 `protobuf:"varint,3,opt,name=request_size,json=requestSize,proto3" json:"request_size,omitempty"`
|
||||
// The response code indicating the status of response.
|
||||
// Examples: 200, 404.
|
||||
Status int32 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// The size of the HTTP response message sent back to the client, in bytes,
|
||||
// including the response headers and the response body.
|
||||
ResponseSize int64 `protobuf:"varint,5,opt,name=response_size,json=responseSize,proto3" json:"response_size,omitempty"`
|
||||
// The user agent sent by the client. Example:
|
||||
// `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)"`.
|
||||
UserAgent string `protobuf:"bytes,6,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
|
||||
// The IP address (IPv4 or IPv6) of the client that issued the HTTP
|
||||
// request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
|
||||
RemoteIp string `protobuf:"bytes,7,opt,name=remote_ip,json=remoteIp,proto3" json:"remote_ip,omitempty"`
|
||||
// The IP address (IPv4 or IPv6) of the origin server that the request was
|
||||
// sent to.
|
||||
ServerIp string `protobuf:"bytes,13,opt,name=server_ip,json=serverIp,proto3" json:"server_ip,omitempty"`
|
||||
// The referer URL of the request, as defined in
|
||||
// [HTTP/1.1 Header Field Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
|
||||
Referer string `protobuf:"bytes,8,opt,name=referer,proto3" json:"referer,omitempty"`
|
||||
// The request processing latency on the server, from the time the request was
|
||||
// received until the response was sent.
|
||||
Latency *duration.Duration `protobuf:"bytes,14,opt,name=latency,proto3" json:"latency,omitempty"`
|
||||
// Whether or not a cache lookup was attempted.
|
||||
CacheLookup bool `protobuf:"varint,11,opt,name=cache_lookup,json=cacheLookup,proto3" json:"cache_lookup,omitempty"`
|
||||
// Whether or not an entity was served from cache
|
||||
// (with or without validation).
|
||||
CacheHit bool `protobuf:"varint,9,opt,name=cache_hit,json=cacheHit,proto3" json:"cache_hit,omitempty"`
|
||||
// Whether or not the response was validated with the origin server before
|
||||
// being served from cache. This field is only meaningful if `cache_hit` is
|
||||
// True.
|
||||
CacheValidatedWithOriginServer bool `protobuf:"varint,10,opt,name=cache_validated_with_origin_server,json=cacheValidatedWithOriginServer,proto3" json:"cache_validated_with_origin_server,omitempty"`
|
||||
// The number of HTTP response bytes inserted into cache. Set only when a
|
||||
// cache fill was attempted.
|
||||
CacheFillBytes int64 `protobuf:"varint,12,opt,name=cache_fill_bytes,json=cacheFillBytes,proto3" json:"cache_fill_bytes,omitempty"`
|
||||
// Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
|
||||
Protocol string `protobuf:"bytes,15,opt,name=protocol,proto3" json:"protocol,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *HttpRequest) Reset() { *m = HttpRequest{} }
|
||||
func (m *HttpRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*HttpRequest) ProtoMessage() {}
|
||||
func (*HttpRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ea45f4ec7ed7b641, []int{0}
|
||||
}
|
||||
|
||||
func (m *HttpRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_HttpRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *HttpRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_HttpRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *HttpRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_HttpRequest.Merge(m, src)
|
||||
}
|
||||
func (m *HttpRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_HttpRequest.Size(m)
|
||||
}
|
||||
func (m *HttpRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_HttpRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_HttpRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *HttpRequest) GetRequestMethod() string {
|
||||
if m != nil {
|
||||
return m.RequestMethod
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *HttpRequest) GetRequestUrl() string {
|
||||
if m != nil {
|
||||
return m.RequestUrl
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *HttpRequest) GetRequestSize() int64 {
|
||||
if m != nil {
|
||||
return m.RequestSize
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *HttpRequest) GetStatus() int32 {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *HttpRequest) GetResponseSize() int64 {
|
||||
if m != nil {
|
||||
return m.ResponseSize
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *HttpRequest) GetUserAgent() string {
|
||||
if m != nil {
|
||||
return m.UserAgent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *HttpRequest) GetRemoteIp() string {
|
||||
if m != nil {
|
||||
return m.RemoteIp
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *HttpRequest) GetServerIp() string {
|
||||
if m != nil {
|
||||
return m.ServerIp
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *HttpRequest) GetReferer() string {
|
||||
if m != nil {
|
||||
return m.Referer
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *HttpRequest) GetLatency() *duration.Duration {
|
||||
if m != nil {
|
||||
return m.Latency
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *HttpRequest) GetCacheLookup() bool {
|
||||
if m != nil {
|
||||
return m.CacheLookup
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *HttpRequest) GetCacheHit() bool {
|
||||
if m != nil {
|
||||
return m.CacheHit
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *HttpRequest) GetCacheValidatedWithOriginServer() bool {
|
||||
if m != nil {
|
||||
return m.CacheValidatedWithOriginServer
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *HttpRequest) GetCacheFillBytes() int64 {
|
||||
if m != nil {
|
||||
return m.CacheFillBytes
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *HttpRequest) GetProtocol() string {
|
||||
if m != nil {
|
||||
return m.Protocol
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*HttpRequest)(nil), "google.logging.type.HttpRequest")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/logging/type/http_request.proto", fileDescriptor_ea45f4ec7ed7b641)
|
||||
}
|
||||
|
||||
var fileDescriptor_ea45f4ec7ed7b641 = []byte{
|
||||
// 511 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0x5b, 0x6b, 0x14, 0x31,
|
||||
0x18, 0x86, 0x99, 0x1e, 0xf6, 0x90, 0x3d, 0x58, 0x22, 0x68, 0xba, 0x6a, 0x5d, 0x2b, 0xca, 0x5c,
|
||||
0xcd, 0x80, 0xbd, 0x11, 0xbc, 0x72, 0x15, 0x6d, 0xa5, 0x62, 0x99, 0x7a, 0x00, 0x59, 0x18, 0x66,
|
||||
0x77, 0xbf, 0x9d, 0x09, 0x66, 0x27, 0x31, 0xc9, 0x54, 0xb6, 0x7f, 0xc6, 0x7b, 0x6f, 0xfc, 0x1f,
|
||||
0xfe, 0x2a, 0xc9, 0x97, 0x0c, 0x28, 0xf4, 0x66, 0x21, 0xef, 0xf3, 0xbc, 0x49, 0xf6, 0x9b, 0x90,
|
||||
0xa7, 0xa5, 0x94, 0xa5, 0x80, 0x54, 0xc8, 0xb2, 0xe4, 0x75, 0x99, 0xda, 0xad, 0x82, 0xb4, 0xb2,
|
||||
0x56, 0xe5, 0x1a, 0xbe, 0x37, 0x60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xba, 0x4c, 0xa4, 0x2e, 0xd3, 0x12, 0x6a, 0xdc, 0x2e, 0xf5, 0xa8, 0x50, 0xdc, 0xfc, 0xf7, 0xf6,
|
||||
0x5f, 0x08, 0xf7, 0xfb, 0x6b, 0xe7, 0xf0, 0xad, 0xaf, 0xbe, 0x12, 0xb2, 0x59, 0x25, 0xe7, 0xe1,
|
||||
0xa4, 0x8f, 0x5b, 0x05, 0x7f, 0x5a, 0x36, 0x47, 0x36, 0x0f, 0x6c, 0xee, 0xd8, 0xa2, 0x83, 0x9b,
|
||||
0x9f, 0xfc, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x7d, 0xa3, 0x36, 0xbb, 0x57, 0x03, 0x00, 0x00,
|
||||
}
|
125
vendor/google.golang.org/genproto/googleapis/logging/type/log_severity.pb.go
generated
vendored
Normal file
125
vendor/google.golang.org/genproto/googleapis/logging/type/log_severity.pb.go
generated
vendored
Normal file
|
@ -0,0 +1,125 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/logging/type/log_severity.proto
|
||||
|
||||
package ltype
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
// The severity of the event described in a log entry, expressed as one of the
|
||||
// standard severity levels listed below. For your reference, the levels are
|
||||
// assigned the listed numeric values. The effect of using numeric values other
|
||||
// than those listed is undefined.
|
||||
//
|
||||
// You can filter for log entries by severity. For example, the following
|
||||
// filter expression will match log entries with severities `INFO`, `NOTICE`,
|
||||
// and `WARNING`:
|
||||
//
|
||||
// severity > DEBUG AND severity <= WARNING
|
||||
//
|
||||
// If you are writing log entries, you should map other severity encodings to
|
||||
// one of these standard levels. For example, you might map all of Java's FINE,
|
||||
// FINER, and FINEST levels to `LogSeverity.DEBUG`. You can preserve the
|
||||
// original severity level in the log entry payload if you wish.
|
||||
type LogSeverity int32
|
||||
|
||||
const (
|
||||
// (0) The log entry has no assigned severity level.
|
||||
LogSeverity_DEFAULT LogSeverity = 0
|
||||
// (100) Debug or trace information.
|
||||
LogSeverity_DEBUG LogSeverity = 100
|
||||
// (200) Routine information, such as ongoing status or performance.
|
||||
LogSeverity_INFO LogSeverity = 200
|
||||
// (300) Normal but significant events, such as start up, shut down, or
|
||||
// a configuration change.
|
||||
LogSeverity_NOTICE LogSeverity = 300
|
||||
// (400) Warning events might cause problems.
|
||||
LogSeverity_WARNING LogSeverity = 400
|
||||
// (500) Error events are likely to cause problems.
|
||||
LogSeverity_ERROR LogSeverity = 500
|
||||
// (600) Critical events cause more severe problems or outages.
|
||||
LogSeverity_CRITICAL LogSeverity = 600
|
||||
// (700) A person must take an action immediately.
|
||||
LogSeverity_ALERT LogSeverity = 700
|
||||
// (800) One or more systems are unusable.
|
||||
LogSeverity_EMERGENCY LogSeverity = 800
|
||||
)
|
||||
|
||||
var LogSeverity_name = map[int32]string{
|
||||
0: "DEFAULT",
|
||||
100: "DEBUG",
|
||||
200: "INFO",
|
||||
300: "NOTICE",
|
||||
400: "WARNING",
|
||||
500: "ERROR",
|
||||
600: "CRITICAL",
|
||||
700: "ALERT",
|
||||
800: "EMERGENCY",
|
||||
}
|
||||
|
||||
var LogSeverity_value = map[string]int32{
|
||||
"DEFAULT": 0,
|
||||
"DEBUG": 100,
|
||||
"INFO": 200,
|
||||
"NOTICE": 300,
|
||||
"WARNING": 400,
|
||||
"ERROR": 500,
|
||||
"CRITICAL": 600,
|
||||
"ALERT": 700,
|
||||
"EMERGENCY": 800,
|
||||
}
|
||||
|
||||
func (x LogSeverity) String() string {
|
||||
return proto.EnumName(LogSeverity_name, int32(x))
|
||||
}
|
||||
|
||||
func (LogSeverity) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_80f950dcc0b66556, []int{0}
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("google.logging.type.LogSeverity", LogSeverity_name, LogSeverity_value)
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/logging/type/log_severity.proto", fileDescriptor_80f950dcc0b66556)
|
||||
}
|
||||
|
||||
var fileDescriptor_80f950dcc0b66556 = []byte{
|
||||
// 309 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4b, 0xcf, 0xcf, 0x4f,
|
||||
0xcf, 0x49, 0xd5, 0xcf, 0xc9, 0x4f, 0x4f, 0xcf, 0xcc, 0x4b, 0xd7, 0x2f, 0xa9, 0x2c, 0x00, 0x73,
|
||||
0xe2, 0x8b, 0x53, 0xcb, 0x52, 0x8b, 0x32, 0x4b, 0x2a, 0xf5, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85,
|
||||
0x84, 0x21, 0xea, 0xf4, 0xa0, 0xea, 0xf4, 0x40, 0xea, 0xa4, 0x64, 0xa0, 0x9a, 0x13, 0x0b, 0x32,
|
||||
0xf5, 0x13, 0xf3, 0xf2, 0xf2, 0x4b, 0x12, 0x4b, 0x32, 0xf3, 0xf3, 0x8a, 0x21, 0x5a, 0xb4, 0x9a,
|
||||
0x18, 0xb9, 0xb8, 0x7d, 0xf2, 0xd3, 0x83, 0xa1, 0x06, 0x09, 0x71, 0x73, 0xb1, 0xbb, 0xb8, 0xba,
|
||||
0x39, 0x86, 0xfa, 0x84, 0x08, 0x30, 0x08, 0x71, 0x72, 0xb1, 0xba, 0xb8, 0x3a, 0x85, 0xba, 0x0b,
|
||||
0xa4, 0x08, 0x71, 0x72, 0xb1, 0x78, 0xfa, 0xb9, 0xf9, 0x0b, 0x9c, 0x60, 0x14, 0xe2, 0xe6, 0x62,
|
||||
0xf3, 0xf3, 0x0f, 0xf1, 0x74, 0x76, 0x15, 0x58, 0xc3, 0x24, 0xc4, 0xc3, 0xc5, 0x1e, 0xee, 0x18,
|
||||
0xe4, 0xe7, 0xe9, 0xe7, 0x2e, 0x30, 0x81, 0x59, 0x88, 0x8b, 0x8b, 0xd5, 0x35, 0x28, 0xc8, 0x3f,
|
||||
0x48, 0xe0, 0x0b, 0xb3, 0x10, 0x2f, 0x17, 0x87, 0x73, 0x90, 0x67, 0x88, 0xa7, 0xb3, 0xa3, 0x8f,
|
||||
0xc0, 0x0d, 0x16, 0x90, 0x94, 0xa3, 0x8f, 0x6b, 0x50, 0x88, 0xc0, 0x1e, 0x56, 0x21, 0x3e, 0x2e,
|
||||
0x4e, 0x57, 0x5f, 0xd7, 0x20, 0x77, 0x57, 0x3f, 0xe7, 0x48, 0x81, 0x05, 0x6c, 0x4e, 0xf3, 0x19,
|
||||
0xb9, 0xc4, 0x93, 0xf3, 0x73, 0xf5, 0xb0, 0x38, 0xdf, 0x49, 0x00, 0xc9, 0x75, 0x01, 0x20, 0x27,
|
||||
0x07, 0x30, 0x46, 0x59, 0x40, 0x15, 0xa6, 0xe7, 0xe7, 0x24, 0xe6, 0xa5, 0xeb, 0xe5, 0x17, 0xa5,
|
||||
0xeb, 0xa7, 0xa7, 0xe6, 0x81, 0x3d, 0xa4, 0x0f, 0x91, 0x4a, 0x2c, 0xc8, 0x2c, 0x46, 0x09, 0x2e,
|
||||
0xeb, 0x1c, 0x10, 0xb9, 0x8a, 0x49, 0xd2, 0x1d, 0xa2, 0xd5, 0x39, 0x27, 0xbf, 0x34, 0x45, 0xcf,
|
||||
0x07, 0x6a, 0x53, 0x48, 0x65, 0x41, 0xea, 0x29, 0x98, 0x5c, 0x0c, 0x58, 0x2e, 0x06, 0x2a, 0x17,
|
||||
0x03, 0x92, 0x4b, 0x62, 0x03, 0x1b, 0x6e, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xea, 0x8a, 0xa7,
|
||||
0x20, 0x8a, 0x01, 0x00, 0x00,
|
||||
}
|
575
vendor/google.golang.org/genproto/googleapis/logging/v2/log_entry.pb.go
generated
vendored
Normal file
575
vendor/google.golang.org/genproto/googleapis/logging/v2/log_entry.pb.go
generated
vendored
Normal file
|
@ -0,0 +1,575 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/logging/v2/log_entry.proto
|
||||
|
||||
package logging
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
any "github.com/golang/protobuf/ptypes/any"
|
||||
_struct "github.com/golang/protobuf/ptypes/struct"
|
||||
timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
monitoredres "google.golang.org/genproto/googleapis/api/monitoredres"
|
||||
_type "google.golang.org/genproto/googleapis/logging/type"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
// An individual entry in a log.
|
||||
type LogEntry struct {
|
||||
// Required. The resource name of the log to which this log entry belongs:
|
||||
//
|
||||
// "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
||||
// "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
||||
// "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
||||
// "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
||||
//
|
||||
// A project number may optionally be used in place of PROJECT_ID. The
|
||||
// project number is translated to its corresponding PROJECT_ID internally
|
||||
// and the `log_name` field will contain PROJECT_ID in queries and exports.
|
||||
//
|
||||
// `[LOG_ID]` must be URL-encoded within `log_name`. Example:
|
||||
// `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
|
||||
// `[LOG_ID]` must be less than 512 characters long and can only include the
|
||||
// following characters: upper and lower case alphanumeric characters,
|
||||
// forward-slash, underscore, hyphen, and period.
|
||||
//
|
||||
// For backward compatibility, if `log_name` begins with a forward-slash, such
|
||||
// as `/projects/...`, then the log entry is ingested as usual but the
|
||||
// forward-slash is removed. Listing the log entry will not show the leading
|
||||
// slash and filtering for a log name with a leading slash will never return
|
||||
// any results.
|
||||
LogName string `protobuf:"bytes,12,opt,name=log_name,json=logName,proto3" json:"log_name,omitempty"`
|
||||
// Required. The primary monitored resource associated with this log entry.
|
||||
// Example: a log entry that reports a database error would be
|
||||
// associated with the monitored resource designating the particular
|
||||
// database that reported the error.
|
||||
Resource *monitoredres.MonitoredResource `protobuf:"bytes,8,opt,name=resource,proto3" json:"resource,omitempty"`
|
||||
// Optional. The log entry payload, which can be one of multiple types.
|
||||
//
|
||||
// Types that are valid to be assigned to Payload:
|
||||
// *LogEntry_ProtoPayload
|
||||
// *LogEntry_TextPayload
|
||||
// *LogEntry_JsonPayload
|
||||
Payload isLogEntry_Payload `protobuf_oneof:"payload"`
|
||||
// Optional. The time the event described by the log entry occurred.
|
||||
// This time is used to compute the log entry's age and to enforce
|
||||
// the logs retention period. If this field is omitted in a new log
|
||||
// entry, then Stackdriver Logging assigns it the current time.
|
||||
// Timestamps have nanosecond accuracy, but trailing zeros in the fractional
|
||||
// seconds might be omitted when the timestamp is displayed.
|
||||
//
|
||||
// Incoming log entries should have timestamps that are no more than
|
||||
// the [logs retention period](/logging/quotas) in the past,
|
||||
// and no more than 24 hours in the future. Log entries outside those time
|
||||
// boundaries will not be available when calling `entries.list`, but
|
||||
// those log entries can still be exported with
|
||||
// [LogSinks](/logging/docs/api/tasks/exporting-logs).
|
||||
Timestamp *timestamp.Timestamp `protobuf:"bytes,9,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
||||
// Output only. The time the log entry was received by Stackdriver Logging.
|
||||
ReceiveTimestamp *timestamp.Timestamp `protobuf:"bytes,24,opt,name=receive_timestamp,json=receiveTimestamp,proto3" json:"receive_timestamp,omitempty"`
|
||||
// Optional. The severity of the log entry. The default value is
|
||||
// `LogSeverity.DEFAULT`.
|
||||
Severity _type.LogSeverity `protobuf:"varint,10,opt,name=severity,proto3,enum=google.logging.type.LogSeverity" json:"severity,omitempty"`
|
||||
// Optional. A unique identifier for the log entry. If you provide a value,
|
||||
// then Stackdriver Logging considers other log entries in the same project,
|
||||
// with the same `timestamp`, and with the same `insert_id` to be duplicates
|
||||
// which can be removed. If omitted in new log entries, then Stackdriver
|
||||
// Logging assigns its own unique identifier. The `insert_id` is also used
|
||||
// to order log entries that have the same `timestamp` value.
|
||||
InsertId string `protobuf:"bytes,4,opt,name=insert_id,json=insertId,proto3" json:"insert_id,omitempty"`
|
||||
// Optional. Information about the HTTP request associated with this
|
||||
// log entry, if applicable.
|
||||
HttpRequest *_type.HttpRequest `protobuf:"bytes,7,opt,name=http_request,json=httpRequest,proto3" json:"http_request,omitempty"`
|
||||
// Optional. A set of user-defined (key, value) data that provides additional
|
||||
// information about the log entry.
|
||||
Labels map[string]string `protobuf:"bytes,11,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
// Output only. Additional metadata about the monitored resource.
|
||||
// Only `k8s_container`, `k8s_pod`, and `k8s_node` MonitoredResources have
|
||||
// this field populated.
|
||||
Metadata *monitoredres.MonitoredResourceMetadata `protobuf:"bytes,25,opt,name=metadata,proto3" json:"metadata,omitempty"`
|
||||
// Optional. Information about an operation associated with the log entry, if
|
||||
// applicable.
|
||||
Operation *LogEntryOperation `protobuf:"bytes,15,opt,name=operation,proto3" json:"operation,omitempty"`
|
||||
// Optional. Resource name of the trace associated with the log entry, if any.
|
||||
// If it contains a relative resource name, the name is assumed to be relative
|
||||
// to `//tracing.googleapis.com`. Example:
|
||||
// `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824`
|
||||
Trace string `protobuf:"bytes,22,opt,name=trace,proto3" json:"trace,omitempty"`
|
||||
// Optional. The span ID within the trace associated with the log entry. For
|
||||
// Stackdriver Trace spans, this is the same format that the Stackdriver Trace
|
||||
// API v2 uses: a 16-character hexadecimal encoding of an 8-byte array, such
|
||||
// as <code>"000000000000004a"</code>.
|
||||
SpanId string `protobuf:"bytes,27,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`
|
||||
// Optional. Source code location information associated with the log entry,
|
||||
// if any.
|
||||
SourceLocation *LogEntrySourceLocation `protobuf:"bytes,23,opt,name=source_location,json=sourceLocation,proto3" json:"source_location,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *LogEntry) Reset() { *m = LogEntry{} }
|
||||
func (m *LogEntry) String() string { return proto.CompactTextString(m) }
|
||||
func (*LogEntry) ProtoMessage() {}
|
||||
func (*LogEntry) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_8ba2017251165146, []int{0}
|
||||
}
|
||||
|
||||
func (m *LogEntry) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_LogEntry.Unmarshal(m, b)
|
||||
}
|
||||
func (m *LogEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_LogEntry.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *LogEntry) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_LogEntry.Merge(m, src)
|
||||
}
|
||||
func (m *LogEntry) XXX_Size() int {
|
||||
return xxx_messageInfo_LogEntry.Size(m)
|
||||
}
|
||||
func (m *LogEntry) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_LogEntry.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_LogEntry proto.InternalMessageInfo
|
||||
|
||||
func (m *LogEntry) GetLogName() string {
|
||||
if m != nil {
|
||||
return m.LogName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *LogEntry) GetResource() *monitoredres.MonitoredResource {
|
||||
if m != nil {
|
||||
return m.Resource
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type isLogEntry_Payload interface {
|
||||
isLogEntry_Payload()
|
||||
}
|
||||
|
||||
type LogEntry_ProtoPayload struct {
|
||||
ProtoPayload *any.Any `protobuf:"bytes,2,opt,name=proto_payload,json=protoPayload,proto3,oneof"`
|
||||
}
|
||||
|
||||
type LogEntry_TextPayload struct {
|
||||
TextPayload string `protobuf:"bytes,3,opt,name=text_payload,json=textPayload,proto3,oneof"`
|
||||
}
|
||||
|
||||
type LogEntry_JsonPayload struct {
|
||||
JsonPayload *_struct.Struct `protobuf:"bytes,6,opt,name=json_payload,json=jsonPayload,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*LogEntry_ProtoPayload) isLogEntry_Payload() {}
|
||||
|
||||
func (*LogEntry_TextPayload) isLogEntry_Payload() {}
|
||||
|
||||
func (*LogEntry_JsonPayload) isLogEntry_Payload() {}
|
||||
|
||||
func (m *LogEntry) GetPayload() isLogEntry_Payload {
|
||||
if m != nil {
|
||||
return m.Payload
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *LogEntry) GetProtoPayload() *any.Any {
|
||||
if x, ok := m.GetPayload().(*LogEntry_ProtoPayload); ok {
|
||||
return x.ProtoPayload
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *LogEntry) GetTextPayload() string {
|
||||
if x, ok := m.GetPayload().(*LogEntry_TextPayload); ok {
|
||||
return x.TextPayload
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *LogEntry) GetJsonPayload() *_struct.Struct {
|
||||
if x, ok := m.GetPayload().(*LogEntry_JsonPayload); ok {
|
||||
return x.JsonPayload
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *LogEntry) GetTimestamp() *timestamp.Timestamp {
|
||||
if m != nil {
|
||||
return m.Timestamp
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *LogEntry) GetReceiveTimestamp() *timestamp.Timestamp {
|
||||
if m != nil {
|
||||
return m.ReceiveTimestamp
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *LogEntry) GetSeverity() _type.LogSeverity {
|
||||
if m != nil {
|
||||
return m.Severity
|
||||
}
|
||||
return _type.LogSeverity_DEFAULT
|
||||
}
|
||||
|
||||
func (m *LogEntry) GetInsertId() string {
|
||||
if m != nil {
|
||||
return m.InsertId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *LogEntry) GetHttpRequest() *_type.HttpRequest {
|
||||
if m != nil {
|
||||
return m.HttpRequest
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *LogEntry) GetLabels() map[string]string {
|
||||
if m != nil {
|
||||
return m.Labels
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *LogEntry) GetMetadata() *monitoredres.MonitoredResourceMetadata {
|
||||
if m != nil {
|
||||
return m.Metadata
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *LogEntry) GetOperation() *LogEntryOperation {
|
||||
if m != nil {
|
||||
return m.Operation
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *LogEntry) GetTrace() string {
|
||||
if m != nil {
|
||||
return m.Trace
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *LogEntry) GetSpanId() string {
|
||||
if m != nil {
|
||||
return m.SpanId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *LogEntry) GetSourceLocation() *LogEntrySourceLocation {
|
||||
if m != nil {
|
||||
return m.SourceLocation
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// XXX_OneofFuncs is for the internal use of the proto package.
|
||||
func (*LogEntry) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
||||
return _LogEntry_OneofMarshaler, _LogEntry_OneofUnmarshaler, _LogEntry_OneofSizer, []interface{}{
|
||||
(*LogEntry_ProtoPayload)(nil),
|
||||
(*LogEntry_TextPayload)(nil),
|
||||
(*LogEntry_JsonPayload)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
func _LogEntry_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||||
m := msg.(*LogEntry)
|
||||
// payload
|
||||
switch x := m.Payload.(type) {
|
||||
case *LogEntry_ProtoPayload:
|
||||
b.EncodeVarint(2<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.ProtoPayload); err != nil {
|
||||
return err
|
||||
}
|
||||
case *LogEntry_TextPayload:
|
||||
b.EncodeVarint(3<<3 | proto.WireBytes)
|
||||
b.EncodeStringBytes(x.TextPayload)
|
||||
case *LogEntry_JsonPayload:
|
||||
b.EncodeVarint(6<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.JsonPayload); err != nil {
|
||||
return err
|
||||
}
|
||||
case nil:
|
||||
default:
|
||||
return fmt.Errorf("LogEntry.Payload has unexpected type %T", x)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func _LogEntry_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
||||
m := msg.(*LogEntry)
|
||||
switch tag {
|
||||
case 2: // payload.proto_payload
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(any.Any)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.Payload = &LogEntry_ProtoPayload{msg}
|
||||
return true, err
|
||||
case 3: // payload.text_payload
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeStringBytes()
|
||||
m.Payload = &LogEntry_TextPayload{x}
|
||||
return true, err
|
||||
case 6: // payload.json_payload
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(_struct.Struct)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.Payload = &LogEntry_JsonPayload{msg}
|
||||
return true, err
|
||||
default:
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
|
||||
func _LogEntry_OneofSizer(msg proto.Message) (n int) {
|
||||
m := msg.(*LogEntry)
|
||||
// payload
|
||||
switch x := m.Payload.(type) {
|
||||
case *LogEntry_ProtoPayload:
|
||||
s := proto.Size(x.ProtoPayload)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *LogEntry_TextPayload:
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.TextPayload)))
|
||||
n += len(x.TextPayload)
|
||||
case *LogEntry_JsonPayload:
|
||||
s := proto.Size(x.JsonPayload)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case nil:
|
||||
default:
|
||||
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
// Additional information about a potentially long-running operation with which
|
||||
// a log entry is associated.
|
||||
type LogEntryOperation struct {
|
||||
// Optional. An arbitrary operation identifier. Log entries with the
|
||||
// same identifier are assumed to be part of the same operation.
|
||||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
// Optional. An arbitrary producer identifier. The combination of
|
||||
// `id` and `producer` must be globally unique. Examples for `producer`:
|
||||
// `"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`.
|
||||
Producer string `protobuf:"bytes,2,opt,name=producer,proto3" json:"producer,omitempty"`
|
||||
// Optional. Set this to True if this is the first log entry in the operation.
|
||||
First bool `protobuf:"varint,3,opt,name=first,proto3" json:"first,omitempty"`
|
||||
// Optional. Set this to True if this is the last log entry in the operation.
|
||||
Last bool `protobuf:"varint,4,opt,name=last,proto3" json:"last,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *LogEntryOperation) Reset() { *m = LogEntryOperation{} }
|
||||
func (m *LogEntryOperation) String() string { return proto.CompactTextString(m) }
|
||||
func (*LogEntryOperation) ProtoMessage() {}
|
||||
func (*LogEntryOperation) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_8ba2017251165146, []int{1}
|
||||
}
|
||||
|
||||
func (m *LogEntryOperation) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_LogEntryOperation.Unmarshal(m, b)
|
||||
}
|
||||
func (m *LogEntryOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_LogEntryOperation.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *LogEntryOperation) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_LogEntryOperation.Merge(m, src)
|
||||
}
|
||||
func (m *LogEntryOperation) XXX_Size() int {
|
||||
return xxx_messageInfo_LogEntryOperation.Size(m)
|
||||
}
|
||||
func (m *LogEntryOperation) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_LogEntryOperation.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_LogEntryOperation proto.InternalMessageInfo
|
||||
|
||||
func (m *LogEntryOperation) GetId() string {
|
||||
if m != nil {
|
||||
return m.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *LogEntryOperation) GetProducer() string {
|
||||
if m != nil {
|
||||
return m.Producer
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *LogEntryOperation) GetFirst() bool {
|
||||
if m != nil {
|
||||
return m.First
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *LogEntryOperation) GetLast() bool {
|
||||
if m != nil {
|
||||
return m.Last
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// Additional information about the source code location that produced the log
|
||||
// entry.
|
||||
type LogEntrySourceLocation struct {
|
||||
// Optional. Source file name. Depending on the runtime environment, this
|
||||
// might be a simple name or a fully-qualified name.
|
||||
File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
|
||||
// Optional. Line within the source file. 1-based; 0 indicates no line number
|
||||
// available.
|
||||
Line int64 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`
|
||||
// Optional. Human-readable name of the function or method being invoked, with
|
||||
// optional context such as the class or package name. This information may be
|
||||
// used in contexts such as the logs viewer, where a file and line number are
|
||||
// less meaningful. The format can vary by language. For example:
|
||||
// `qual.if.ied.Class.method` (Java), `dir/package.func` (Go), `function`
|
||||
// (Python).
|
||||
Function string `protobuf:"bytes,3,opt,name=function,proto3" json:"function,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *LogEntrySourceLocation) Reset() { *m = LogEntrySourceLocation{} }
|
||||
func (m *LogEntrySourceLocation) String() string { return proto.CompactTextString(m) }
|
||||
func (*LogEntrySourceLocation) ProtoMessage() {}
|
||||
func (*LogEntrySourceLocation) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_8ba2017251165146, []int{2}
|
||||
}
|
||||
|
||||
func (m *LogEntrySourceLocation) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_LogEntrySourceLocation.Unmarshal(m, b)
|
||||
}
|
||||
func (m *LogEntrySourceLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_LogEntrySourceLocation.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *LogEntrySourceLocation) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_LogEntrySourceLocation.Merge(m, src)
|
||||
}
|
||||
func (m *LogEntrySourceLocation) XXX_Size() int {
|
||||
return xxx_messageInfo_LogEntrySourceLocation.Size(m)
|
||||
}
|
||||
func (m *LogEntrySourceLocation) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_LogEntrySourceLocation.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_LogEntrySourceLocation proto.InternalMessageInfo
|
||||
|
||||
func (m *LogEntrySourceLocation) GetFile() string {
|
||||
if m != nil {
|
||||
return m.File
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *LogEntrySourceLocation) GetLine() int64 {
|
||||
if m != nil {
|
||||
return m.Line
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *LogEntrySourceLocation) GetFunction() string {
|
||||
if m != nil {
|
||||
return m.Function
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*LogEntry)(nil), "google.logging.v2.LogEntry")
|
||||
proto.RegisterMapType((map[string]string)(nil), "google.logging.v2.LogEntry.LabelsEntry")
|
||||
proto.RegisterType((*LogEntryOperation)(nil), "google.logging.v2.LogEntryOperation")
|
||||
proto.RegisterType((*LogEntrySourceLocation)(nil), "google.logging.v2.LogEntrySourceLocation")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/logging/v2/log_entry.proto", fileDescriptor_8ba2017251165146) }
|
||||
|
||||
var fileDescriptor_8ba2017251165146 = []byte{
|
||||
// 748 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x54, 0x5d, 0x6f, 0xf3, 0x34,
|
||||
0x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c, 0x2c, 0x81, 0xec, 0xa4, 0xff, 0xc9,
|
||||
0x3b, 0x17, 0xa8, 0xb9, 0x32, 0x20, 0xbc, 0x87, 0xaa, 0xbf, 0xb2, 0x85, 0xe7, 0x80, 0xae, 0x09,
|
||||
0x8d, 0xc7, 0x39, 0x8d, 0x33, 0x06, 0xcf, 0xa4, 0x41, 0xf2, 0xe4, 0xdb, 0xca, 0xb9, 0x33, 0x6c,
|
||||
0xa0, 0xba, 0xdd, 0xf0, 0x53, 0x8e, 0xf6, 0x37, 0x3e, 0x14, 0xef, 0xa0, 0x0a, 0x0f, 0x6d, 0xab,
|
||||
0x0a, 0x0f, 0x71, 0x07, 0xb9, 0x89, 0x92, 0x61, 0x16, 0x30, 0x65, 0x9b, 0x95, 0xb9, 0x51, 0x99,
|
||||
0x72, 0x95, 0x6a, 0x78, 0x50, 0x2e, 0xc9, 0x13, 0x8c, 0xd1, 0xfb, 0x98, 0xa6, 0x1a, 0x96, 0xc8,
|
||||
0x25, 0x10, 0x9f, 0x8e, 0xd1, 0xe1, 0xdb, 0x9f, 0x66, 0xd0, 0x53, 0x1e, 0x33, 0xab, 0x08, 0x31,
|
||||
0x74, 0xe0, 0x22, 0x37, 0x5f, 0x25, 0x10, 0x1b, 0x1f, 0xd3, 0x4c, 0x04, 0x30, 0xbf, 0x6a, 0xee,
|
||||
0xa3, 0xc8, 0x87, 0x7f, 0x38, 0xe8, 0xe3, 0x40, 0xce, 0x36, 0xe7, 0x39, 0xfc, 0x50, 0xa8, 0x3e,
|
||||
0xc2, 0xff, 0xc0, 0xf9, 0xf9, 0xdc, 0x62, 0x22, 0x19, 0x53, 0x11, 0xf9, 0x52, 0x45, 0xfd, 0x88,
|
||||
0x09, 0x78, 0x5f, 0xfd, 0xbc, 0x44, 0x13, 0x9e, 0xae, 0xfc, 0xec, 0x2f, 0x6d, 0xf8, 0x8f, 0xe3,
|
||||
0xfc, 0x59, 0x69, 0xdf, 0xe6, 0xec, 0x9b, 0x58, 0x66, 0xa1, 0xb9, 0x2c, 0xd0, 0x79, 0x1e, 0xfc,
|
||||
0x5d, 0x54, 0xc6, 0x50, 0x19, 0xdb, 0xca, 0xf8, 0x79, 0xf0, 0x52, 0x83, 0xde, 0xdf, 0xfc, 0x1b,
|
||||
0x00, 0x00, 0xff, 0xff, 0xc7, 0x91, 0xad, 0xed, 0x47, 0x06, 0x00, 0x00,
|
||||
}
|
1041
vendor/google.golang.org/genproto/googleapis/logging/v2/logging.pb.go
generated
vendored
Normal file
1041
vendor/google.golang.org/genproto/googleapis/logging/v2/logging.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
1573
vendor/google.golang.org/genproto/googleapis/logging/v2/logging_config.pb.go
generated
vendored
Normal file
1573
vendor/google.golang.org/genproto/googleapis/logging/v2/logging_config.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
847
vendor/google.golang.org/genproto/googleapis/logging/v2/logging_metrics.pb.go
generated
vendored
Normal file
847
vendor/google.golang.org/genproto/googleapis/logging/v2/logging_metrics.pb.go
generated
vendored
Normal file
|
@ -0,0 +1,847 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/logging/v2/logging_metrics.proto
|
||||
|
||||
package logging
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
empty "github.com/golang/protobuf/ptypes/empty"
|
||||
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
distribution "google.golang.org/genproto/googleapis/api/distribution"
|
||||
metric "google.golang.org/genproto/googleapis/api/metric"
|
||||
_ "google.golang.org/genproto/protobuf/field_mask"
|
||||
math "math"
|
||||
)
|
||||
|
||||
import (
|
||||
context "golang.org/x/net/context"
|
||||
grpc "google.golang.org/grpc"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
// Stackdriver Logging API version.
|
||||
type LogMetric_ApiVersion int32
|
||||
|
||||
const (
|
||||
// Stackdriver Logging API v2.
|
||||
LogMetric_V2 LogMetric_ApiVersion = 0
|
||||
// Stackdriver Logging API v1.
|
||||
LogMetric_V1 LogMetric_ApiVersion = 1
|
||||
)
|
||||
|
||||
var LogMetric_ApiVersion_name = map[int32]string{
|
||||
0: "V2",
|
||||
1: "V1",
|
||||
}
|
||||
|
||||
var LogMetric_ApiVersion_value = map[string]int32{
|
||||
"V2": 0,
|
||||
"V1": 1,
|
||||
}
|
||||
|
||||
func (x LogMetric_ApiVersion) String() string {
|
||||
return proto.EnumName(LogMetric_ApiVersion_name, int32(x))
|
||||
}
|
||||
|
||||
func (LogMetric_ApiVersion) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_25f112b6cac96ff1, []int{0, 0}
|
||||
}
|
||||
|
||||
// Describes a logs-based metric. The value of the metric is the
|
||||
// number of log entries that match a logs filter in a given time interval.
|
||||
//
|
||||
// Logs-based metric can also be used to extract values from logs and create a
|
||||
// a distribution of the values. The distribution records the statistics of the
|
||||
// extracted values along with an optional histogram of the values as specified
|
||||
// by the bucket options.
|
||||
type LogMetric struct {
|
||||
// Required. The client-assigned metric identifier.
|
||||
// Examples: `"error_count"`, `"nginx/requests"`.
|
||||
//
|
||||
// Metric identifiers are limited to 100 characters and can include
|
||||
// only the following characters: `A-Z`, `a-z`, `0-9`, and the
|
||||
// special characters `_-.,+!*',()%/`. The forward-slash character
|
||||
// (`/`) denotes a hierarchy of name pieces, and it cannot be the
|
||||
// first character of the name.
|
||||
//
|
||||
// The metric identifier in this field must not be
|
||||
// [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding).
|
||||
// However, when the metric identifier appears as the `[METRIC_ID]`
|
||||
// part of a `metric_name` API parameter, then the metric identifier
|
||||
// must be URL-encoded. Example:
|
||||
// `"projects/my-project/metrics/nginx%2Frequests"`.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// Optional. A description of this metric, which is used in documentation.
|
||||
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
||||
// Required. An [advanced logs filter](/logging/docs/view/advanced_filters)
|
||||
// which is used to match log entries.
|
||||
// Example:
|
||||
//
|
||||
// "resource.type=gae_app AND severity>=ERROR"
|
||||
//
|
||||
// The maximum length of the filter is 20000 characters.
|
||||
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
|
||||
// Optional. The metric descriptor associated with the logs-based metric.
|
||||
// If unspecified, it uses a default metric descriptor with a DELTA metric
|
||||
// kind, INT64 value type, with no labels and a unit of "1". Such a metric
|
||||
// counts the number of log entries matching the `filter` expression.
|
||||
//
|
||||
// The `name`, `type`, and `description` fields in the `metric_descriptor`
|
||||
// are output only, and is constructed using the `name` and `description`
|
||||
// field in the LogMetric.
|
||||
//
|
||||
// To create a logs-based metric that records a distribution of log values, a
|
||||
// DELTA metric kind with a DISTRIBUTION value type must be used along with
|
||||
// a `value_extractor` expression in the LogMetric.
|
||||
//
|
||||
// Each label in the metric descriptor must have a matching label
|
||||
// name as the key and an extractor expression as the value in the
|
||||
// `label_extractors` map.
|
||||
//
|
||||
// The `metric_kind` and `value_type` fields in the `metric_descriptor` cannot
|
||||
// be updated once initially configured. New labels can be added in the
|
||||
// `metric_descriptor`, but existing labels cannot be modified except for
|
||||
// their description.
|
||||
MetricDescriptor *metric.MetricDescriptor `protobuf:"bytes,5,opt,name=metric_descriptor,json=metricDescriptor,proto3" json:"metric_descriptor,omitempty"`
|
||||
// Optional. A `value_extractor` is required when using a distribution
|
||||
// logs-based metric to extract the values to record from a log entry.
|
||||
// Two functions are supported for value extraction: `EXTRACT(field)` or
|
||||
// `REGEXP_EXTRACT(field, regex)`. The argument are:
|
||||
// 1. field: The name of the log entry field from which the value is to be
|
||||
// extracted.
|
||||
// 2. regex: A regular expression using the Google RE2 syntax
|
||||
// (https://github.com/google/re2/wiki/Syntax) with a single capture
|
||||
// group to extract data from the specified log entry field. The value
|
||||
// of the field is converted to a string before applying the regex.
|
||||
// It is an error to specify a regex that does not include exactly one
|
||||
// capture group.
|
||||
//
|
||||
// The result of the extraction must be convertible to a double type, as the
|
||||
// distribution always records double values. If either the extraction or
|
||||
// the conversion to double fails, then those values are not recorded in the
|
||||
// distribution.
|
||||
//
|
||||
// Example: `REGEXP_EXTRACT(jsonPayload.request, ".*quantity=(\d+).*")`
|
||||
ValueExtractor string `protobuf:"bytes,6,opt,name=value_extractor,json=valueExtractor,proto3" json:"value_extractor,omitempty"`
|
||||
// Optional. A map from a label key string to an extractor expression which is
|
||||
// used to extract data from a log entry field and assign as the label value.
|
||||
// Each label key specified in the LabelDescriptor must have an associated
|
||||
// extractor expression in this map. The syntax of the extractor expression
|
||||
// is the same as for the `value_extractor` field.
|
||||
//
|
||||
// The extracted value is converted to the type defined in the label
|
||||
// descriptor. If the either the extraction or the type conversion fails,
|
||||
// the label will have a default value. The default value for a string
|
||||
// label is an empty string, for an integer label its 0, and for a boolean
|
||||
// label its `false`.
|
||||
//
|
||||
// Note that there are upper bounds on the maximum number of labels and the
|
||||
// number of active time series that are allowed in a project.
|
||||
LabelExtractors map[string]string `protobuf:"bytes,7,rep,name=label_extractors,json=labelExtractors,proto3" json:"label_extractors,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
// Optional. The `bucket_options` are required when the logs-based metric is
|
||||
// using a DISTRIBUTION value type and it describes the bucket boundaries
|
||||
// used to create a histogram of the extracted values.
|
||||
BucketOptions *distribution.Distribution_BucketOptions `protobuf:"bytes,8,opt,name=bucket_options,json=bucketOptions,proto3" json:"bucket_options,omitempty"`
|
||||
// Deprecated. The API version that created or updated this metric.
|
||||
// The v2 format is used by default and cannot be changed.
|
||||
Version LogMetric_ApiVersion `protobuf:"varint,4,opt,name=version,proto3,enum=google.logging.v2.LogMetric_ApiVersion" json:"version,omitempty"` // Deprecated: Do not use.
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *LogMetric) Reset() { *m = LogMetric{} }
|
||||
func (m *LogMetric) String() string { return proto.CompactTextString(m) }
|
||||
func (*LogMetric) ProtoMessage() {}
|
||||
func (*LogMetric) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_25f112b6cac96ff1, []int{0}
|
||||
}
|
||||
|
||||
func (m *LogMetric) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_LogMetric.Unmarshal(m, b)
|
||||
}
|
||||
func (m *LogMetric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_LogMetric.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *LogMetric) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_LogMetric.Merge(m, src)
|
||||
}
|
||||
func (m *LogMetric) XXX_Size() int {
|
||||
return xxx_messageInfo_LogMetric.Size(m)
|
||||
}
|
||||
func (m *LogMetric) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_LogMetric.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_LogMetric proto.InternalMessageInfo
|
||||
|
||||
func (m *LogMetric) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *LogMetric) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *LogMetric) GetFilter() string {
|
||||
if m != nil {
|
||||
return m.Filter
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *LogMetric) GetMetricDescriptor() *metric.MetricDescriptor {
|
||||
if m != nil {
|
||||
return m.MetricDescriptor
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *LogMetric) GetValueExtractor() string {
|
||||
if m != nil {
|
||||
return m.ValueExtractor
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *LogMetric) GetLabelExtractors() map[string]string {
|
||||
if m != nil {
|
||||
return m.LabelExtractors
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *LogMetric) GetBucketOptions() *distribution.Distribution_BucketOptions {
|
||||
if m != nil {
|
||||
return m.BucketOptions
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Deprecated: Do not use.
|
||||
func (m *LogMetric) GetVersion() LogMetric_ApiVersion {
|
||||
if m != nil {
|
||||
return m.Version
|
||||
}
|
||||
return LogMetric_V2
|
||||
}
|
||||
|
||||
// The parameters to ListLogMetrics.
|
||||
type ListLogMetricsRequest struct {
|
||||
// Required. The name of the project containing the metrics:
|
||||
//
|
||||
// "projects/[PROJECT_ID]"
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
|
||||
// Optional. If present, then retrieve the next batch of results from the
|
||||
// preceding call to this method. `pageToken` must be the value of
|
||||
// `nextPageToken` from the previous response. The values of other method
|
||||
// parameters should be identical to those in the previous call.
|
||||
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
|
||||
// Optional. The maximum number of results to return from this request.
|
||||
// Non-positive values are ignored. The presence of `nextPageToken` in the
|
||||
// response indicates that more results might be available.
|
||||
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ListLogMetricsRequest) Reset() { *m = ListLogMetricsRequest{} }
|
||||
func (m *ListLogMetricsRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListLogMetricsRequest) ProtoMessage() {}
|
||||
func (*ListLogMetricsRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_25f112b6cac96ff1, []int{1}
|
||||
}
|
||||
|
||||
func (m *ListLogMetricsRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ListLogMetricsRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ListLogMetricsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ListLogMetricsRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ListLogMetricsRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListLogMetricsRequest.Merge(m, src)
|
||||
}
|
||||
func (m *ListLogMetricsRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_ListLogMetricsRequest.Size(m)
|
||||
}
|
||||
func (m *ListLogMetricsRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ListLogMetricsRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ListLogMetricsRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *ListLogMetricsRequest) GetParent() string {
|
||||
if m != nil {
|
||||
return m.Parent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ListLogMetricsRequest) GetPageToken() string {
|
||||
if m != nil {
|
||||
return m.PageToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ListLogMetricsRequest) GetPageSize() int32 {
|
||||
if m != nil {
|
||||
return m.PageSize
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// Result returned from ListLogMetrics.
|
||||
type ListLogMetricsResponse struct {
|
||||
// A list of logs-based metrics.
|
||||
Metrics []*LogMetric `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"`
|
||||
// If there might be more results than appear in this response, then
|
||||
// `nextPageToken` is included. To get the next set of results, call this
|
||||
// method again using the value of `nextPageToken` as `pageToken`.
|
||||
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ListLogMetricsResponse) Reset() { *m = ListLogMetricsResponse{} }
|
||||
func (m *ListLogMetricsResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListLogMetricsResponse) ProtoMessage() {}
|
||||
func (*ListLogMetricsResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_25f112b6cac96ff1, []int{2}
|
||||
}
|
||||
|
||||
func (m *ListLogMetricsResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ListLogMetricsResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ListLogMetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ListLogMetricsResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ListLogMetricsResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListLogMetricsResponse.Merge(m, src)
|
||||
}
|
||||
func (m *ListLogMetricsResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_ListLogMetricsResponse.Size(m)
|
||||
}
|
||||
func (m *ListLogMetricsResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ListLogMetricsResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ListLogMetricsResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *ListLogMetricsResponse) GetMetrics() []*LogMetric {
|
||||
if m != nil {
|
||||
return m.Metrics
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ListLogMetricsResponse) GetNextPageToken() string {
|
||||
if m != nil {
|
||||
return m.NextPageToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// The parameters to GetLogMetric.
|
||||
type GetLogMetricRequest struct {
|
||||
// The resource name of the desired metric:
|
||||
//
|
||||
// "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
|
||||
MetricName string `protobuf:"bytes,1,opt,name=metric_name,json=metricName,proto3" json:"metric_name,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetLogMetricRequest) Reset() { *m = GetLogMetricRequest{} }
|
||||
func (m *GetLogMetricRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetLogMetricRequest) ProtoMessage() {}
|
||||
func (*GetLogMetricRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_25f112b6cac96ff1, []int{3}
|
||||
}
|
||||
|
||||
func (m *GetLogMetricRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetLogMetricRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetLogMetricRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetLogMetricRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GetLogMetricRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetLogMetricRequest.Merge(m, src)
|
||||
}
|
||||
func (m *GetLogMetricRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_GetLogMetricRequest.Size(m)
|
||||
}
|
||||
func (m *GetLogMetricRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetLogMetricRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetLogMetricRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *GetLogMetricRequest) GetMetricName() string {
|
||||
if m != nil {
|
||||
return m.MetricName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// The parameters to CreateLogMetric.
|
||||
type CreateLogMetricRequest struct {
|
||||
// The resource name of the project in which to create the metric:
|
||||
//
|
||||
// "projects/[PROJECT_ID]"
|
||||
//
|
||||
// The new metric must be provided in the request.
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
|
||||
// The new logs-based metric, which must not have an identifier that
|
||||
// already exists.
|
||||
Metric *LogMetric `protobuf:"bytes,2,opt,name=metric,proto3" json:"metric,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *CreateLogMetricRequest) Reset() { *m = CreateLogMetricRequest{} }
|
||||
func (m *CreateLogMetricRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*CreateLogMetricRequest) ProtoMessage() {}
|
||||
func (*CreateLogMetricRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_25f112b6cac96ff1, []int{4}
|
||||
}
|
||||
|
||||
func (m *CreateLogMetricRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_CreateLogMetricRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *CreateLogMetricRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_CreateLogMetricRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *CreateLogMetricRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CreateLogMetricRequest.Merge(m, src)
|
||||
}
|
||||
func (m *CreateLogMetricRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_CreateLogMetricRequest.Size(m)
|
||||
}
|
||||
func (m *CreateLogMetricRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CreateLogMetricRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_CreateLogMetricRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *CreateLogMetricRequest) GetParent() string {
|
||||
if m != nil {
|
||||
return m.Parent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *CreateLogMetricRequest) GetMetric() *LogMetric {
|
||||
if m != nil {
|
||||
return m.Metric
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// The parameters to UpdateLogMetric.
|
||||
type UpdateLogMetricRequest struct {
|
||||
// The resource name of the metric to update:
|
||||
//
|
||||
// "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
|
||||
//
|
||||
// The updated metric must be provided in the request and it's
|
||||
// `name` field must be the same as `[METRIC_ID]` If the metric
|
||||
// does not exist in `[PROJECT_ID]`, then a new metric is created.
|
||||
MetricName string `protobuf:"bytes,1,opt,name=metric_name,json=metricName,proto3" json:"metric_name,omitempty"`
|
||||
// The updated metric.
|
||||
Metric *LogMetric `protobuf:"bytes,2,opt,name=metric,proto3" json:"metric,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *UpdateLogMetricRequest) Reset() { *m = UpdateLogMetricRequest{} }
|
||||
func (m *UpdateLogMetricRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*UpdateLogMetricRequest) ProtoMessage() {}
|
||||
func (*UpdateLogMetricRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_25f112b6cac96ff1, []int{5}
|
||||
}
|
||||
|
||||
func (m *UpdateLogMetricRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_UpdateLogMetricRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *UpdateLogMetricRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_UpdateLogMetricRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *UpdateLogMetricRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_UpdateLogMetricRequest.Merge(m, src)
|
||||
}
|
||||
func (m *UpdateLogMetricRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_UpdateLogMetricRequest.Size(m)
|
||||
}
|
||||
func (m *UpdateLogMetricRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_UpdateLogMetricRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_UpdateLogMetricRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *UpdateLogMetricRequest) GetMetricName() string {
|
||||
if m != nil {
|
||||
return m.MetricName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *UpdateLogMetricRequest) GetMetric() *LogMetric {
|
||||
if m != nil {
|
||||
return m.Metric
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// The parameters to DeleteLogMetric.
|
||||
type DeleteLogMetricRequest struct {
|
||||
// The resource name of the metric to delete:
|
||||
//
|
||||
// "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
|
||||
MetricName string `protobuf:"bytes,1,opt,name=metric_name,json=metricName,proto3" json:"metric_name,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *DeleteLogMetricRequest) Reset() { *m = DeleteLogMetricRequest{} }
|
||||
func (m *DeleteLogMetricRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*DeleteLogMetricRequest) ProtoMessage() {}
|
||||
func (*DeleteLogMetricRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_25f112b6cac96ff1, []int{6}
|
||||
}
|
||||
|
||||
func (m *DeleteLogMetricRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_DeleteLogMetricRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *DeleteLogMetricRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_DeleteLogMetricRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *DeleteLogMetricRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_DeleteLogMetricRequest.Merge(m, src)
|
||||
}
|
||||
func (m *DeleteLogMetricRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_DeleteLogMetricRequest.Size(m)
|
||||
}
|
||||
func (m *DeleteLogMetricRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_DeleteLogMetricRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_DeleteLogMetricRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *DeleteLogMetricRequest) GetMetricName() string {
|
||||
if m != nil {
|
||||
return m.MetricName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("google.logging.v2.LogMetric_ApiVersion", LogMetric_ApiVersion_name, LogMetric_ApiVersion_value)
|
||||
proto.RegisterType((*LogMetric)(nil), "google.logging.v2.LogMetric")
|
||||
proto.RegisterMapType((map[string]string)(nil), "google.logging.v2.LogMetric.LabelExtractorsEntry")
|
||||
proto.RegisterType((*ListLogMetricsRequest)(nil), "google.logging.v2.ListLogMetricsRequest")
|
||||
proto.RegisterType((*ListLogMetricsResponse)(nil), "google.logging.v2.ListLogMetricsResponse")
|
||||
proto.RegisterType((*GetLogMetricRequest)(nil), "google.logging.v2.GetLogMetricRequest")
|
||||
proto.RegisterType((*CreateLogMetricRequest)(nil), "google.logging.v2.CreateLogMetricRequest")
|
||||
proto.RegisterType((*UpdateLogMetricRequest)(nil), "google.logging.v2.UpdateLogMetricRequest")
|
||||
proto.RegisterType((*DeleteLogMetricRequest)(nil), "google.logging.v2.DeleteLogMetricRequest")
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ context.Context
|
||||
var _ grpc.ClientConn
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion4
|
||||
|
||||
// MetricsServiceV2Client is the client API for MetricsServiceV2 service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type MetricsServiceV2Client interface {
|
||||
// Lists logs-based metrics.
|
||||
ListLogMetrics(ctx context.Context, in *ListLogMetricsRequest, opts ...grpc.CallOption) (*ListLogMetricsResponse, error)
|
||||
// Gets a logs-based metric.
|
||||
GetLogMetric(ctx context.Context, in *GetLogMetricRequest, opts ...grpc.CallOption) (*LogMetric, error)
|
||||
// Creates a logs-based metric.
|
||||
CreateLogMetric(ctx context.Context, in *CreateLogMetricRequest, opts ...grpc.CallOption) (*LogMetric, error)
|
||||
// Creates or updates a logs-based metric.
|
||||
UpdateLogMetric(ctx context.Context, in *UpdateLogMetricRequest, opts ...grpc.CallOption) (*LogMetric, error)
|
||||
// Deletes a logs-based metric.
|
||||
DeleteLogMetric(ctx context.Context, in *DeleteLogMetricRequest, opts ...grpc.CallOption) (*empty.Empty, error)
|
||||
}
|
||||
|
||||
type metricsServiceV2Client struct {
|
||||
cc *grpc.ClientConn
|
||||
}
|
||||
|
||||
func NewMetricsServiceV2Client(cc *grpc.ClientConn) MetricsServiceV2Client {
|
||||
return &metricsServiceV2Client{cc}
|
||||
}
|
||||
|
||||
func (c *metricsServiceV2Client) ListLogMetrics(ctx context.Context, in *ListLogMetricsRequest, opts ...grpc.CallOption) (*ListLogMetricsResponse, error) {
|
||||
out := new(ListLogMetricsResponse)
|
||||
err := c.cc.Invoke(ctx, "/google.logging.v2.MetricsServiceV2/ListLogMetrics", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *metricsServiceV2Client) GetLogMetric(ctx context.Context, in *GetLogMetricRequest, opts ...grpc.CallOption) (*LogMetric, error) {
|
||||
out := new(LogMetric)
|
||||
err := c.cc.Invoke(ctx, "/google.logging.v2.MetricsServiceV2/GetLogMetric", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *metricsServiceV2Client) CreateLogMetric(ctx context.Context, in *CreateLogMetricRequest, opts ...grpc.CallOption) (*LogMetric, error) {
|
||||
out := new(LogMetric)
|
||||
err := c.cc.Invoke(ctx, "/google.logging.v2.MetricsServiceV2/CreateLogMetric", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *metricsServiceV2Client) UpdateLogMetric(ctx context.Context, in *UpdateLogMetricRequest, opts ...grpc.CallOption) (*LogMetric, error) {
|
||||
out := new(LogMetric)
|
||||
err := c.cc.Invoke(ctx, "/google.logging.v2.MetricsServiceV2/UpdateLogMetric", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *metricsServiceV2Client) DeleteLogMetric(ctx context.Context, in *DeleteLogMetricRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
|
||||
out := new(empty.Empty)
|
||||
err := c.cc.Invoke(ctx, "/google.logging.v2.MetricsServiceV2/DeleteLogMetric", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// MetricsServiceV2Server is the server API for MetricsServiceV2 service.
|
||||
type MetricsServiceV2Server interface {
|
||||
// Lists logs-based metrics.
|
||||
ListLogMetrics(context.Context, *ListLogMetricsRequest) (*ListLogMetricsResponse, error)
|
||||
// Gets a logs-based metric.
|
||||
GetLogMetric(context.Context, *GetLogMetricRequest) (*LogMetric, error)
|
||||
// Creates a logs-based metric.
|
||||
CreateLogMetric(context.Context, *CreateLogMetricRequest) (*LogMetric, error)
|
||||
// Creates or updates a logs-based metric.
|
||||
UpdateLogMetric(context.Context, *UpdateLogMetricRequest) (*LogMetric, error)
|
||||
// Deletes a logs-based metric.
|
||||
DeleteLogMetric(context.Context, *DeleteLogMetricRequest) (*empty.Empty, error)
|
||||
}
|
||||
|
||||
func RegisterMetricsServiceV2Server(s *grpc.Server, srv MetricsServiceV2Server) {
|
||||
s.RegisterService(&_MetricsServiceV2_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _MetricsServiceV2_ListLogMetrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListLogMetricsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MetricsServiceV2Server).ListLogMetrics(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.logging.v2.MetricsServiceV2/ListLogMetrics",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MetricsServiceV2Server).ListLogMetrics(ctx, req.(*ListLogMetricsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MetricsServiceV2_GetLogMetric_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetLogMetricRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MetricsServiceV2Server).GetLogMetric(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.logging.v2.MetricsServiceV2/GetLogMetric",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MetricsServiceV2Server).GetLogMetric(ctx, req.(*GetLogMetricRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MetricsServiceV2_CreateLogMetric_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateLogMetricRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MetricsServiceV2Server).CreateLogMetric(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.logging.v2.MetricsServiceV2/CreateLogMetric",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MetricsServiceV2Server).CreateLogMetric(ctx, req.(*CreateLogMetricRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MetricsServiceV2_UpdateLogMetric_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateLogMetricRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MetricsServiceV2Server).UpdateLogMetric(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.logging.v2.MetricsServiceV2/UpdateLogMetric",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MetricsServiceV2Server).UpdateLogMetric(ctx, req.(*UpdateLogMetricRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MetricsServiceV2_DeleteLogMetric_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteLogMetricRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MetricsServiceV2Server).DeleteLogMetric(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.logging.v2.MetricsServiceV2/DeleteLogMetric",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MetricsServiceV2Server).DeleteLogMetric(ctx, req.(*DeleteLogMetricRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _MetricsServiceV2_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "google.logging.v2.MetricsServiceV2",
|
||||
HandlerType: (*MetricsServiceV2Server)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "ListLogMetrics",
|
||||
Handler: _MetricsServiceV2_ListLogMetrics_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetLogMetric",
|
||||
Handler: _MetricsServiceV2_GetLogMetric_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "CreateLogMetric",
|
||||
Handler: _MetricsServiceV2_CreateLogMetric_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UpdateLogMetric",
|
||||
Handler: _MetricsServiceV2_UpdateLogMetric_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "DeleteLogMetric",
|
||||
Handler: _MetricsServiceV2_DeleteLogMetric_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "google/logging/v2/logging_metrics.proto",
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/logging/v2/logging_metrics.proto", fileDescriptor_25f112b6cac96ff1)
|
||||
}
|
||||
|
||||
var fileDescriptor_25f112b6cac96ff1 = []byte{
|
||||
// 850 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0x41, 0x6f, 0x1b, 0x45,
|
||||
0x14, 0x66, 0x9c, 0xc4, 0x69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 0x29, 0xf7, 0xe2,
|
||||
0x1a, 0x35, 0xc7, 0x4a, 0xcd, 0x87, 0xcd, 0x6b, 0x8e, 0x66, 0x21, 0xea, 0x0d, 0x81, 0xda, 0x92,
|
||||
0x17, 0x4b, 0x45, 0x95, 0xfb, 0xb5, 0xd9, 0xc8, 0x53, 0xf3, 0xaf, 0x42, 0xeb, 0x34, 0xfd, 0x9e,
|
||||
0xcc, 0x37, 0x75, 0x74, 0x4d, 0x39, 0x9d, 0xdf, 0x08, 0xdc, 0x1d, 0xf2, 0xe9, 0x2a, 0x71, 0xe7,
|
||||
0x76, 0x37, 0x3b, 0x6b, 0x2f, 0x9e, 0xa5, 0x3c, 0x67, 0xe4, 0xdb, 0x27, 0x3a, 0x33, 0xe0, 0xa1,
|
||||
0x1f, 0x05, 0x16, 0x4f, 0x02, 0x3b, 0xc0, 0x48, 0xa9, 0xb0, 0x33, 0xc8, 0x8f, 0x99, 0x28, 0xfc,
|
||||
0xa0, 0xf8, 0x54, 0x1f, 0xff, 0x25, 0xe4, 0x8f, 0xca, 0xbd, 0xe7, 0x59, 0xf5, 0xb3, 0x90, 0xcf,
|
||||
0x46, 0x96, 0x66, 0xb0, 0x7a, 0xce, 0x9f, 0x39, 0xd2, 0x57, 0x48, 0x5f, 0x23, 0xfd, 0x9e, 0x33,
|
||||
0xa8, 0xaa, 0xb7, 0x3f, 0xfa, 0x2f, 0x00, 0x00, 0xff, 0xff, 0xdc, 0x79, 0xf6, 0xb5, 0xab, 0x08,
|
||||
0x00, 0x00,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue