istio: istio.io/istio/mixer/adapter/stackdriver/config Index | Files

package config

import "istio.io/istio/mixer/adapter/stackdriver/config"

Index

Package Files

config.pb.go

Variables

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

type Params Uses

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,proto3,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 `protobuf:"bytes,8,rep,name=metric_info,json=metricInfo,proto3" json:"metric_info,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // A map of Istio LogEntry name to Stackdriver log info.
    LogInfo map[string]*Params_LogInfo `protobuf:"bytes,9,rep,name=log_info,json=logInfo,proto3" json:"log_info,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // Stackdriver Trace configuration.
    Trace *Params_Trace `protobuf:"bytes,10,opt,name=trace,proto3" json:"trace,omitempty"`
}

Configuration format for the `stackdriver` adapter.

func (*Params) Descriptor Uses

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

func (*Params) GetApiKey Uses

func (m *Params) GetApiKey() string

func (*Params) GetAppCredentials Uses

func (m *Params) GetAppCredentials() bool

func (*Params) GetCreds Uses

func (m *Params) GetCreds() isParams_Creds

func (*Params) GetServiceAccountPath Uses

func (m *Params) GetServiceAccountPath() string

func (*Params) Marshal Uses

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

func (*Params) MarshalTo Uses

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

func (*Params) MarshalToSizedBuffer Uses

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

func (*Params) ProtoMessage Uses

func (*Params) ProtoMessage()

func (*Params) Reset Uses

func (m *Params) Reset()

func (*Params) Size Uses

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

func (*Params) String Uses

func (this *Params) String() string

func (*Params) Unmarshal Uses

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

func (*Params) XXX_DiscardUnknown Uses

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal Uses

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge Uses

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_OneofWrappers Uses

func (*Params) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Params) XXX_Size Uses

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal Uses

func (m *Params) XXX_Unmarshal(b []byte) error

type Params_ApiKey Uses

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

func (*Params_ApiKey) MarshalTo Uses

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

func (*Params_ApiKey) MarshalToSizedBuffer Uses

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

func (*Params_ApiKey) Size Uses

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

func (*Params_ApiKey) String Uses

func (this *Params_ApiKey) String() string

type Params_AppCredentials Uses

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

func (*Params_AppCredentials) MarshalTo Uses

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

func (*Params_AppCredentials) MarshalToSizedBuffer Uses

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

func (*Params_AppCredentials) Size Uses

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

func (*Params_AppCredentials) String Uses

func (this *Params_AppCredentials) String() string

type Params_LogInfo Uses

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,proto3" 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,proto3" 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,proto3" json:"sink_info,omitempty"`
}

Describes how to represent an Istio Log in Stackdriver.

func (*Params_LogInfo) Descriptor Uses

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

func (*Params_LogInfo) Marshal Uses

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

func (*Params_LogInfo) MarshalTo Uses

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

func (*Params_LogInfo) MarshalToSizedBuffer Uses

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

func (*Params_LogInfo) ProtoMessage Uses

func (*Params_LogInfo) ProtoMessage()

func (*Params_LogInfo) Reset Uses

func (m *Params_LogInfo) Reset()

func (*Params_LogInfo) Size Uses

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

func (*Params_LogInfo) String Uses

func (this *Params_LogInfo) String() string

func (*Params_LogInfo) Unmarshal Uses

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

func (*Params_LogInfo) XXX_DiscardUnknown Uses

func (m *Params_LogInfo) XXX_DiscardUnknown()

func (*Params_LogInfo) XXX_Marshal Uses

func (m *Params_LogInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params_LogInfo) XXX_Merge Uses

func (m *Params_LogInfo) XXX_Merge(src proto.Message)

func (*Params_LogInfo) XXX_Size Uses

func (m *Params_LogInfo) XXX_Size() int

func (*Params_LogInfo) XXX_Unmarshal Uses

func (m *Params_LogInfo) XXX_Unmarshal(b []byte) error

