config

package
v0.0.0-...-0000b31 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package config is a generated protocol buffer package.

It is generated from these files:

mixer/adapter/stackdriver/config/config.proto

It has these top-level messages:

Params

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthConfig = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowConfig   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type Params

type Params struct {
	// Endpoint URL to send stackdriver data - leave empty to use the
	// StackDriver SDK's default value (monitoring.googleapis.com).
	Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	// GCP Project to attach metrics to.
	ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// This adapter batches the data it sends to Stackdriver; we will push to stackdriver every push_interval.
	// If no value is provided we default to once per minute.
	PushInterval time.Duration `protobuf:"bytes,3,opt,name=push_interval,json=pushInterval,stdduration" json:"push_interval"`
	// Credentials must be attached to every call made to StackDriver. This
	// can be an API key, a service account secret key, or Oauth2 tokens.
	//
	// TODO: do we want to support oauth?
	//
	// Types that are valid to be assigned to Creds:
	//	*Params_AppCredentials
	//	*Params_ApiKey
	//	*Params_ServiceAccountPath
	Creds isParams_Creds `protobuf_oneof:"creds"`
	// A map of Istio metric name to Stackdriver metric info.
	MetricInfo map[string]*Params_MetricInfo `` /* 165-byte string literal not displayed */
	// A map of Istio LogEntry name to Stackdriver log info.
	LogInfo map[string]*Params_LogInfo `` /* 156-byte string literal not displayed */
}

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) GetApiKey

func (m *Params) GetApiKey() string

func (*Params) GetAppCredentials

func (m *Params) GetAppCredentials() bool

func (*Params) GetCreds

func (m *Params) GetCreds() isParams_Creds

func (*Params) GetServiceAccountPath

func (m *Params) GetServiceAccountPath() string

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (*Params) String

func (this *Params) String() string

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (*Params) XXX_OneofFuncs

func (*Params) 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{})

XXX_OneofFuncs is for the internal use of the proto package.

type Params_ApiKey

type Params_ApiKey struct {
	ApiKey string `protobuf:"bytes,5,opt,name=api_key,json=apiKey,proto3,oneof"`
}

func (*Params_ApiKey) MarshalTo

func (m *Params_ApiKey) MarshalTo(dAtA []byte) (int, error)

func (*Params_ApiKey) Size

func (m *Params_ApiKey) Size() (n int)

func (*Params_ApiKey) String

func (this *Params_ApiKey) String() string

type Params_AppCredentials

type Params_AppCredentials struct {
	AppCredentials bool `protobuf:"varint,4,opt,name=app_credentials,json=appCredentials,proto3,oneof"`
}

func (*Params_AppCredentials) MarshalTo

func (m *Params_AppCredentials) MarshalTo(dAtA []byte) (int, error)

func (*Params_AppCredentials) Size

func (m *Params_AppCredentials) Size() (n int)

func (*Params_AppCredentials) String

func (this *Params_AppCredentials) String() string

type Params_LogInfo

type Params_LogInfo struct {
	// The logging template provides a set of variables; these list the subset of variables that should be used to
	// form Stackdriver labels for the log entry.
	LabelNames []string `protobuf:"bytes,1,rep,name=label_names,json=labelNames" json:"label_names,omitempty"`
	// A golang text/template template that will be executed to construct the payload for this log entry.
	// It will be given the full set of variables for the log to use to construct its result.
	PayloadTemplate string `protobuf:"bytes,2,opt,name=payload_template,json=payloadTemplate,proto3" json:"payload_template,omitempty"`
	// If an HttpRequestMapping is provided, a HttpRequest object will be filled out for this log entry using the
	// variables named in the mapping to populate the fields of the request struct from the instance's variables.
	HttpMapping *Params_LogInfo_HttpRequestMapping `protobuf:"bytes,3,opt,name=http_mapping,json=httpMapping" json:"http_mapping,omitempty"`
}

