Documentation ¶
Overview ¶
Package config is a generated protocol buffer package.
The `stackdriver` adapter enables Istio to deliver log, metric and traces to the [Stackdriver](https://cloud.google.com/stackdriver/) backend.
This adapter supports the [metric template](https://istio.io/docs/reference/config/policy-and-telemetry/templates/metric/), the [logentry template](https://istio.io/docs/reference/config/policy-and-telemetry/templates/logentry/), and the [tracespan template](https://istio.io/docs/reference/config/policy-and-telemetry/templates/tracespan/).
It is generated from these files:
mixer/adapter/stackdriver/config/config.proto
It has these top-level messages:
Params
Index ¶
- Variables
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetApiKey() string
- func (m *Params) GetAppCredentials() bool
- func (m *Params) GetCreds() isParams_Creds
- func (m *Params) GetServiceAccountPath() string
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (this *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (*Params) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type Params_ApiKey
- type Params_AppCredentials
- type Params_LogInfo
- func (*Params_LogInfo) Descriptor() ([]byte, []int)
- func (m *Params_LogInfo) Marshal() (dAtA []byte, err error)
- func (m *Params_LogInfo) MarshalTo(dAtA []byte) (int, error)
- func (*Params_LogInfo) ProtoMessage()
- func (m *Params_LogInfo) Reset()
- func (m *Params_LogInfo) Size() (n int)
- func (this *Params_LogInfo) String() string
- func (m *Params_LogInfo) Unmarshal(dAtA []byte) error
- type Params_LogInfo_HttpRequestMapping
- func (*Params_LogInfo_HttpRequestMapping) Descriptor() ([]byte, []int)
- func (m *Params_LogInfo_HttpRequestMapping) Marshal() (dAtA []byte, err error)
- func (m *Params_LogInfo_HttpRequestMapping) MarshalTo(dAtA []byte) (int, error)
- func (*Params_LogInfo_HttpRequestMapping) ProtoMessage()
- func (m *Params_LogInfo_HttpRequestMapping) Reset()
- func (m *Params_LogInfo_HttpRequestMapping) Size() (n int)
- func (this *Params_LogInfo_HttpRequestMapping) String() string
- func (m *Params_LogInfo_HttpRequestMapping) Unmarshal(dAtA []byte) error
- type Params_LogInfo_SinkInfo
- func (*Params_LogInfo_SinkInfo) Descriptor() ([]byte, []int)
- func (m *Params_LogInfo_SinkInfo) Marshal() (dAtA []byte, err error)
- func (m *Params_LogInfo_SinkInfo) MarshalTo(dAtA []byte) (int, error)
- func (*Params_LogInfo_SinkInfo) ProtoMessage()
- func (m *Params_LogInfo_SinkInfo) Reset()
- func (m *Params_LogInfo_SinkInfo) Size() (n int)
- func (this *Params_LogInfo_SinkInfo) String() string
- func (m *Params_LogInfo_SinkInfo) Unmarshal(dAtA []byte) error
- type Params_MetricInfo
- func (*Params_MetricInfo) Descriptor() ([]byte, []int)
- func (m *Params_MetricInfo) Marshal() (dAtA []byte, err error)
- func (m *Params_MetricInfo) MarshalTo(dAtA []byte) (int, error)
- func (*Params_MetricInfo) ProtoMessage()
- func (m *Params_MetricInfo) Reset()
- func (m *Params_MetricInfo) Size() (n int)
- func (this *Params_MetricInfo) String() string
- func (m *Params_MetricInfo) Unmarshal(dAtA []byte) error
- type Params_MetricInfo_BucketsDefinition
- func (*Params_MetricInfo_BucketsDefinition) Descriptor() ([]byte, []int)
- func (m *Params_MetricInfo_BucketsDefinition) GetDefinition() isParams_MetricInfo_BucketsDefinition_Definition
- func (m *Params_MetricInfo_BucketsDefinition) GetExplicitBuckets() *Params_MetricInfo_BucketsDefinition_Explicit
- func (m *Params_MetricInfo_BucketsDefinition) GetExponentialBuckets() *Params_MetricInfo_BucketsDefinition_Exponential
- func (m *Params_MetricInfo_BucketsDefinition) GetLinearBuckets() *Params_MetricInfo_BucketsDefinition_Linear
- func (m *Params_MetricInfo_BucketsDefinition) Marshal() (dAtA []byte, err error)
- func (m *Params_MetricInfo_BucketsDefinition) MarshalTo(dAtA []byte) (int, error)
- func (*Params_MetricInfo_BucketsDefinition) ProtoMessage()
- func (m *Params_MetricInfo_BucketsDefinition) Reset()
- func (m *Params_MetricInfo_BucketsDefinition) Size() (n int)
- func (this *Params_MetricInfo_BucketsDefinition) String() string
- func (m *Params_MetricInfo_BucketsDefinition) Unmarshal(dAtA []byte) error
- func (*Params_MetricInfo_BucketsDefinition) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type Params_MetricInfo_BucketsDefinition_Explicit
- func (*Params_MetricInfo_BucketsDefinition_Explicit) Descriptor() ([]byte, []int)
- func (m *Params_MetricInfo_BucketsDefinition_Explicit) Marshal() (dAtA []byte, err error)
- func (m *Params_MetricInfo_BucketsDefinition_Explicit) MarshalTo(dAtA []byte) (int, error)
- func (*Params_MetricInfo_BucketsDefinition_Explicit) ProtoMessage()
- func (m *Params_MetricInfo_BucketsDefinition_Explicit) Reset()
- func (m *Params_MetricInfo_BucketsDefinition_Explicit) Size() (n int)
- func (this *Params_MetricInfo_BucketsDefinition_Explicit) String() string
- func (m *Params_MetricInfo_BucketsDefinition_Explicit) Unmarshal(dAtA []byte) error
- type Params_MetricInfo_BucketsDefinition_ExplicitBuckets
- type Params_MetricInfo_BucketsDefinition_Exponential
- func (*Params_MetricInfo_BucketsDefinition_Exponential) Descriptor() ([]byte, []int)
- func (m *Params_MetricInfo_BucketsDefinition_Exponential) Marshal() (dAtA []byte, err error)
- func (m *Params_MetricInfo_BucketsDefinition_Exponential) MarshalTo(dAtA []byte) (int, error)
- func (*Params_MetricInfo_BucketsDefinition_Exponential) ProtoMessage()
- func (m *Params_MetricInfo_BucketsDefinition_Exponential) Reset()
- func (m *Params_MetricInfo_BucketsDefinition_Exponential) Size() (n int)
- func (this *Params_MetricInfo_BucketsDefinition_Exponential) String() string
- func (m *Params_MetricInfo_BucketsDefinition_Exponential) Unmarshal(dAtA []byte) error
- type Params_MetricInfo_BucketsDefinition_ExponentialBuckets
- type Params_MetricInfo_BucketsDefinition_Linear
- func (*Params_MetricInfo_BucketsDefinition_Linear) Descriptor() ([]byte, []int)
- func (m *Params_MetricInfo_BucketsDefinition_Linear) Marshal() (dAtA []byte, err error)
- func (m *Params_MetricInfo_BucketsDefinition_Linear) MarshalTo(dAtA []byte) (int, error)
- func (*Params_MetricInfo_BucketsDefinition_Linear) ProtoMessage()
- func (m *Params_MetricInfo_BucketsDefinition_Linear) Reset()
- func (m *Params_MetricInfo_BucketsDefinition_Linear) Size() (n int)
- func (this *Params_MetricInfo_BucketsDefinition_Linear) String() string
- func (m *Params_MetricInfo_BucketsDefinition_Linear) Unmarshal(dAtA []byte) error
- type Params_MetricInfo_BucketsDefinition_LinearBuckets
- type Params_ServiceAccountPath
- type Params_Trace
- func (*Params_Trace) Descriptor() ([]byte, []int)
- func (m *Params_Trace) Marshal() (dAtA []byte, err error)
- func (m *Params_Trace) MarshalTo(dAtA []byte) (int, error)
- func (*Params_Trace) ProtoMessage()
- func (m *Params_Trace) Reset()
- func (m *Params_Trace) Size() (n int)
- func (this *Params_Trace) String() string
- func (m *Params_Trace) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
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 */ // Stackdriver Trace configuration. Trace *Params_Trace `protobuf:"bytes,10,opt,name=trace" json:"trace,omitempty"` }
Configuration format for the `stackdriver` adapter.
func (*Params) Descriptor ¶
func (*Params) GetAppCredentials ¶
func (*Params) GetServiceAccountPath ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
type Params_ApiKey ¶
type Params_ApiKey struct {
ApiKey string `protobuf:"bytes,5,opt,name=api_key,json=apiKey,proto3,oneof"`
}
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"` // If SinkInfo is provided, Stackriver logs would be exported to that sink. SinkInfo *Params_LogInfo_SinkInfo `protobuf:"bytes,4,opt,name=sink_info,json=sinkInfo" json:"sink_info,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) 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"` // template variable name to map into HTTPRequest.Request.Url Url string `protobuf:"bytes,7,opt,name=url,proto3" json:"url,omitempty"` // template variable name to map into HTTPRequest.RequestMethod Method string `protobuf:"bytes,8,opt,name=method,proto3" json:"method,omitempty"` // template variable name to map into HTTPRequest.UserAgent UserAgent string `protobuf:"bytes,9,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"` // template variable name to map into HTTPRequest.Referer Referer string `protobuf:"bytes,10,opt,name=referer,proto3" json:"referer,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 (m *Params_LogInfo_HttpRequestMapping) Reset()
func (*Params_LogInfo_HttpRequestMapping) Size ¶
func (m *Params_LogInfo_HttpRequestMapping) Size() (n int)
func (*Params_LogInfo_HttpRequestMapping) String ¶
func (this *Params_LogInfo_HttpRequestMapping) String() string
func (*Params_LogInfo_HttpRequestMapping) Unmarshal ¶
func (m *Params_LogInfo_HttpRequestMapping) Unmarshal(dAtA []byte) error
type Params_LogInfo_SinkInfo ¶
type Params_LogInfo_SinkInfo struct { // Client assigned sink identifier. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Export Destination. Destination string `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` // Filter that specifies any filtering to be done on logs. Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"` }
Contains information about sink to export Stackdriver logs to. See https://godoc.org/cloud.google.com/go/logging/logadmin#Sink. Ex: If you want to export it to a GCS bucket, id would be a unique idetifier you want for the sink, destination would be the storage be name of GCS Storage bucket and filter would be user defined condition for filtering logs. See below for a sample config:
id: 'info-errors-to-gcs' destination: 'storage.googleapis.com/<bucket_name>' filter: 'severity >= Default'
func (*Params_LogInfo_SinkInfo) Descriptor ¶
func (*Params_LogInfo_SinkInfo) Descriptor() ([]byte, []int)
func (*Params_LogInfo_SinkInfo) Marshal ¶
func (m *Params_LogInfo_SinkInfo) Marshal() (dAtA []byte, err error)
func (*Params_LogInfo_SinkInfo) MarshalTo ¶
func (m *Params_LogInfo_SinkInfo) MarshalTo(dAtA []byte) (int, error)
func (*Params_LogInfo_SinkInfo) ProtoMessage ¶
func (*Params_LogInfo_SinkInfo) ProtoMessage()
func (*Params_LogInfo_SinkInfo) Reset ¶
func (m *Params_LogInfo_SinkInfo) Reset()
func (*Params_LogInfo_SinkInfo) Size ¶
func (m *Params_LogInfo_SinkInfo) Size() (n int)
func (*Params_LogInfo_SinkInfo) String ¶
func (this *Params_LogInfo_SinkInfo) String() string
func (*Params_LogInfo_SinkInfo) Unmarshal ¶
func (m *Params_LogInfo_SinkInfo) 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"` // Stackdriver metric type name, e.g. // istio.io/service/server/request_count. If this is not provided, a // concantenation of custom metric prefix (custom.googleapis.com/) and // Istio metric name will be used. MetricType string `protobuf:"bytes,4,opt,name=metric_type,json=metricType,proto3" json:"metric_type,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 (m *Params_MetricInfo_BucketsDefinition) GetExplicitBuckets() *Params_MetricInfo_BucketsDefinition_Explicit
func (*Params_MetricInfo_BucketsDefinition) GetExponentialBuckets ¶
func (m *Params_MetricInfo_BucketsDefinition) GetExponentialBuckets() *Params_MetricInfo_BucketsDefinition_Exponential
func (*Params_MetricInfo_BucketsDefinition) GetLinearBuckets ¶
func (m *Params_MetricInfo_BucketsDefinition) GetLinearBuckets() *Params_MetricInfo_BucketsDefinition_Linear
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 (m *Params_MetricInfo_BucketsDefinition) Reset()
func (*Params_MetricInfo_BucketsDefinition) Size ¶
func (m *Params_MetricInfo_BucketsDefinition) Size() (n int)
func (*Params_MetricInfo_BucketsDefinition) String ¶
func (this *Params_MetricInfo_BucketsDefinition) String() 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) Descriptor() ([]byte, []int)
func (*Params_MetricInfo_BucketsDefinition_Explicit) Marshal ¶
func (m *Params_MetricInfo_BucketsDefinition_Explicit) Marshal() (dAtA []byte, err error)
func (*Params_MetricInfo_BucketsDefinition_Explicit) MarshalTo ¶
func (m *Params_MetricInfo_BucketsDefinition_Explicit) MarshalTo(dAtA []byte) (int, error)
func (*Params_MetricInfo_BucketsDefinition_Explicit) ProtoMessage ¶
func (*Params_MetricInfo_BucketsDefinition_Explicit) ProtoMessage()
func (*Params_MetricInfo_BucketsDefinition_Explicit) Reset ¶
func (m *Params_MetricInfo_BucketsDefinition_Explicit) Reset()
func (*Params_MetricInfo_BucketsDefinition_Explicit) Size ¶
func (m *Params_MetricInfo_BucketsDefinition_Explicit) Size() (n int)
func (*Params_MetricInfo_BucketsDefinition_Explicit) String ¶
func (this *Params_MetricInfo_BucketsDefinition_Explicit) String() string
func (*Params_MetricInfo_BucketsDefinition_Explicit) Unmarshal ¶
func (m *Params_MetricInfo_BucketsDefinition_Explicit) Unmarshal(dAtA []byte) error
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 (m *Params_MetricInfo_BucketsDefinition_ExplicitBuckets) MarshalTo(dAtA []byte) (int, error)
func (*Params_MetricInfo_BucketsDefinition_ExplicitBuckets) Size ¶
func (m *Params_MetricInfo_BucketsDefinition_ExplicitBuckets) Size() (n int)
func (*Params_MetricInfo_BucketsDefinition_ExplicitBuckets) String ¶
func (this *Params_MetricInfo_BucketsDefinition_ExplicitBuckets) String() 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) Descriptor() ([]byte, []int)
func (*Params_MetricInfo_BucketsDefinition_Exponential) Marshal ¶
func (m *Params_MetricInfo_BucketsDefinition_Exponential) Marshal() (dAtA []byte, err error)
func (*Params_MetricInfo_BucketsDefinition_Exponential) MarshalTo ¶
func (m *Params_MetricInfo_BucketsDefinition_Exponential) MarshalTo(dAtA []byte) (int, error)
func (*Params_MetricInfo_BucketsDefinition_Exponential) ProtoMessage ¶
func (*Params_MetricInfo_BucketsDefinition_Exponential) ProtoMessage()
func (*Params_MetricInfo_BucketsDefinition_Exponential) Reset ¶
func (m *Params_MetricInfo_BucketsDefinition_Exponential) Reset()
func (*Params_MetricInfo_BucketsDefinition_Exponential) Size ¶
func (m *Params_MetricInfo_BucketsDefinition_Exponential) Size() (n int)
func (*Params_MetricInfo_BucketsDefinition_Exponential) String ¶
func (this *Params_MetricInfo_BucketsDefinition_Exponential) String() string
func (*Params_MetricInfo_BucketsDefinition_Exponential) Unmarshal ¶
func (m *Params_MetricInfo_BucketsDefinition_Exponential) Unmarshal(dAtA []byte) error
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 (m *Params_MetricInfo_BucketsDefinition_ExponentialBuckets) MarshalTo(dAtA []byte) (int, error)
func (*Params_MetricInfo_BucketsDefinition_ExponentialBuckets) Size ¶
func (m *Params_MetricInfo_BucketsDefinition_ExponentialBuckets) Size() (n int)
func (*Params_MetricInfo_BucketsDefinition_ExponentialBuckets) String ¶
func (this *Params_MetricInfo_BucketsDefinition_ExponentialBuckets) String() 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) Descriptor() ([]byte, []int)
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) ProtoMessage()
func (*Params_MetricInfo_BucketsDefinition_Linear) Reset ¶
func (m *Params_MetricInfo_BucketsDefinition_Linear) Reset()
func (*Params_MetricInfo_BucketsDefinition_Linear) Size ¶
func (m *Params_MetricInfo_BucketsDefinition_Linear) Size() (n int)
func (*Params_MetricInfo_BucketsDefinition_Linear) String ¶
func (this *Params_MetricInfo_BucketsDefinition_Linear) String() string
func (*Params_MetricInfo_BucketsDefinition_Linear) Unmarshal ¶
func (m *Params_MetricInfo_BucketsDefinition_Linear) Unmarshal(dAtA []byte) error
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 (m *Params_MetricInfo_BucketsDefinition_LinearBuckets) MarshalTo(dAtA []byte) (int, error)
func (*Params_MetricInfo_BucketsDefinition_LinearBuckets) Size ¶
func (m *Params_MetricInfo_BucketsDefinition_LinearBuckets) Size() (n int)
func (*Params_MetricInfo_BucketsDefinition_LinearBuckets) String ¶
func (this *Params_MetricInfo_BucketsDefinition_LinearBuckets) String() 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
type Params_Trace ¶
type Params_Trace struct { // Proability that a particular trace ID will be sampled. SampleProbability float64 `protobuf:"fixed64,1,opt,name=sample_probability,json=sampleProbability,proto3" json:"sample_probability,omitempty"` }
Details of Stackdriver Trace configuration for tracespan template.
func (*Params_Trace) Descriptor ¶
func (*Params_Trace) Descriptor() ([]byte, []int)
func (*Params_Trace) Marshal ¶
func (m *Params_Trace) Marshal() (dAtA []byte, err error)
func (*Params_Trace) ProtoMessage ¶
func (*Params_Trace) ProtoMessage()
func (*Params_Trace) Reset ¶
func (m *Params_Trace) Reset()
func (*Params_Trace) Size ¶
func (m *Params_Trace) Size() (n int)
func (*Params_Trace) String ¶
func (this *Params_Trace) String() string
func (*Params_Trace) Unmarshal ¶
func (m *Params_Trace) Unmarshal(dAtA []byte) error