type Params_LogInfo_HttpRequestMapping Uses

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 Uses

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

func (*Params_LogInfo_HttpRequestMapping) Marshal Uses

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

func (*Params_LogInfo_HttpRequestMapping) MarshalTo Uses

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

func (*Params_LogInfo_HttpRequestMapping) MarshalToSizedBuffer Uses

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

func (*Params_LogInfo_HttpRequestMapping) ProtoMessage Uses

func (*Params_LogInfo_HttpRequestMapping) ProtoMessage()

func (*Params_LogInfo_HttpRequestMapping) Reset Uses

func (m *Params_LogInfo_HttpRequestMapping) Reset()

func (*Params_LogInfo_HttpRequestMapping) Size Uses

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

func (*Params_LogInfo_HttpRequestMapping) String Uses

func (this *Params_LogInfo_HttpRequestMapping) String() string

func (*Params_LogInfo_HttpRequestMapping) Unmarshal Uses

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

func (*Params_LogInfo_HttpRequestMapping) XXX_DiscardUnknown Uses

func (m *Params_LogInfo_HttpRequestMapping) XXX_DiscardUnknown()

func (*Params_LogInfo_HttpRequestMapping) XXX_Marshal Uses

func (m *Params_LogInfo_HttpRequestMapping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params_LogInfo_HttpRequestMapping) XXX_Merge Uses

func (m *Params_LogInfo_HttpRequestMapping) XXX_Merge(src proto.Message)

func (*Params_LogInfo_HttpRequestMapping) XXX_Size Uses

func (m *Params_LogInfo_HttpRequestMapping) XXX_Size() int

func (*Params_LogInfo_HttpRequestMapping) XXX_Unmarshal Uses

func (m *Params_LogInfo_HttpRequestMapping) XXX_Unmarshal(b []byte) error