Describes how to represent an Istio Log in Stackdriver.

func (*Params_LogInfo) Descriptor

func (*Params_LogInfo) Descriptor() ([]byte, []int)

func (*Params_LogInfo) Marshal

func (m *Params_LogInfo) Marshal() (dAtA []byte, err error)

func (*Params_LogInfo) MarshalTo

func (m *Params_LogInfo) MarshalTo(dAtA []byte) (int, error)

func (*Params_LogInfo) ProtoMessage

func (*Params_LogInfo) ProtoMessage()

func (*Params_LogInfo) Reset

func (m *Params_LogInfo) Reset()

func (*Params_LogInfo) Size

func (m *Params_LogInfo) Size() (n int)

func (*Params_LogInfo) String

func (this *Params_LogInfo) String() string

func (*Params_LogInfo) Unmarshal

func (m *Params_LogInfo) Unmarshal(dAtA []byte) error

type Params_LogInfo_HttpRequestMapping

type Params_LogInfo_HttpRequestMapping struct {
	// template variable name to map into HTTPRequest.Status
	Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// template variable name to map into HTTPRequest.RequestSize
	RequestSize string `protobuf:"bytes,2,opt,name=request_size,json=requestSize,proto3" json:"request_size,omitempty"`
	// template variable name to map into HTTPRequest.ResponseSize
	ResponseSize string `protobuf:"bytes,3,opt,name=response_size,json=responseSize,proto3" json:"response_size,omitempty"`
	// template variable name to map into HTTPRequest.Latency
	Latency string `protobuf:"bytes,4,opt,name=latency,proto3" json:"latency,omitempty"`
	// template variable name to map into HTTPRequest.LocalIP
	LocalIp string `protobuf:"bytes,5,opt,name=local_ip,json=localIp,proto3" json:"local_ip,omitempty"`
	// template variable name to map into HTTPRequest.RemoteIP
	RemoteIp string `protobuf:"bytes,6,opt,name=remote_ip,json=remoteIp,proto3" json:"remote_ip,omitempty"`
}

Maps from template variable names to the various fields of Stackdriver's HTTP request struct. See https://godoc.org/cloud.google.com/go/logging#HTTPRequest

func (*Params_LogInfo_HttpRequestMapping) Descriptor

func (*Params_LogInfo_HttpRequestMapping) Descriptor() ([]byte, []int)

func (*Params_LogInfo_HttpRequestMapping) Marshal

func (m *Params_LogInfo_HttpRequestMapping) Marshal() (dAtA []byte, err error)

func (*Params_LogInfo_HttpRequestMapping) MarshalTo

func (m *Params_LogInfo_HttpRequestMapping) MarshalTo(dAtA []byte) (int, error)

func (*Params_LogInfo_HttpRequestMapping) ProtoMessage

func (*Params_LogInfo_HttpRequestMapping) ProtoMessage()

func (*Params_LogInfo_HttpRequestMapping) Reset

func (*Params_LogInfo_HttpRequestMapping) Size

func (m *Params_LogInfo_HttpRequestMapping) Size() (n int)

func (*Params_LogInfo_HttpRequestMapping) String

func (*Params_LogInfo_HttpRequestMapping) Unmarshal

func (m *Params_LogInfo_HttpRequestMapping) Unmarshal(dAtA []byte) error

type Params_MetricInfo

type Params_MetricInfo struct {
	Kind  google_api1.MetricDescriptor_MetricKind `protobuf:"varint,1,opt,name=kind,proto3,enum=google.api.MetricDescriptor_MetricKind" json:"kind,omitempty"`
	Value google_api1.MetricDescriptor_ValueType  `protobuf:"varint,2,opt,name=value,proto3,enum=google.api.MetricDescriptor_ValueType" json:"value,omitempty"`
	// For metrics with a metric value of DISTRIBUTION, this provides a mechanism
	// for configuring the buckets that will be used to store the aggregated values.
	// This field must be provided for metrics declared to be of type DISTRIBUTION.
	// This field will be ignored for non-distribution metric kinds.
	Buckets *Params_MetricInfo_BucketsDefinition `protobuf:"bytes,3,opt,name=buckets" json:"buckets,omitempty"`
}