type Params_LogInfo_SinkInfo Uses

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"`
    // Determines the kind of IAM identity returned as WriterIdentity in the new
    // sink. If this value is omitted or set to false, and if the sink's parent is a
    // project, then the value returned as WriterIdentity is the same group or
    // service account used by Stackdriver Logging before the addition of writer
    // identities to the API. The sink's destination must be in the same project as
    // the sink itself.
    //
    // If this field is set to true, or if the sink is owned by a non-project
    // resource such as an organization, then the value of WriterIdentity will
    // be a unique service account used only for exports from the new sink.
    UniqueWriterIdentity bool `protobuf:"varint,4,opt,name=UniqueWriterIdentity,proto3" json:"UniqueWriterIdentity,omitempty"`
    // These fields apply only to UpdateSinkOpt calls. The corresponding sink field
    // is updated if and only if the Update field is true.
    // Upate sink destination.
    UpdateDestination bool `protobuf:"varint,5,opt,name=UpdateDestination,proto3" json:"UpdateDestination,omitempty"`
    // Update sink filter.
    UpdateFilter bool `protobuf:"varint,6,opt,name=UpdateFilter,proto3" json:"UpdateFilter,omitempty"`
    // Update includes children.
    UpdateIncludeChildren bool `protobuf:"varint,7,opt,name=UpdateIncludeChildren,proto3" json:"UpdateIncludeChildren,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:

“`yaml id: 'info-errors-to-gcs' destination: 'storage.googleapis.com/<bucket_name>' filter: 'severity >= Default' “`

func (*Params_LogInfo_SinkInfo) Descriptor Uses

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

func (*Params_LogInfo_SinkInfo) Marshal Uses

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

func (*Params_LogInfo_SinkInfo) MarshalTo Uses

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

func (*Params_LogInfo_SinkInfo) MarshalToSizedBuffer Uses

func (m *Params_LogInfo_SinkInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params_LogInfo_SinkInfo) ProtoMessage Uses

func (*Params_LogInfo_SinkInfo) ProtoMessage()

func (*Params_LogInfo_SinkInfo) Reset Uses

func (m *Params_LogInfo_SinkInfo) Reset()

func (*Params_LogInfo_SinkInfo) Size Uses

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

func (*Params_LogInfo_SinkInfo) String Uses

func (this *Params_LogInfo_SinkInfo) String() string

func (*Params_LogInfo_SinkInfo) Unmarshal Uses

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

func (*Params_LogInfo_SinkInfo) XXX_DiscardUnknown Uses

func (m *Params_LogInfo_SinkInfo) XXX_DiscardUnknown()

func (*Params_LogInfo_SinkInfo) XXX_Marshal Uses

func (m *Params_LogInfo_SinkInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params_LogInfo_SinkInfo) XXX_Merge Uses

func (m *Params_LogInfo_SinkInfo) XXX_Merge(src proto.Message)

func (*Params_LogInfo_SinkInfo) XXX_Size Uses

func (m *Params_LogInfo_SinkInfo) XXX_Size() int

func (*Params_LogInfo_SinkInfo) XXX_Unmarshal Uses

func (m *Params_LogInfo_SinkInfo) XXX_Unmarshal(b []byte) error

type Params_MetricInfo Uses

type Params_MetricInfo struct {
    // The kind of measurement for a metric, which describes how the data is reported. Ex: Gauge.
    Kind metric.MetricDescriptor_MetricKind `protobuf:"varint,1,opt,name=kind,proto3,enum=google.api.MetricDescriptor_MetricKind" json:"kind,omitempty"`
    // The type of the metric's value. Ex: Distribution.
    Value metric.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,proto3" 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 Uses

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

func (*Params_MetricInfo) Marshal Uses

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

func (*Params_MetricInfo) MarshalTo Uses

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

func (*Params_MetricInfo) MarshalToSizedBuffer Uses

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

func (*Params_MetricInfo) ProtoMessage Uses

func (*Params_MetricInfo) ProtoMessage()

func (*Params_MetricInfo) Reset Uses

func (m *Params_MetricInfo) Reset()

func (*Params_MetricInfo) Size Uses

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

func (*Params_MetricInfo) String Uses

func (this *Params_MetricInfo) String() string

func (*Params_MetricInfo) Unmarshal Uses

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

func (*Params_MetricInfo) XXX_DiscardUnknown Uses

func (m *Params_MetricInfo) XXX_DiscardUnknown()

func (*Params_MetricInfo) XXX_Marshal Uses

func (m *Params_MetricInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params_MetricInfo) XXX_Merge Uses

func (m *Params_MetricInfo) XXX_Merge(src proto.Message)

func (*Params_MetricInfo) XXX_Size Uses

func (m *Params_MetricInfo) XXX_Size() int

func (*Params_MetricInfo) XXX_Unmarshal Uses

func (m *Params_MetricInfo) XXX_Unmarshal(b []byte) error

type Params_MetricInfo_BucketsDefinition Uses

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 Uses

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

func (*Params_MetricInfo_BucketsDefinition) GetDefinition Uses

func (m *Params_MetricInfo_BucketsDefinition) GetDefinition() isParams_MetricInfo_BucketsDefinition_Definition

func (*Params_MetricInfo_BucketsDefinition) GetExplicitBuckets Uses

func (m *Params_MetricInfo_BucketsDefinition) GetExplicitBuckets() *Params_MetricInfo_BucketsDefinition_Explicit

func (*Params_MetricInfo_BucketsDefinition) GetExponentialBuckets Uses

func (m *Params_MetricInfo_BucketsDefinition) GetExponentialBuckets() *Params_MetricInfo_BucketsDefinition_Exponential

func (*Params_MetricInfo_BucketsDefinition) GetLinearBuckets Uses

func (m *Params_MetricInfo_BucketsDefinition) GetLinearBuckets() *Params_MetricInfo_BucketsDefinition_Linear

func (*Params_MetricInfo_BucketsDefinition) Marshal Uses

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

func (*Params_MetricInfo_BucketsDefinition) MarshalTo Uses

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

func (*Params_MetricInfo_BucketsDefinition) MarshalToSizedBuffer Uses

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

func (*Params_MetricInfo_BucketsDefinition) ProtoMessage Uses

func (*Params_MetricInfo_BucketsDefinition) ProtoMessage()

func (*Params_MetricInfo_BucketsDefinition) Reset Uses

func (m *Params_MetricInfo_BucketsDefinition) Reset()

func (*Params_MetricInfo_BucketsDefinition) Size Uses

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

func (*Params_MetricInfo_BucketsDefinition) String Uses

func (this *Params_MetricInfo_BucketsDefinition) String() string

func (*Params_MetricInfo_BucketsDefinition) Unmarshal Uses

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

func (*Params_MetricInfo_BucketsDefinition) XXX_DiscardUnknown Uses

func (m *Params_MetricInfo_BucketsDefinition) XXX_DiscardUnknown()

func (*Params_MetricInfo_BucketsDefinition) XXX_Marshal Uses

func (m *Params_MetricInfo_BucketsDefinition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params_MetricInfo_BucketsDefinition) XXX_Merge Uses

func (m *Params_MetricInfo_BucketsDefinition) XXX_Merge(src proto.Message)

func (*Params_MetricInfo_BucketsDefinition) XXX_OneofWrappers Uses

func (*Params_MetricInfo_BucketsDefinition) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Params_MetricInfo_BucketsDefinition) XXX_Size Uses

func (m *Params_MetricInfo_BucketsDefinition) XXX_Size() int

func (*Params_MetricInfo_BucketsDefinition) XXX_Unmarshal Uses

func (m *Params_MetricInfo_BucketsDefinition) XXX_Unmarshal(b []byte) error

type Params_MetricInfo_BucketsDefinition_Explicit Uses

type Params_MetricInfo_BucketsDefinition_Explicit struct {
    // The values must be monotonically increasing.
    Bounds []float64 `protobuf:"fixed64,1,rep,packed,name=bounds,proto3" 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 Uses

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