Describes how to represent an Istio metric in Stackdriver. See https://github.com/googleapis/googleapis/blob/master/google/api/metric.proto

func (*Params_MetricInfo) Descriptor

func (*Params_MetricInfo) Descriptor() ([]byte, []int)

func (*Params_MetricInfo) Marshal

func (m *Params_MetricInfo) Marshal() (dAtA []byte, err error)

func (*Params_MetricInfo) MarshalTo

func (m *Params_MetricInfo) MarshalTo(dAtA []byte) (int, error)

func (*Params_MetricInfo) ProtoMessage

func (*Params_MetricInfo) ProtoMessage()

func (*Params_MetricInfo) Reset

func (m *Params_MetricInfo) Reset()

func (*Params_MetricInfo) Size

func (m *Params_MetricInfo) Size() (n int)

func (*Params_MetricInfo) String

func (this *Params_MetricInfo) String() string

func (*Params_MetricInfo) Unmarshal

func (m *Params_MetricInfo) Unmarshal(dAtA []byte) error

type Params_MetricInfo_BucketsDefinition

type Params_MetricInfo_BucketsDefinition struct {
	// Exactly one of these three fields must be set.
	//
	// Types that are valid to be assigned to Definition:
	//	*Params_MetricInfo_BucketsDefinition_LinearBuckets
	//	*Params_MetricInfo_BucketsDefinition_ExponentialBuckets
	//	*Params_MetricInfo_BucketsDefinition_ExplicitBuckets
	Definition isParams_MetricInfo_BucketsDefinition_Definition `protobuf_oneof:"definition"`
}

Describes buckets for DISTRIBUTION valued metrics. TODO: look into using google.api.distribution.proto instead - we would pull it in but it has a ton of dependencies it doesn't actually use.

func (*Params_MetricInfo_BucketsDefinition) Descriptor

func (*Params_MetricInfo_BucketsDefinition) Descriptor() ([]byte, []int)

func (*Params_MetricInfo_BucketsDefinition) GetDefinition

func (m *Params_MetricInfo_BucketsDefinition) GetDefinition() isParams_MetricInfo_BucketsDefinition_Definition

func (*Params_MetricInfo_BucketsDefinition) GetExplicitBuckets

func (*Params_MetricInfo_BucketsDefinition) GetExponentialBuckets

func (*Params_MetricInfo_BucketsDefinition) GetLinearBuckets

func (*Params_MetricInfo_BucketsDefinition) Marshal

func (m *Params_MetricInfo_BucketsDefinition) Marshal() (dAtA []byte, err error)

func (*Params_MetricInfo_BucketsDefinition) MarshalTo

func (m *Params_MetricInfo_BucketsDefinition) MarshalTo(dAtA []byte) (int, error)

func (*Params_MetricInfo_BucketsDefinition) ProtoMessage

func (*Params_MetricInfo_BucketsDefinition) ProtoMessage()

func (*Params_MetricInfo_BucketsDefinition) Reset

func (*Params_MetricInfo_BucketsDefinition) Size

func (*Params_MetricInfo_BucketsDefinition) String

func (*Params_MetricInfo_BucketsDefinition) Unmarshal

func (m *Params_MetricInfo_BucketsDefinition) Unmarshal(dAtA []byte) error

func (*Params_MetricInfo_BucketsDefinition) XXX_OneofFuncs

func (*Params_MetricInfo_BucketsDefinition) 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{})

XXX_OneofFuncs is for the internal use of the proto package.

type Params_MetricInfo_BucketsDefinition_Explicit