func (*Params_MetricInfo_BucketsDefinition_Explicit) Marshal Uses

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

func (*Params_MetricInfo_BucketsDefinition_Explicit) MarshalTo Uses

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

func (*Params_MetricInfo_BucketsDefinition_Explicit) MarshalToSizedBuffer Uses

func (m *Params_MetricInfo_BucketsDefinition_Explicit) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params_MetricInfo_BucketsDefinition_Explicit) ProtoMessage Uses

func (*Params_MetricInfo_BucketsDefinition_Explicit) ProtoMessage()

func (*Params_MetricInfo_BucketsDefinition_Explicit) Reset Uses

func (m *Params_MetricInfo_BucketsDefinition_Explicit) Reset()

func (*Params_MetricInfo_BucketsDefinition_Explicit) Size Uses

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

func (*Params_MetricInfo_BucketsDefinition_Explicit) String Uses

func (this *Params_MetricInfo_BucketsDefinition_Explicit) String() string

func (*Params_MetricInfo_BucketsDefinition_Explicit) Unmarshal Uses

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

func (*Params_MetricInfo_BucketsDefinition_Explicit) XXX_DiscardUnknown Uses

func (m *Params_MetricInfo_BucketsDefinition_Explicit) XXX_DiscardUnknown()

func (*Params_MetricInfo_BucketsDefinition_Explicit) XXX_Marshal Uses

func (m *Params_MetricInfo_BucketsDefinition_Explicit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params_MetricInfo_BucketsDefinition_Explicit) XXX_Merge Uses

func (m *Params_MetricInfo_BucketsDefinition_Explicit) XXX_Merge(src proto.Message)

func (*Params_MetricInfo_BucketsDefinition_Explicit) XXX_Size Uses

func (m *Params_MetricInfo_BucketsDefinition_Explicit) XXX_Size() int

func (*Params_MetricInfo_BucketsDefinition_Explicit) XXX_Unmarshal Uses