type Params_MetricInfo_BucketsDefinition_Explicit struct {
	// The values must be monotonically increasing.
	Bounds []float64 `protobuf:"fixed64,1,rep,packed,name=bounds" json:"bounds,omitempty"`
}

Specifies a set of buckets with arbitrary widths.

There are `size(bounds) + 1` (= `N`) buckets. Bucket `i` has the following boundaries:

* Upper bound (`0 <= i < N-1`): `bounds[i]` * Lower bound (`1 <= i < N`): `bounds[i - 1]`

The `bounds` field must contain at least one element. If `bounds` has only one element, then there are no finite buckets, and that single element is the common boundary of the overflow and underflow buckets.

func (*Params_MetricInfo_BucketsDefinition_Explicit) Descriptor

func (*Params_MetricInfo_BucketsDefinition_Explicit) Marshal

func (m *Params_MetricInfo_BucketsDefinition_Explicit) Marshal() (dAtA []byte, err error)

func (*Params_MetricInfo_BucketsDefinition_Explicit) MarshalTo

func (*Params_MetricInfo_BucketsDefinition_Explicit) ProtoMessage

func (*Params_MetricInfo_BucketsDefinition_Explicit) Reset

func (*Params_MetricInfo_BucketsDefinition_Explicit) Size

func (*Params_MetricInfo_BucketsDefinition_Explicit) String

func (*Params_MetricInfo_BucketsDefinition_Explicit) Unmarshal

type Params_MetricInfo_BucketsDefinition_ExplicitBuckets

type Params_MetricInfo_BucketsDefinition_ExplicitBuckets struct {
	ExplicitBuckets *Params_MetricInfo_BucketsDefinition_Explicit `protobuf:"bytes,3,opt,name=explicit_buckets,json=explicitBuckets,oneof"`
}

func (*Params_MetricInfo_BucketsDefinition_ExplicitBuckets) MarshalTo

func (*Params_MetricInfo_BucketsDefinition_ExplicitBuckets) Size

func (*Params_MetricInfo_BucketsDefinition_ExplicitBuckets) String

type Params_MetricInfo_BucketsDefinition_Exponential

type Params_MetricInfo_BucketsDefinition_Exponential struct {
	// Must be greater than 0.
	NumFiniteBuckets int32 `protobuf:"varint,1,opt,name=num_finite_buckets,json=numFiniteBuckets,proto3" json:"num_finite_buckets,omitempty"`
	// Must be greater than 1.
	GrowthFactor float64 `protobuf:"fixed64,2,opt,name=growth_factor,json=growthFactor,proto3" json:"growth_factor,omitempty"`
	// Must be greater than 0.
	Scale float64 `protobuf:"fixed64,3,opt,name=scale,proto3" json:"scale,omitempty"`
}

Specifies an exponential sequence of buckets that have a width that is proportional to the value of the lower bound. Each bucket represents a constant relative uncertainty on a specific value in the bucket.

There are `num_finite_buckets + 2` (= `N`) buckets. The two additional buckets are the underflow and overflow buckets.

Bucket `i` has the following boundaries:

* Upper bound (0 <= i < N-1): `scale * (growth_factor ^ i)` * Lower bound (1 <= i < N): `scale * (growth_factor ^ (i - 1))`

func (*Params_MetricInfo_BucketsDefinition_Exponential) Descriptor

func (*Params_MetricInfo_BucketsDefinition_Exponential) Marshal

func (m *Params_MetricInfo_BucketsDefinition_Exponential) Marshal() (dAtA []byte, err error)

func (*Params_MetricInfo_BucketsDefinition_Exponential) MarshalTo

func (*Params_MetricInfo_BucketsDefinition_Exponential) ProtoMessage

func (*Params_MetricInfo_BucketsDefinition_Exponential) Reset

func (*Params_MetricInfo_BucketsDefinition_Exponential) Size

func (*Params_MetricInfo_BucketsDefinition_Exponential) String