func (m *Params_MetricInfo_BucketsDefinition_Explicit) XXX_Unmarshal(b []byte) error

type Params_MetricInfo_BucketsDefinition_ExplicitBuckets Uses

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

func (*Params_MetricInfo_BucketsDefinition_ExplicitBuckets) MarshalTo Uses

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

func (*Params_MetricInfo_BucketsDefinition_ExplicitBuckets) MarshalToSizedBuffer Uses

func (m *Params_MetricInfo_BucketsDefinition_ExplicitBuckets) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params_MetricInfo_BucketsDefinition_ExplicitBuckets) Size Uses

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

func (*Params_MetricInfo_BucketsDefinition_ExplicitBuckets) String Uses

func (this *Params_MetricInfo_BucketsDefinition_ExplicitBuckets) String() string

type Params_MetricInfo_BucketsDefinition_Exponential Uses

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 Uses

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

func (*Params_MetricInfo_BucketsDefinition_Exponential) Marshal Uses

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

func (*Params_MetricInfo_BucketsDefinition_Exponential) MarshalTo Uses

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

func (*Params_MetricInfo_BucketsDefinition_Exponential) MarshalToSizedBuffer Uses

func (m *Params_MetricInfo_BucketsDefinition_Exponential) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params_MetricInfo_BucketsDefinition_Exponential) ProtoMessage Uses

func (*Params_MetricInfo_BucketsDefinition_Exponential) ProtoMessage()

func (*Params_MetricInfo_BucketsDefinition_Exponential) Reset Uses

func (m *Params_MetricInfo_BucketsDefinition_Exponential) Reset()

func (*Params_MetricInfo_BucketsDefinition_Exponential) Size Uses

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

func (*Params_MetricInfo_BucketsDefinition_Exponential) String Uses

func (this *Params_MetricInfo_BucketsDefinition_Exponential) String() string

func (*Params_MetricInfo_BucketsDefinition_Exponential) Unmarshal Uses

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

func (*Params_MetricInfo_BucketsDefinition_Exponential) XXX_DiscardUnknown Uses

func (m *Params_MetricInfo_BucketsDefinition_Exponential) XXX_DiscardUnknown()

func (*Params_MetricInfo_BucketsDefinition_Exponential) XXX_Marshal Uses

func (m *Params_MetricInfo_BucketsDefinition_Exponential) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params_MetricInfo_BucketsDefinition_Exponential) XXX_Merge Uses

func (m *Params_MetricInfo_BucketsDefinition_Exponential) XXX_Merge(src proto.Message)

func (*Params_MetricInfo_BucketsDefinition_Exponential) XXX_Size Uses

func (m *Params_MetricInfo_BucketsDefinition_Exponential) XXX_Size() int

func (*Params_MetricInfo_BucketsDefinition_Exponential) XXX_Unmarshal Uses

func (m *Params_MetricInfo_BucketsDefinition_Exponential) XXX_Unmarshal(b []byte) error

type Params_MetricInfo_BucketsDefinition_ExponentialBuckets Uses

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

func (*Params_MetricInfo_BucketsDefinition_ExponentialBuckets) MarshalTo Uses

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

func (*Params_MetricInfo_BucketsDefinition_ExponentialBuckets) MarshalToSizedBuffer Uses

func (m *Params_MetricInfo_BucketsDefinition_ExponentialBuckets) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params_MetricInfo_BucketsDefinition_ExponentialBuckets) Size Uses

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

func (*Params_MetricInfo_BucketsDefinition_ExponentialBuckets) String Uses

func (this *Params_MetricInfo_BucketsDefinition_ExponentialBuckets) String() string

type Params_MetricInfo_BucketsDefinition_Linear Uses

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 Uses

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

func (*Params_MetricInfo_BucketsDefinition_Linear) Marshal Uses

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

func (*Params_MetricInfo_BucketsDefinition_Linear) MarshalTo Uses

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

func (*Params_MetricInfo_BucketsDefinition_Linear) MarshalToSizedBuffer Uses

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

func (*Params_MetricInfo_BucketsDefinition_Linear) ProtoMessage Uses

func (*Params_MetricInfo_BucketsDefinition_Linear) ProtoMessage()

func (*Params_MetricInfo_BucketsDefinition_Linear) Reset Uses

func (m *Params_MetricInfo_BucketsDefinition_Linear) Reset()

func (*Params_MetricInfo_BucketsDefinition_Linear) Size Uses

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

func (*Params_MetricInfo_BucketsDefinition_Linear) String Uses

func (this *Params_MetricInfo_BucketsDefinition_Linear) String() string

func (*Params_MetricInfo_BucketsDefinition_Linear) Unmarshal Uses

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

func (*Params_MetricInfo_BucketsDefinition_Linear) XXX_DiscardUnknown Uses

func (m *Params_MetricInfo_BucketsDefinition_Linear) XXX_DiscardUnknown()

func (*Params_MetricInfo_BucketsDefinition_Linear) XXX_Marshal Uses

func (m *Params_MetricInfo_BucketsDefinition_Linear) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params_MetricInfo_BucketsDefinition_Linear) XXX_Merge Uses

func (m *Params_MetricInfo_BucketsDefinition_Linear) XXX_Merge(src proto.Message)

func (*Params_MetricInfo_BucketsDefinition_Linear) XXX_Size Uses

func (m *Params_MetricInfo_BucketsDefinition_Linear) XXX_Size() int

func (*Params_MetricInfo_BucketsDefinition_Linear) XXX_Unmarshal Uses

func (m *Params_MetricInfo_BucketsDefinition_Linear) XXX_Unmarshal(b []byte) error

type Params_MetricInfo_BucketsDefinition_LinearBuckets Uses

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

func (*Params_MetricInfo_BucketsDefinition_LinearBuckets) MarshalTo Uses

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

func (*Params_MetricInfo_BucketsDefinition_LinearBuckets) MarshalToSizedBuffer Uses

func (m *Params_MetricInfo_BucketsDefinition_LinearBuckets) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params_MetricInfo_BucketsDefinition_LinearBuckets) Size Uses

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

func (*Params_MetricInfo_BucketsDefinition_LinearBuckets) String Uses

func (this *Params_MetricInfo_BucketsDefinition_LinearBuckets) String() string

type Params_ServiceAccountPath Uses

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

func (*Params_ServiceAccountPath) MarshalTo Uses

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

func (*Params_ServiceAccountPath) MarshalToSizedBuffer Uses

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

func (*Params_ServiceAccountPath) Size Uses

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

func (*Params_ServiceAccountPath) String Uses

func (this *Params_ServiceAccountPath) String() string

type Params_Trace Uses

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 Uses

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

func (*Params_Trace) Marshal Uses

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

func (*Params_Trace) MarshalTo Uses

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

func (*Params_Trace) MarshalToSizedBuffer Uses

func (m *Params_Trace) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params_Trace) ProtoMessage Uses

func (*Params_Trace) ProtoMessage()

func (*Params_Trace) Reset Uses

func (m *Params_Trace) Reset()

func (*Params_Trace) Size Uses

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

func (*Params_Trace) String Uses

func (this *Params_Trace) String() string

func (*Params_Trace) Unmarshal Uses

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

func (*Params_Trace) XXX_DiscardUnknown Uses

func (m *Params_Trace) XXX_DiscardUnknown()

func (*Params_Trace) XXX_Marshal Uses

func (m *Params_Trace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params_Trace) XXX_Merge Uses

func (m *Params_Trace) XXX_Merge(src proto.Message)

func (*Params_Trace) XXX_Size Uses

func (m *Params_Trace) XXX_Size() int

func (*Params_Trace) XXX_Unmarshal Uses

func (m *Params_Trace) XXX_Unmarshal(b []byte) error

Package config imports 13 packages (graph) and is imported by 12 packages. Updated 2019-10-12. Refresh now. Tools for package owners.