func (*Params_MetricInfo_BucketsDefinition_Exponential) Unmarshal

type Params_MetricInfo_BucketsDefinition_ExponentialBuckets

type Params_MetricInfo_BucketsDefinition_ExponentialBuckets struct {
	ExponentialBuckets *Params_MetricInfo_BucketsDefinition_Exponential `protobuf:"bytes,2,opt,name=exponential_buckets,json=exponentialBuckets,oneof"`
}

func (*Params_MetricInfo_BucketsDefinition_ExponentialBuckets) MarshalTo

func (*Params_MetricInfo_BucketsDefinition_ExponentialBuckets) Size

func (*Params_MetricInfo_BucketsDefinition_ExponentialBuckets) String

type Params_MetricInfo_BucketsDefinition_Linear

type Params_MetricInfo_BucketsDefinition_Linear struct {
	// Must be greater than 0.
	NumFiniteBuckets int32 `protobuf:"varint,1,opt,name=num_finite_buckets,json=numFiniteBuckets,proto3" json:"num_finite_buckets,omitempty"`
	// Must be greater than 0.
	Width float64 `protobuf:"fixed64,2,opt,name=width,proto3" json:"width,omitempty"`
	// Lower bound of the first bucket.
	Offset float64 `protobuf:"fixed64,3,opt,name=offset,proto3" json:"offset,omitempty"`
}

Specifies a linear sequence of buckets that all have the same width (except overflow and underflow). Each bucket represents a constant absolute uncertainty on the specific value in the bucket.

There are `num_finite_buckets + 2` (= `N`) buckets. The two additional buckets are the underflow and overflow buckets.

Bucket `i` has the following boundaries:

* Upper bound (`0 <= i < N-1`): `offset + (width * i)` * Lower bound (`1 <= i < N`): `offset + (width * (i - 1))`

func (*Params_MetricInfo_BucketsDefinition_Linear) Descriptor

func (*Params_MetricInfo_BucketsDefinition_Linear) Marshal

func (m *Params_MetricInfo_BucketsDefinition_Linear) Marshal() (dAtA []byte, err error)

func (*Params_MetricInfo_BucketsDefinition_Linear) MarshalTo

func (m *Params_MetricInfo_BucketsDefinition_Linear) MarshalTo(dAtA []byte) (int, error)

func (*Params_MetricInfo_BucketsDefinition_Linear) ProtoMessage

func (*Params_MetricInfo_BucketsDefinition_Linear) Reset

func (*Params_MetricInfo_BucketsDefinition_Linear) Size

func (*Params_MetricInfo_BucketsDefinition_Linear) String

func (*Params_MetricInfo_BucketsDefinition_Linear) Unmarshal

type Params_MetricInfo_BucketsDefinition_LinearBuckets

type Params_MetricInfo_BucketsDefinition_LinearBuckets struct {
	LinearBuckets *Params_MetricInfo_BucketsDefinition_Linear `protobuf:"bytes,1,opt,name=linear_buckets,json=linearBuckets,oneof"`
}

func (*Params_MetricInfo_BucketsDefinition_LinearBuckets) MarshalTo

func (*Params_MetricInfo_BucketsDefinition_LinearBuckets) Size

func (*Params_MetricInfo_BucketsDefinition_LinearBuckets) String

type Params_ServiceAccountPath

type Params_ServiceAccountPath struct {
	ServiceAccountPath string `protobuf:"bytes,6,opt,name=service_account_path,json=serviceAccountPath,proto3,oneof"`
}

func (*Params_ServiceAccountPath) MarshalTo

func (m *Params_ServiceAccountPath) MarshalTo(dAtA []byte) (int, error)

func (*Params_ServiceAccountPath) Size

func (m *Params_ServiceAccountPath) Size() (n int)

func (*Params_ServiceAccountPath) String

func (this *Params_ServiceAccountPath) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL