logging

package
v0.0.0-...-2a72893 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogMetric_ApiVersion_name = map[int32]string{
	0: "V2",
	1: "V1",
}
View Source
var LogMetric_ApiVersion_value = map[string]int32{
	"V2": 0,
	"V1": 1,
}
View Source
var LogSink_VersionFormat_name = map[int32]string{
	0: "VERSION_FORMAT_UNSPECIFIED",
	1: "V2",
	2: "V1",
}
View Source
var LogSink_VersionFormat_value = map[string]int32{
	"VERSION_FORMAT_UNSPECIFIED": 0,
	"V2":                         1,
	"V1":                         2,
}

Functions

func RegisterConfigServiceV2Server

func RegisterConfigServiceV2Server(s *grpc.Server, srv ConfigServiceV2Server)

func RegisterLoggingServiceV2Server

func RegisterLoggingServiceV2Server(s *grpc.Server, srv LoggingServiceV2Server)

func RegisterMetricsServiceV2Server

func RegisterMetricsServiceV2Server(s *grpc.Server, srv MetricsServiceV2Server)

Types

type ConfigServiceV2Client

type ConfigServiceV2Client interface {
	// Lists sinks.
	ListSinks(ctx context.Context, in *ListSinksRequest, opts ...grpc.CallOption) (*ListSinksResponse, error)
	// Gets a sink.
	GetSink(ctx context.Context, in *GetSinkRequest, opts ...grpc.CallOption) (*LogSink, error)
	// Creates a sink that exports specified log entries to a destination.  The
	// export of newly-ingested log entries begins immediately, unless the sink's
	// `writer_identity` is not permitted to write to the destination.  A sink can
	// export log entries only from the resource owning the sink.
	CreateSink(ctx context.Context, in *CreateSinkRequest, opts ...grpc.CallOption) (*LogSink, error)
	// Updates a sink.  This method replaces the following fields in the existing
	// sink with values from the new sink: `destination`, and `filter`.
	// The updated sink might also have a new `writer_identity`; see the
	// `unique_writer_identity` field.
	UpdateSink(ctx context.Context, in *UpdateSinkRequest, opts ...grpc.CallOption) (*LogSink, error)
	// Deletes a sink. If the sink has a unique `writer_identity`, then that
	// service account is also deleted.
	DeleteSink(ctx context.Context, in *DeleteSinkRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Lists all the exclusions in a parent resource.
	ListExclusions(ctx context.Context, in *ListExclusionsRequest, opts ...grpc.CallOption) (*ListExclusionsResponse, error)
	// Gets the description of an exclusion.
	GetExclusion(ctx context.Context, in *GetExclusionRequest, opts ...grpc.CallOption) (*LogExclusion, error)
	// Creates a new exclusion in a specified parent resource.
	// Only log entries belonging to that resource can be excluded.
	// You can have up to 10 exclusions in a resource.
	CreateExclusion(ctx context.Context, in *CreateExclusionRequest, opts ...grpc.CallOption) (*LogExclusion, error)
	// Changes one or more properties of an existing exclusion.
	UpdateExclusion(ctx context.Context, in *UpdateExclusionRequest, opts ...grpc.CallOption) (*LogExclusion, error)
	// Deletes an exclusion.
	DeleteExclusion(ctx context.Context, in *DeleteExclusionRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}

ConfigServiceV2Client is the client API for ConfigServiceV2 service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewConfigServiceV2Client

func NewConfigServiceV2Client(cc *grpc.ClientConn) ConfigServiceV2Client

type ConfigServiceV2Server

type ConfigServiceV2Server interface {
	// Lists sinks.
	ListSinks(context.Context, *ListSinksRequest) (*ListSinksResponse, error)
	// Gets a sink.
	GetSink(context.Context, *GetSinkRequest) (*LogSink, error)
	// Creates a sink that exports specified log entries to a destination.  The
	// export of newly-ingested log entries begins immediately, unless the sink's
	// `writer_identity` is not permitted to write to the destination.  A sink can
	// export log entries only from the resource owning the sink.
	CreateSink(context.Context, *CreateSinkRequest) (*LogSink, error)
	// Updates a sink.  This method replaces the following fields in the existing
	// sink with values from the new sink: `destination`, and `filter`.
	// The updated sink might also have a new `writer_identity`; see the
	// `unique_writer_identity` field.
	UpdateSink(context.Context, *UpdateSinkRequest) (*LogSink, error)
	// Deletes a sink. If the sink has a unique `writer_identity`, then that
	// service account is also deleted.
	DeleteSink(context.Context, *DeleteSinkRequest) (*empty.Empty, error)
	// Lists all the exclusions in a parent resource.
	ListExclusions(context.Context, *ListExclusionsRequest) (*ListExclusionsResponse, error)
	// Gets the description of an exclusion.
	GetExclusion(context.Context, *GetExclusionRequest) (*LogExclusion, error)
	// Creates a new exclusion in a specified parent resource.
	// Only log entries belonging to that resource can be excluded.
	// You can have up to 10 exclusions in a resource.
	CreateExclusion(context.Context, *CreateExclusionRequest) (*LogExclusion, error)
	// Changes one or more properties of an existing exclusion.
	UpdateExclusion(context.Context, *UpdateExclusionRequest) (*LogExclusion, error)
	// Deletes an exclusion.
	DeleteExclusion(context.Context, *DeleteExclusionRequest) (*empty.Empty, error)
}

ConfigServiceV2Server is the server API for ConfigServiceV2 service.

type CreateExclusionRequest

type CreateExclusionRequest struct {
	// Required. The parent resource in which to create the exclusion:
	//
	//     "projects/[PROJECT_ID]"
	//     "organizations/[ORGANIZATION_ID]"
	//     "billingAccounts/[BILLING_ACCOUNT_ID]"
	//     "folders/[FOLDER_ID]"
	//
	// Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The new exclusion, whose `name` parameter is an exclusion name
	// that is not already used in the parent resource.
	Exclusion            *LogExclusion `protobuf:"bytes,2,opt,name=exclusion,proto3" json:"exclusion,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

The parameters to `CreateExclusion`.

func (*CreateExclusionRequest) Descriptor

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

func (*CreateExclusionRequest) GetExclusion

func (m *CreateExclusionRequest) GetExclusion() *LogExclusion

func (*CreateExclusionRequest) GetParent

func (m *CreateExclusionRequest) GetParent() string

func (*CreateExclusionRequest) ProtoMessage

func (*CreateExclusionRequest) ProtoMessage()

func (*CreateExclusionRequest) Reset

func (m *CreateExclusionRequest) Reset()

func (*CreateExclusionRequest) String

func (m *CreateExclusionRequest) String() string

func (*CreateExclusionRequest) XXX_DiscardUnknown

func (m *CreateExclusionRequest) XXX_DiscardUnknown()

func (*CreateExclusionRequest) XXX_Marshal

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

func (*CreateExclusionRequest) XXX_Merge

func (dst *CreateExclusionRequest) XXX_Merge(src proto.Message)

func (*CreateExclusionRequest) XXX_Size

func (m *CreateExclusionRequest) XXX_Size() int

func (*CreateExclusionRequest) XXX_Unmarshal

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

type CreateLogMetricRequest

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:"-"`
}

The parameters to CreateLogMetric.

func (*CreateLogMetricRequest) Descriptor

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

func (*CreateLogMetricRequest) GetMetric

func (m *CreateLogMetricRequest) GetMetric() *LogMetric

func (*CreateLogMetricRequest) GetParent

func (m *CreateLogMetricRequest) GetParent() string

func (*CreateLogMetricRequest) ProtoMessage

func (*CreateLogMetricRequest) ProtoMessage()

func (*CreateLogMetricRequest) Reset

func (m *CreateLogMetricRequest) Reset()

func (*CreateLogMetricRequest) String

func (m *CreateLogMetricRequest) String() string

func (*CreateLogMetricRequest) XXX_DiscardUnknown

func (m *CreateLogMetricRequest) XXX_DiscardUnknown()

func (*CreateLogMetricRequest) XXX_Marshal

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

func (*CreateLogMetricRequest) XXX_Merge

func (dst *CreateLogMetricRequest) XXX_Merge(src proto.Message)

func (*CreateLogMetricRequest) XXX_Size

func (m *CreateLogMetricRequest) XXX_Size() int

func (*CreateLogMetricRequest) XXX_Unmarshal

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

type CreateSinkRequest

type CreateSinkRequest struct {
	// Required. The resource in which to create the sink:
	//
	//     "projects/[PROJECT_ID]"
	//     "organizations/[ORGANIZATION_ID]"
	//     "billingAccounts/[BILLING_ACCOUNT_ID]"
	//     "folders/[FOLDER_ID]"
	//
	// Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The new sink, whose `name` parameter is a sink identifier that
	// is not already in use.
	Sink *LogSink `protobuf:"bytes,2,opt,name=sink,proto3" json:"sink,omitempty"`
	// Optional. Determines the kind of IAM identity returned as `writer_identity`
	// 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 `writer_identity` is
	// the same group or service account used by Stackdriver Logging before the
	// addition of writer identities to this 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 `writer_identity` will
	// be a unique service account used only for exports from the new sink.  For
	// more information, see `writer_identity` in [LogSink][google.logging.v2.LogSink].
	UniqueWriterIdentity bool     `protobuf:"varint,3,opt,name=unique_writer_identity,json=uniqueWriterIdentity,proto3" json:"unique_writer_identity,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The parameters to `CreateSink`.

func (*CreateSinkRequest) Descriptor

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

func (*CreateSinkRequest) GetParent

func (m *CreateSinkRequest) GetParent() string

func (*CreateSinkRequest) GetSink

func (m *CreateSinkRequest) GetSink() *LogSink

func (*CreateSinkRequest) GetUniqueWriterIdentity

func (m *CreateSinkRequest) GetUniqueWriterIdentity() bool

func (*CreateSinkRequest) ProtoMessage

func (*CreateSinkRequest) ProtoMessage()

func (*CreateSinkRequest) Reset

func (m *CreateSinkRequest) Reset()

func (*CreateSinkRequest) String

func (m *CreateSinkRequest) String() string

func (*CreateSinkRequest) XXX_DiscardUnknown

func (m *CreateSinkRequest) XXX_DiscardUnknown()

func (*CreateSinkRequest) XXX_Marshal

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

func (*CreateSinkRequest) XXX_Merge

func (dst *CreateSinkRequest) XXX_Merge(src proto.Message)

func (*CreateSinkRequest) XXX_Size

func (m *CreateSinkRequest) XXX_Size() int

func (*CreateSinkRequest) XXX_Unmarshal

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

type DeleteExclusionRequest

type DeleteExclusionRequest struct {
	// Required. The resource name of an existing exclusion to delete:
	//
	//     "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
	//     "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
	//     "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
	//     "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
	//
	// Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The parameters to `DeleteExclusion`.

func (*DeleteExclusionRequest) Descriptor

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

func (*DeleteExclusionRequest) GetName

func (m *DeleteExclusionRequest) GetName() string

func (*DeleteExclusionRequest) ProtoMessage

func (*DeleteExclusionRequest) ProtoMessage()

func (*DeleteExclusionRequest) Reset

func (m *DeleteExclusionRequest) Reset()

func (*DeleteExclusionRequest) String

func (m *DeleteExclusionRequest) String() string

func (*DeleteExclusionRequest) XXX_DiscardUnknown

func (m *DeleteExclusionRequest) XXX_DiscardUnknown()

func (*DeleteExclusionRequest) XXX_Marshal

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

func (*DeleteExclusionRequest) XXX_Merge

func (dst *DeleteExclusionRequest) XXX_Merge(src proto.Message)

func (*DeleteExclusionRequest) XXX_Size

func (m *DeleteExclusionRequest) XXX_Size() int

func (*DeleteExclusionRequest) XXX_Unmarshal

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

type DeleteLogMetricRequest

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:"-"`
}

The parameters to DeleteLogMetric.

func (*DeleteLogMetricRequest) Descriptor

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

func (*DeleteLogMetricRequest) GetMetricName

func (m *DeleteLogMetricRequest) GetMetricName() string

func (*DeleteLogMetricRequest) ProtoMessage

func (*DeleteLogMetricRequest) ProtoMessage()

func (*DeleteLogMetricRequest) Reset

func (m *DeleteLogMetricRequest) Reset()

func (*DeleteLogMetricRequest) String

func (m *DeleteLogMetricRequest) String() string

func (*DeleteLogMetricRequest) XXX_DiscardUnknown

func (m *DeleteLogMetricRequest) XXX_DiscardUnknown()

func (*DeleteLogMetricRequest) XXX_Marshal

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

func (*DeleteLogMetricRequest) XXX_Merge

func (dst *DeleteLogMetricRequest) XXX_Merge(src proto.Message)

func (*DeleteLogMetricRequest) XXX_Size

func (m *DeleteLogMetricRequest) XXX_Size() int

func (*DeleteLogMetricRequest) XXX_Unmarshal

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

type DeleteLogRequest

type DeleteLogRequest struct {
	// Required. The resource name of the log to delete:
	//
	//     "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]"
	//
	// `[LOG_ID]` must be URL-encoded. For example,
	// `"projects/my-project-id/logs/syslog"`,
	// `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
	// For more information about log names, see
	// [LogEntry][google.logging.v2.LogEntry].
	LogName              string   `protobuf:"bytes,1,opt,name=log_name,json=logName,proto3" json:"log_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The parameters to DeleteLog.

func (*DeleteLogRequest) Descriptor

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

func (*DeleteLogRequest) GetLogName

func (m *DeleteLogRequest) GetLogName() string

func (*DeleteLogRequest) ProtoMessage

func (*DeleteLogRequest) ProtoMessage()

func (*DeleteLogRequest) Reset

func (m *DeleteLogRequest) Reset()

func (*DeleteLogRequest) String

func (m *DeleteLogRequest) String() string

func (*DeleteLogRequest) XXX_DiscardUnknown

func (m *DeleteLogRequest) XXX_DiscardUnknown()

func (*DeleteLogRequest) XXX_Marshal

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

func (*DeleteLogRequest) XXX_Merge

func (dst *DeleteLogRequest) XXX_Merge(src proto.Message)

func (*DeleteLogRequest) XXX_Size

func (m *DeleteLogRequest) XXX_Size() int

func (*DeleteLogRequest) XXX_Unmarshal

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

type DeleteSinkRequest

type DeleteSinkRequest struct {
	// Required. The full resource name of the sink to delete, including the
	// parent resource and the sink identifier:
	//
	//     "projects/[PROJECT_ID]/sinks/[SINK_ID]"
	//     "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
	//     "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
	//     "folders/[FOLDER_ID]/sinks/[SINK_ID]"
	//
	// Example: `"projects/my-project-id/sinks/my-sink-id"`.
	SinkName             string   `protobuf:"bytes,1,opt,name=sink_name,json=sinkName,proto3" json:"sink_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The parameters to `DeleteSink`.

func (*DeleteSinkRequest) Descriptor

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

func (*DeleteSinkRequest) GetSinkName

func (m *DeleteSinkRequest) GetSinkName() string

func (*DeleteSinkRequest) ProtoMessage

func (*DeleteSinkRequest) ProtoMessage()

func (*DeleteSinkRequest) Reset

func (m *DeleteSinkRequest) Reset()

func (*DeleteSinkRequest) String

func (m *DeleteSinkRequest) String() string

func (*DeleteSinkRequest) XXX_DiscardUnknown

func (m *DeleteSinkRequest) XXX_DiscardUnknown()

func (*DeleteSinkRequest) XXX_Marshal

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

func (*DeleteSinkRequest) XXX_Merge

func (dst *DeleteSinkRequest) XXX_Merge(src proto.Message)

func (*DeleteSinkRequest) XXX_Size

func (m *DeleteSinkRequest) XXX_Size() int

func (*DeleteSinkRequest) XXX_Unmarshal

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

type GetExclusionRequest

type GetExclusionRequest struct {
	// Required. The resource name of an existing exclusion:
	//
	//     "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
	//     "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
	//     "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
	//     "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
	//
	// Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The parameters to `GetExclusion`.

func (*GetExclusionRequest) Descriptor

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

func (*GetExclusionRequest) GetName

func (m *GetExclusionRequest) GetName() string

func (*GetExclusionRequest) ProtoMessage

func (*GetExclusionRequest) ProtoMessage()

func (*GetExclusionRequest) Reset

func (m *GetExclusionRequest) Reset()

func (*GetExclusionRequest) String

func (m *GetExclusionRequest) String() string

func (*GetExclusionRequest) XXX_DiscardUnknown

func (m *GetExclusionRequest) XXX_DiscardUnknown()

func (*GetExclusionRequest) XXX_Marshal

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

func (*GetExclusionRequest) XXX_Merge

func (dst *GetExclusionRequest) XXX_Merge(src proto.Message)

func (*GetExclusionRequest) XXX_Size

func (m *GetExclusionRequest) XXX_Size() int

func (*GetExclusionRequest) XXX_Unmarshal

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

type GetLogMetricRequest

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:"-"`
}

The parameters to GetLogMetric.

func (*GetLogMetricRequest) Descriptor

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

func (*GetLogMetricRequest) GetMetricName

func (m *GetLogMetricRequest) GetMetricName() string

func (*GetLogMetricRequest) ProtoMessage

func (*GetLogMetricRequest) ProtoMessage()

func (*GetLogMetricRequest) Reset

func (m *GetLogMetricRequest) Reset()

func (*GetLogMetricRequest) String

func (m *GetLogMetricRequest) String() string

func (*GetLogMetricRequest) XXX_DiscardUnknown

func (m *GetLogMetricRequest) XXX_DiscardUnknown()

func (*GetLogMetricRequest) XXX_Marshal

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

func (*GetLogMetricRequest) XXX_Merge

func (dst *GetLogMetricRequest) XXX_Merge(src proto.Message)

func (*GetLogMetricRequest) XXX_Size

func (m *GetLogMetricRequest) XXX_Size() int

func (*GetLogMetricRequest) XXX_Unmarshal

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

type GetSinkRequest

type GetSinkRequest struct {
	// Required. The resource name of the sink:
	//
	//     "projects/[PROJECT_ID]/sinks/[SINK_ID]"
	//     "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
	//     "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
	//     "folders/[FOLDER_ID]/sinks/[SINK_ID]"
	//
	// Example: `"projects/my-project-id/sinks/my-sink-id"`.
	SinkName             string   `protobuf:"bytes,1,opt,name=sink_name,json=sinkName,proto3" json:"sink_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The parameters to `GetSink`.

func (*GetSinkRequest) Descriptor

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

func (*GetSinkRequest) GetSinkName

func (m *GetSinkRequest) GetSinkName() string

func (*GetSinkRequest) ProtoMessage

func (*GetSinkRequest) ProtoMessage()

func (*GetSinkRequest) Reset

func (m *GetSinkRequest) Reset()

func (*GetSinkRequest) String

func (m *GetSinkRequest) String() string

func (*GetSinkRequest) XXX_DiscardUnknown

func (m *GetSinkRequest) XXX_DiscardUnknown()

func (*GetSinkRequest) XXX_Marshal

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

func (*GetSinkRequest) XXX_Merge

func (dst *GetSinkRequest) XXX_Merge(src proto.Message)

func (*GetSinkRequest) XXX_Size

func (m *GetSinkRequest) XXX_Size() int

func (*GetSinkRequest) XXX_Unmarshal

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

type ListExclusionsRequest

type ListExclusionsRequest struct {
	// Required. The parent resource whose exclusions are to be listed.
	//
	//     "projects/[PROJECT_ID]"
	//     "organizations/[ORGANIZATION_ID]"
	//     "billingAccounts/[BILLING_ACCOUNT_ID]"
	//     "folders/[FOLDER_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:"-"`
}

The parameters to `ListExclusions`.

func (*ListExclusionsRequest) Descriptor

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

func (*ListExclusionsRequest) GetPageSize

func (m *ListExclusionsRequest) GetPageSize() int32

func (*ListExclusionsRequest) GetPageToken

func (m *ListExclusionsRequest) GetPageToken() string

func (*ListExclusionsRequest) GetParent

func (m *ListExclusionsRequest) GetParent() string

func (*ListExclusionsRequest) ProtoMessage

func (*ListExclusionsRequest) ProtoMessage()

func (*ListExclusionsRequest) Reset

func (m *ListExclusionsRequest) Reset()

func (*ListExclusionsRequest) String

func (m *ListExclusionsRequest) String() string

func (*ListExclusionsRequest) XXX_DiscardUnknown

func (m *ListExclusionsRequest) XXX_DiscardUnknown()

func (*ListExclusionsRequest) XXX_Marshal

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

func (*ListExclusionsRequest) XXX_Merge

func (dst *ListExclusionsRequest) XXX_Merge(src proto.Message)

func (*ListExclusionsRequest) XXX_Size

func (m *ListExclusionsRequest) XXX_Size() int

func (*ListExclusionsRequest) XXX_Unmarshal

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

type ListExclusionsResponse

type ListExclusionsResponse struct {
	// A list of exclusions.
	Exclusions []*LogExclusion `protobuf:"bytes,1,rep,name=exclusions,proto3" json:"exclusions,omitempty"`
	// If there might be more results than appear in this response, then
	// `nextPageToken` is included.  To get the next set of results, call the same
	// 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:"-"`
}

Result returned from `ListExclusions`.

func (*ListExclusionsResponse) Descriptor

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

func (*ListExclusionsResponse) GetExclusions

func (m *ListExclusionsResponse) GetExclusions() []*LogExclusion

func (*ListExclusionsResponse) GetNextPageToken

func (m *ListExclusionsResponse) GetNextPageToken() string

func (*ListExclusionsResponse) ProtoMessage

func (*ListExclusionsResponse) ProtoMessage()

func (*ListExclusionsResponse) Reset

func (m *ListExclusionsResponse) Reset()

func (*ListExclusionsResponse) String

func (m *ListExclusionsResponse) String() string

func (*ListExclusionsResponse) XXX_DiscardUnknown

func (m *ListExclusionsResponse) XXX_DiscardUnknown()

func (*ListExclusionsResponse) XXX_Marshal

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

func (*ListExclusionsResponse) XXX_Merge

func (dst *ListExclusionsResponse) XXX_Merge(src proto.Message)

func (*ListExclusionsResponse) XXX_Size

func (m *ListExclusionsResponse) XXX_Size() int

func (*ListExclusionsResponse) XXX_Unmarshal

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

type ListLogEntriesRequest

type ListLogEntriesRequest struct {
	// Deprecated. Use `resource_names` instead.  One or more project identifiers
	// or project numbers from which to retrieve log entries.  Example:
	// `"my-project-1A"`. If present, these project identifiers are converted to
	// resource name format and added to the list of resources in
	// `resource_names`.
	ProjectIds []string `protobuf:"bytes,1,rep,name=project_ids,json=projectIds,proto3" json:"project_ids,omitempty"` // Deprecated: Do not use.
	// Required. Names of one or more parent resources from which to
	// retrieve log entries:
	//
	//     "projects/[PROJECT_ID]"
	//     "organizations/[ORGANIZATION_ID]"
	//     "billingAccounts/[BILLING_ACCOUNT_ID]"
	//     "folders/[FOLDER_ID]"
	//
	// Projects listed in the `project_ids` field are added to this list.
	ResourceNames []string `protobuf:"bytes,8,rep,name=resource_names,json=resourceNames,proto3" json:"resource_names,omitempty"`
	// Optional. A filter that chooses which log entries to return.  See [Advanced
	// Logs Filters](/logging/docs/view/advanced_filters).  Only log entries that
	// match the filter are returned.  An empty filter matches all log entries in
	// the resources listed in `resource_names`. Referencing a parent resource
	// that is not listed in `resource_names` will cause the filter to return no
	// results.
	// The maximum length of the filter is 20000 characters.
	Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
	// Optional. How the results should be sorted.  Presently, the only permitted
	// values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
	// option returns entries in order of increasing values of
	// `LogEntry.timestamp` (oldest first), and the second option returns entries
	// in order of decreasing timestamps (newest first).  Entries with equal
	// timestamps are returned in order of their `insert_id` values.
	OrderBy string `protobuf:"bytes,3,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// Optional. The maximum number of results to return from this request.
	// Non-positive values are ignored.  The presence of `next_page_token` in the
	// response indicates that more results might be available.
	PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. If present, then retrieve the next batch of results from the
	// preceding call to this method.  `page_token` must be the value of
	// `next_page_token` from the previous response.  The values of other method
	// parameters should be identical to those in the previous call.
	PageToken            string   `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The parameters to `ListLogEntries`.

func (*ListLogEntriesRequest) Descriptor

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

func (*ListLogEntriesRequest) GetFilter

func (m *ListLogEntriesRequest) GetFilter() string

func (*ListLogEntriesRequest) GetOrderBy

func (m *ListLogEntriesRequest) GetOrderBy() string

func (*ListLogEntriesRequest) GetPageSize

func (m *ListLogEntriesRequest) GetPageSize() int32

func (*ListLogEntriesRequest) GetPageToken

func (m *ListLogEntriesRequest) GetPageToken() string

func (*ListLogEntriesRequest) GetProjectIds deprecated

func (m *ListLogEntriesRequest) GetProjectIds() []string

Deprecated: Do not use.

func (*ListLogEntriesRequest) GetResourceNames

func (m *ListLogEntriesRequest) GetResourceNames() []string

func (*ListLogEntriesRequest) ProtoMessage

func (*ListLogEntriesRequest) ProtoMessage()

func (*ListLogEntriesRequest) Reset

func (m *ListLogEntriesRequest) Reset()

func (*ListLogEntriesRequest) String

func (m *ListLogEntriesRequest) String() string

func (*ListLogEntriesRequest) XXX_DiscardUnknown

func (m *ListLogEntriesRequest) XXX_DiscardUnknown()

func (*ListLogEntriesRequest) XXX_Marshal

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

func (*ListLogEntriesRequest) XXX_Merge

func (dst *ListLogEntriesRequest) XXX_Merge(src proto.Message)

func (*ListLogEntriesRequest) XXX_Size

func (m *ListLogEntriesRequest) XXX_Size() int

func (*ListLogEntriesRequest) XXX_Unmarshal

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

type ListLogEntriesResponse

type ListLogEntriesResponse struct {
	// A list of log entries.  If `entries` is empty, `nextPageToken` may still be
	// returned, indicating that more entries may exist.  See `nextPageToken` for
	// more information.
	Entries []*LogEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
	// If there might be more results than those appearing 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`.
	//
	// If a value for `next_page_token` appears and the `entries` field is empty,
	// it means that the search found no log entries so far but it did not have
	// time to search all the possible log entries.  Retry the method with this
	// value for `page_token` to continue the search.  Alternatively, consider
	// speeding up the search by changing your filter to specify a single log name
	// or resource type, or to narrow the time range of the search.
	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:"-"`
}

Result returned from `ListLogEntries`.

func (*ListLogEntriesResponse) Descriptor

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

func (*ListLogEntriesResponse) GetEntries

func (m *ListLogEntriesResponse) GetEntries() []*LogEntry

func (*ListLogEntriesResponse) GetNextPageToken

func (m *ListLogEntriesResponse) GetNextPageToken() string

func (*ListLogEntriesResponse) ProtoMessage

func (*ListLogEntriesResponse) ProtoMessage()

func (*ListLogEntriesResponse) Reset

func (m *ListLogEntriesResponse) Reset()

func (*ListLogEntriesResponse) String

func (m *ListLogEntriesResponse) String() string

func (*ListLogEntriesResponse) XXX_DiscardUnknown

func (m *ListLogEntriesResponse) XXX_DiscardUnknown()

func (*ListLogEntriesResponse) XXX_Marshal

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

func (*ListLogEntriesResponse) XXX_Merge

func (dst *ListLogEntriesResponse) XXX_Merge(src proto.Message)

func (*ListLogEntriesResponse) XXX_Size

func (m *ListLogEntriesResponse) XXX_Size() int

func (*ListLogEntriesResponse) XXX_Unmarshal

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

type ListLogMetricsRequest

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:"-"`
}

The parameters to ListLogMetrics.

func (*ListLogMetricsRequest) Descriptor

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

func (*ListLogMetricsRequest) GetPageSize

func (m *ListLogMetricsRequest) GetPageSize() int32

func (*ListLogMetricsRequest) GetPageToken

func (m *ListLogMetricsRequest) GetPageToken() string

func (*ListLogMetricsRequest) GetParent

func (m *ListLogMetricsRequest) GetParent() string

func (*ListLogMetricsRequest) ProtoMessage

func (*ListLogMetricsRequest) ProtoMessage()

func (*ListLogMetricsRequest) Reset

func (m *ListLogMetricsRequest) Reset()

func (*ListLogMetricsRequest) String

func (m *ListLogMetricsRequest) String() string

func (*ListLogMetricsRequest) XXX_DiscardUnknown

func (m *ListLogMetricsRequest) XXX_DiscardUnknown()

func (*ListLogMetricsRequest) XXX_Marshal

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

func (*ListLogMetricsRequest) XXX_Merge

func (dst *ListLogMetricsRequest) XXX_Merge(src proto.Message)

func (*ListLogMetricsRequest) XXX_Size

func (m *ListLogMetricsRequest) XXX_Size() int

func (*ListLogMetricsRequest) XXX_Unmarshal

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

type ListLogMetricsResponse

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:"-"`
}

Result returned from ListLogMetrics.

func (*ListLogMetricsResponse) Descriptor

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

func (*ListLogMetricsResponse) GetMetrics

func (m *ListLogMetricsResponse) GetMetrics() []*LogMetric

func (*ListLogMetricsResponse) GetNextPageToken

func (m *ListLogMetricsResponse) GetNextPageToken() string

func (*ListLogMetricsResponse) ProtoMessage

func (*ListLogMetricsResponse) ProtoMessage()

func (*ListLogMetricsResponse) Reset

func (m *ListLogMetricsResponse) Reset()

func (*ListLogMetricsResponse) String

func (m *ListLogMetricsResponse) String() string

func (*ListLogMetricsResponse) XXX_DiscardUnknown

func (m *ListLogMetricsResponse) XXX_DiscardUnknown()

func (*ListLogMetricsResponse) XXX_Marshal

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

func (*ListLogMetricsResponse) XXX_Merge

func (dst *ListLogMetricsResponse) XXX_Merge(src proto.Message)

func (*ListLogMetricsResponse) XXX_Size

func (m *ListLogMetricsResponse) XXX_Size() int

func (*ListLogMetricsResponse) XXX_Unmarshal

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

type ListLogsRequest

type ListLogsRequest struct {
	// Required. The resource name that owns the logs:
	//
	//     "projects/[PROJECT_ID]"
	//     "organizations/[ORGANIZATION_ID]"
	//     "billingAccounts/[BILLING_ACCOUNT_ID]"
	//     "folders/[FOLDER_ID]"
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,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,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,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,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The parameters to ListLogs.

func (*ListLogsRequest) Descriptor

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

func (*ListLogsRequest) GetPageSize

func (m *ListLogsRequest) GetPageSize() int32

func (*ListLogsRequest) GetPageToken

func (m *ListLogsRequest) GetPageToken() string

func (*ListLogsRequest) GetParent

func (m *ListLogsRequest) GetParent() string

func (*ListLogsRequest) ProtoMessage

func (*ListLogsRequest) ProtoMessage()

func (*ListLogsRequest) Reset

func (m *ListLogsRequest) Reset()

func (*ListLogsRequest) String

func (m *ListLogsRequest) String() string

func (*ListLogsRequest) XXX_DiscardUnknown

func (m *ListLogsRequest) XXX_DiscardUnknown()

func (*ListLogsRequest) XXX_Marshal

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

func (*ListLogsRequest) XXX_Merge

func (dst *ListLogsRequest) XXX_Merge(src proto.Message)

func (*ListLogsRequest) XXX_Size

func (m *ListLogsRequest) XXX_Size() int

func (*ListLogsRequest) XXX_Unmarshal

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

type ListLogsResponse

type ListLogsResponse struct {
	// A list of log names. For example,
	// `"projects/my-project/syslog"` or
	// `"organizations/123/cloudresourcemanager.googleapis.com%2Factivity"`.
	LogNames []string `protobuf:"bytes,3,rep,name=log_names,json=logNames,proto3" json:"log_names,omitempty"`
	// If there might be more results than those appearing 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:"-"`
}

Result returned from ListLogs.

func (*ListLogsResponse) Descriptor

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

func (*ListLogsResponse) GetLogNames

func (m *ListLogsResponse) GetLogNames() []string

func (*ListLogsResponse) GetNextPageToken

func (m *ListLogsResponse) GetNextPageToken() string

func (*ListLogsResponse) ProtoMessage

func (*ListLogsResponse) ProtoMessage()

func (*ListLogsResponse) Reset

func (m *ListLogsResponse) Reset()

func (*ListLogsResponse) String

func (m *ListLogsResponse) String() string

func (*ListLogsResponse) XXX_DiscardUnknown

func (m *ListLogsResponse) XXX_DiscardUnknown()

func (*ListLogsResponse) XXX_Marshal

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

func (*ListLogsResponse) XXX_Merge

func (dst *ListLogsResponse) XXX_Merge(src proto.Message)

func (*ListLogsResponse) XXX_Size

func (m *ListLogsResponse) XXX_Size() int

func (*ListLogsResponse) XXX_Unmarshal

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

type ListMonitoredResourceDescriptorsRequest

type ListMonitoredResourceDescriptorsRequest struct {
	// 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,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The parameters to ListMonitoredResourceDescriptors

func (*ListMonitoredResourceDescriptorsRequest) Descriptor

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

func (*ListMonitoredResourceDescriptorsRequest) GetPageSize

func (*ListMonitoredResourceDescriptorsRequest) GetPageToken

func (*ListMonitoredResourceDescriptorsRequest) ProtoMessage

func (*ListMonitoredResourceDescriptorsRequest) Reset

func (*ListMonitoredResourceDescriptorsRequest) String

func (*ListMonitoredResourceDescriptorsRequest) XXX_DiscardUnknown

func (m *ListMonitoredResourceDescriptorsRequest) XXX_DiscardUnknown()

func (*ListMonitoredResourceDescriptorsRequest) XXX_Marshal

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

func (*ListMonitoredResourceDescriptorsRequest) XXX_Merge

func (*ListMonitoredResourceDescriptorsRequest) XXX_Size

func (*ListMonitoredResourceDescriptorsRequest) XXX_Unmarshal

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

type ListMonitoredResourceDescriptorsResponse

type ListMonitoredResourceDescriptorsResponse struct {
	// A list of resource descriptors.
	ResourceDescriptors []*monitoredres.MonitoredResourceDescriptor `protobuf:"bytes,1,rep,name=resource_descriptors,json=resourceDescriptors,proto3" json:"resource_descriptors,omitempty"`
	// If there might be more results than those appearing 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:"-"`
}

Result returned from ListMonitoredResourceDescriptors.

func (*ListMonitoredResourceDescriptorsResponse) Descriptor

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

func (*ListMonitoredResourceDescriptorsResponse) GetNextPageToken

func (m *ListMonitoredResourceDescriptorsResponse) GetNextPageToken() string

func (*ListMonitoredResourceDescriptorsResponse) GetResourceDescriptors

func (*ListMonitoredResourceDescriptorsResponse) ProtoMessage

func (*ListMonitoredResourceDescriptorsResponse) Reset

func (*ListMonitoredResourceDescriptorsResponse) String

func (*ListMonitoredResourceDescriptorsResponse) XXX_DiscardUnknown

func (m *ListMonitoredResourceDescriptorsResponse) XXX_DiscardUnknown()

func (*ListMonitoredResourceDescriptorsResponse) XXX_Marshal

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

func (*ListMonitoredResourceDescriptorsResponse) XXX_Merge

func (*ListMonitoredResourceDescriptorsResponse) XXX_Size

func (*ListMonitoredResourceDescriptorsResponse) XXX_Unmarshal

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

type ListSinksRequest

type ListSinksRequest struct {
	// Required. The parent resource whose sinks are to be listed:
	//
	//     "projects/[PROJECT_ID]"
	//     "organizations/[ORGANIZATION_ID]"
	//     "billingAccounts/[BILLING_ACCOUNT_ID]"
	//     "folders/[FOLDER_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:"-"`
}

The parameters to `ListSinks`.

func (*ListSinksRequest) Descriptor

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

func (*ListSinksRequest) GetPageSize

func (m *ListSinksRequest) GetPageSize() int32

func (*ListSinksRequest) GetPageToken

func (m *ListSinksRequest) GetPageToken() string

func (*ListSinksRequest) GetParent

func (m *ListSinksRequest) GetParent() string

func (*ListSinksRequest) ProtoMessage

func (*ListSinksRequest) ProtoMessage()

func (*ListSinksRequest) Reset

func (m *ListSinksRequest) Reset()

func (*ListSinksRequest) String

func (m *ListSinksRequest) String() string

func (*ListSinksRequest) XXX_DiscardUnknown

func (m *ListSinksRequest) XXX_DiscardUnknown()

func (*ListSinksRequest) XXX_Marshal

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

func (*ListSinksRequest) XXX_Merge

func (dst *ListSinksRequest) XXX_Merge(src proto.Message)

func (*ListSinksRequest) XXX_Size

func (m *ListSinksRequest) XXX_Size() int

func (*ListSinksRequest) XXX_Unmarshal

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

type ListSinksResponse

type ListSinksResponse struct {
	// A list of sinks.
	Sinks []*LogSink `protobuf:"bytes,1,rep,name=sinks,proto3" json:"sinks,omitempty"`
	// If there might be more results than appear in this response, then
	// `nextPageToken` is included.  To get the next set of results, call the same
	// 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:"-"`
}

Result returned from `ListSinks`.

func (*ListSinksResponse) Descriptor

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

func (*ListSinksResponse) GetNextPageToken

func (m *ListSinksResponse) GetNextPageToken() string

func (*ListSinksResponse) GetSinks

func (m *ListSinksResponse) GetSinks() []*LogSink

func (*ListSinksResponse) ProtoMessage

func (*ListSinksResponse) ProtoMessage()

func (*ListSinksResponse) Reset

func (m *ListSinksResponse) Reset()

func (*ListSinksResponse) String

func (m *ListSinksResponse) String() string

func (*ListSinksResponse) XXX_DiscardUnknown

func (m *ListSinksResponse) XXX_DiscardUnknown()

func (*ListSinksResponse) XXX_Marshal

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

func (*ListSinksResponse) XXX_Merge

func (dst *ListSinksResponse) XXX_Merge(src proto.Message)

func (*ListSinksResponse) XXX_Size

func (m *ListSinksResponse) XXX_Size() int

func (*ListSinksResponse) XXX_Unmarshal

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

type LogEntry

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 `` /* 154-byte string literal not displayed */
	// 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:"-"`
}

An individual entry in a log.

func (*LogEntry) Descriptor

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

func (*LogEntry) GetHttpRequest

func (m *LogEntry) GetHttpRequest() *_type.HttpRequest

func (*LogEntry) GetInsertId

func (m *LogEntry) GetInsertId() string

func (*LogEntry) GetJsonPayload

func (m *LogEntry) GetJsonPayload() *_struct.Struct

func (*LogEntry) GetLabels

func (m *LogEntry) GetLabels() map[string]string

func (*LogEntry) GetLogName

func (m *LogEntry) GetLogName() string

func (*LogEntry) GetMetadata

func (*LogEntry) GetOperation

func (m *LogEntry) GetOperation() *LogEntryOperation

func (*LogEntry) GetPayload

func (m *LogEntry) GetPayload() isLogEntry_Payload

func (*LogEntry) GetProtoPayload

func (m *LogEntry) GetProtoPayload() *any.Any

func (*LogEntry) GetReceiveTimestamp

func (m *LogEntry) GetReceiveTimestamp() *timestamp.Timestamp

func (*LogEntry) GetResource

func (m *LogEntry) GetResource() *monitoredres.MonitoredResource

func (*LogEntry) GetSeverity

func (m *LogEntry) GetSeverity() _type.LogSeverity

func (*LogEntry) GetSourceLocation

func (m *LogEntry) GetSourceLocation() *LogEntrySourceLocation

func (*LogEntry) GetSpanId

func (m *LogEntry) GetSpanId() string

func (*LogEntry) GetTextPayload

func (m *LogEntry) GetTextPayload() string

func (*LogEntry) GetTimestamp

func (m *LogEntry) GetTimestamp() *timestamp.Timestamp

func (*LogEntry) GetTrace

func (m *LogEntry) GetTrace() string

func (*LogEntry) ProtoMessage

func (*LogEntry) ProtoMessage()

func (*LogEntry) Reset

func (m *LogEntry) Reset()

func (*LogEntry) String

func (m *LogEntry) String() string

func (*LogEntry) XXX_DiscardUnknown

func (m *LogEntry) XXX_DiscardUnknown()

func (*LogEntry) XXX_Marshal

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

func (*LogEntry) XXX_Merge

func (dst *LogEntry) XXX_Merge(src proto.Message)

func (*LogEntry) XXX_OneofFuncs

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{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*LogEntry) XXX_Size

func (m *LogEntry) XXX_Size() int

func (*LogEntry) XXX_Unmarshal

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

type LogEntryOperation

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:"-"`
}

Additional information about a potentially long-running operation with which a log entry is associated.

func (*LogEntryOperation) Descriptor

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

func (*LogEntryOperation) GetFirst

func (m *LogEntryOperation) GetFirst() bool

func (*LogEntryOperation) GetId

func (m *LogEntryOperation) GetId() string

func (*LogEntryOperation) GetLast

func (m *LogEntryOperation) GetLast() bool

func (*LogEntryOperation) GetProducer

func (m *LogEntryOperation) GetProducer() string

func (*LogEntryOperation) ProtoMessage

func (*LogEntryOperation) ProtoMessage()

func (*LogEntryOperation) Reset

func (m *LogEntryOperation) Reset()

func (*LogEntryOperation) String

func (m *LogEntryOperation) String() string

func (*LogEntryOperation) XXX_DiscardUnknown

func (m *LogEntryOperation) XXX_DiscardUnknown()

func (*LogEntryOperation) XXX_Marshal

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

func (*LogEntryOperation) XXX_Merge

func (dst *LogEntryOperation) XXX_Merge(src proto.Message)

func (*LogEntryOperation) XXX_Size

func (m *LogEntryOperation) XXX_Size() int

func (*LogEntryOperation) XXX_Unmarshal

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

type LogEntrySourceLocation

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:"-"`
}

Additional information about the source code location that produced the log entry.

func (*LogEntrySourceLocation) Descriptor

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

func (*LogEntrySourceLocation) GetFile

func (m *LogEntrySourceLocation) GetFile() string

func (*LogEntrySourceLocation) GetFunction

func (m *LogEntrySourceLocation) GetFunction() string

func (*LogEntrySourceLocation) GetLine

func (m *LogEntrySourceLocation) GetLine() int64

func (*LogEntrySourceLocation) ProtoMessage

func (*LogEntrySourceLocation) ProtoMessage()

func (*LogEntrySourceLocation) Reset

func (m *LogEntrySourceLocation) Reset()

func (*LogEntrySourceLocation) String

func (m *LogEntrySourceLocation) String() string

func (*LogEntrySourceLocation) XXX_DiscardUnknown

func (m *LogEntrySourceLocation) XXX_DiscardUnknown()

func (*LogEntrySourceLocation) XXX_Marshal

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

func (*LogEntrySourceLocation) XXX_Merge

func (dst *LogEntrySourceLocation) XXX_Merge(src proto.Message)

func (*LogEntrySourceLocation) XXX_Size

func (m *LogEntrySourceLocation) XXX_Size() int

func (*LogEntrySourceLocation) XXX_Unmarshal

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

type LogEntry_JsonPayload

type LogEntry_JsonPayload struct {
	JsonPayload *_struct.Struct `protobuf:"bytes,6,opt,name=json_payload,json=jsonPayload,proto3,oneof"`
}

type LogEntry_ProtoPayload

type LogEntry_ProtoPayload struct {
	ProtoPayload *any.Any `protobuf:"bytes,2,opt,name=proto_payload,json=protoPayload,proto3,oneof"`
}

type LogEntry_TextPayload

type LogEntry_TextPayload struct {
	TextPayload string `protobuf:"bytes,3,opt,name=text_payload,json=textPayload,proto3,oneof"`
}

type LogExclusion

type LogExclusion struct {
	// Required. A client-assigned identifier, such as
	// `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
	// can include only letters, digits, underscores, hyphens, and periods.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional. A description of this exclusion.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// Required.
	// An [advanced logs filter](/logging/docs/view/advanced_filters)
	// that matches the log entries to be excluded. By using the
	// [sample function](/logging/docs/view/advanced_filters#sample),
	// you can exclude less than 100% of the matching log entries.
	// For example, the following filter matches 99% of low-severity log
	// entries from load balancers:
	//
	// `"resource.type=http_load_balancer severity<ERROR sample(insertId, 0.99)"`
	Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
	// Optional. If set to True, then this exclusion is disabled and it does not
	// exclude any log entries. You can use
	// [exclusions.patch](/logging/docs/reference/v2/rest/v2/projects.exclusions/patch)
	// to change the value of this field.
	Disabled             bool     `protobuf:"varint,4,opt,name=disabled,proto3" json:"disabled,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Specifies a set of log entries that are not to be stored in Stackdriver Logging. If your project receives a large volume of logs, you might be able to use exclusions to reduce your chargeable logs. Exclusions are processed after log sinks, so you can export log entries before they are excluded. Audit log entries and log entries from Amazon Web Services are never excluded.

func (*LogExclusion) Descriptor

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

func (*LogExclusion) GetDescription

func (m *LogExclusion) GetDescription() string

func (*LogExclusion) GetDisabled

func (m *LogExclusion) GetDisabled() bool

func (*LogExclusion) GetFilter

func (m *LogExclusion) GetFilter() string

func (*LogExclusion) GetName

func (m *LogExclusion) GetName() string

func (*LogExclusion) ProtoMessage

func (*LogExclusion) ProtoMessage()

func (*LogExclusion) Reset

func (m *LogExclusion) Reset()

func (*LogExclusion) String

func (m *LogExclusion) String() string

func (*LogExclusion) XXX_DiscardUnknown

func (m *LogExclusion) XXX_DiscardUnknown()

func (*LogExclusion) XXX_Marshal

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

func (*LogExclusion) XXX_Merge

func (dst *LogExclusion) XXX_Merge(src proto.Message)

func (*LogExclusion) XXX_Size

func (m *LogExclusion) XXX_Size() int

func (*LogExclusion) XXX_Unmarshal

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

type LogMetric

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 `` /* 194-byte string literal not displayed */
	// 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:"-"`
}

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.

func (*LogMetric) Descriptor

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

func (*LogMetric) GetBucketOptions

func (m *LogMetric) GetBucketOptions() *distribution.Distribution_BucketOptions

func (*LogMetric) GetDescription

func (m *LogMetric) GetDescription() string

func (*LogMetric) GetFilter

func (m *LogMetric) GetFilter() string

func (*LogMetric) GetLabelExtractors

func (m *LogMetric) GetLabelExtractors() map[string]string

func (*LogMetric) GetMetricDescriptor

func (m *LogMetric) GetMetricDescriptor() *metric.MetricDescriptor

func (*LogMetric) GetName

func (m *LogMetric) GetName() string

func (*LogMetric) GetValueExtractor

func (m *LogMetric) GetValueExtractor() string

func (*LogMetric) GetVersion deprecated

func (m *LogMetric) GetVersion() LogMetric_ApiVersion

Deprecated: Do not use.

func (*LogMetric) ProtoMessage

func (*LogMetric) ProtoMessage()

func (*LogMetric) Reset

func (m *LogMetric) Reset()

func (*LogMetric) String

func (m *LogMetric) String() string

func (*LogMetric) XXX_DiscardUnknown

func (m *LogMetric) XXX_DiscardUnknown()

func (*LogMetric) XXX_Marshal

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

func (*LogMetric) XXX_Merge

func (dst *LogMetric) XXX_Merge(src proto.Message)

func (*LogMetric) XXX_Size

func (m *LogMetric) XXX_Size() int

func (*LogMetric) XXX_Unmarshal

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

type LogMetric_ApiVersion

type LogMetric_ApiVersion int32

Stackdriver Logging API version.

const (
	// Stackdriver Logging API v2.
	LogMetric_V2 LogMetric_ApiVersion = 0
	// Stackdriver Logging API v1.
	LogMetric_V1 LogMetric_ApiVersion = 1
)

func (LogMetric_ApiVersion) EnumDescriptor

func (LogMetric_ApiVersion) EnumDescriptor() ([]byte, []int)

func (LogMetric_ApiVersion) String

func (x LogMetric_ApiVersion) String() string

type LogSink

type LogSink struct {
	// Required. The client-assigned sink identifier, unique within the
	// project. Example: `"my-syslog-errors-to-pubsub"`.  Sink identifiers are
	// limited to 100 characters and can include only the following characters:
	// upper and lower-case alphanumeric characters, underscores, hyphens, and
	// periods.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The export destination:
	//
	//     "storage.googleapis.com/[GCS_BUCKET]"
	//     "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
	//     "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
	//
	// The sink's `writer_identity`, set when the sink is created, must
	// have permission to write to the destination or else the log
	// entries are not exported.  For more information, see
	// [Exporting Logs With Sinks](/logging/docs/api/tasks/exporting-logs).
	Destination string `protobuf:"bytes,3,opt,name=destination,proto3" json:"destination,omitempty"`
	// Optional.
	// An [advanced logs filter](/logging/docs/view/advanced_filters).  The only
	// exported log entries are those that are in the resource owning the sink and
	// that match the filter.  For example:
	//
	//     logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
	Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"`
	// Deprecated. The log entry format to use for this sink's exported log
	// entries.  The v2 format is used by default and cannot be changed.
	OutputVersionFormat LogSink_VersionFormat `` // Deprecated: Do not use.
	/* 166-byte string literal not displayed */
	// Output only. An IAM identity&mdash;a service account or group&mdash;under
	// which Stackdriver Logging writes the exported log entries to the sink's
	// destination.  This field is set by
	// [sinks.create](/logging/docs/api/reference/rest/v2/projects.sinks/create)
	// and
	// [sinks.update](/logging/docs/api/reference/rest/v2/projects.sinks/update),
	// based on the setting of `unique_writer_identity` in those methods.
	//
	// Until you grant this identity write-access to the destination, log entry
	// exports from this sink will fail. For more information,
	// see [Granting access for a
	// resource](/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
	// Consult the destination service's documentation to determine the
	// appropriate IAM roles to assign to the identity.
	WriterIdentity string `protobuf:"bytes,8,opt,name=writer_identity,json=writerIdentity,proto3" json:"writer_identity,omitempty"`
	// Optional. This field applies only to sinks owned by organizations and
	// folders. If the field is false, the default, only the logs owned by the
	// sink's parent resource are available for export. If the field is true, then
	// logs from all the projects, folders, and billing accounts contained in the
	// sink's parent resource are also available for export. Whether a particular
	// log entry from the children is exported depends on the sink's filter
	// expression. For example, if this field is true, then the filter
	// `resource.type=gce_instance` would export all Compute Engine VM instance
	// log entries from all projects in the sink's parent. To only export entries
	// from certain child projects, filter on the project part of the log name:
	//
	//     logName:("projects/test-project1/" OR "projects/test-project2/") AND
	//     resource.type=gce_instance
	IncludeChildren bool `protobuf:"varint,9,opt,name=include_children,json=includeChildren,proto3" json:"include_children,omitempty"`
	// Deprecated. This field is ignored when creating or updating sinks.
	StartTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Deprecated: Do not use.
	// Deprecated. This field is ignored when creating or updating sinks.
	EndTime              *timestamp.Timestamp `protobuf:"bytes,11,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Deprecated: Do not use.
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Describes a sink used to export log entries to one of the following destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a Cloud Pub/Sub topic. A logs filter controls which log entries are exported. The sink must be created within a project, organization, billing account, or folder.

func (*LogSink) Descriptor

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

func (*LogSink) GetDestination

func (m *LogSink) GetDestination() string

func (*LogSink) GetEndTime deprecated

func (m *LogSink) GetEndTime() *timestamp.Timestamp

Deprecated: Do not use.

func (*LogSink) GetFilter

func (m *LogSink) GetFilter() string

func (*LogSink) GetIncludeChildren

func (m *LogSink) GetIncludeChildren() bool

func (*LogSink) GetName

func (m *LogSink) GetName() string

func (*LogSink) GetOutputVersionFormat deprecated

func (m *LogSink) GetOutputVersionFormat() LogSink_VersionFormat

Deprecated: Do not use.

func (*LogSink) GetStartTime deprecated

func (m *LogSink) GetStartTime() *timestamp.Timestamp

Deprecated: Do not use.

func (*LogSink) GetWriterIdentity

func (m *LogSink) GetWriterIdentity() string

func (*LogSink) ProtoMessage

func (*LogSink) ProtoMessage()

func (*LogSink) Reset

func (m *LogSink) Reset()

func (*LogSink) String

func (m *LogSink) String() string

func (*LogSink) XXX_DiscardUnknown

func (m *LogSink) XXX_DiscardUnknown()

func (*LogSink) XXX_Marshal

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

func (*LogSink) XXX_Merge

func (dst *LogSink) XXX_Merge(src proto.Message)

func (*LogSink) XXX_Size

func (m *LogSink) XXX_Size() int

func (*LogSink) XXX_Unmarshal

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

type LogSink_VersionFormat

type LogSink_VersionFormat int32

Available log entry formats. Log entries can be written to Stackdriver Logging in either format and can be exported in either format. Version 2 is the preferred format.

const (
	// An unspecified format version that will default to V2.
	LogSink_VERSION_FORMAT_UNSPECIFIED LogSink_VersionFormat = 0
	// `LogEntry` version 2 format.
	LogSink_V2 LogSink_VersionFormat = 1
	// `LogEntry` version 1 format.
	LogSink_V1 LogSink_VersionFormat = 2
)

func (LogSink_VersionFormat) EnumDescriptor

func (LogSink_VersionFormat) EnumDescriptor() ([]byte, []int)

func (LogSink_VersionFormat) String

func (x LogSink_VersionFormat) String() string

type LoggingServiceV2Client

type LoggingServiceV2Client interface {
	// Deletes all the log entries in a log.
	// The log reappears if it receives new entries.
	// Log entries written shortly before the delete operation might not be
	// deleted.
	DeleteLog(ctx context.Context, in *DeleteLogRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Writes log entries to Stackdriver Logging. This API method is the
	// only way to send log entries to Stackdriver Logging. This method
	// is used, directly or indirectly, by the Stackdriver Logging agent
	// (fluentd) and all logging libraries configured to use Stackdriver
	// Logging.
	// A single request may contain log entries for a maximum of 1000
	// different resources (projects, organizations, billing accounts or
	// folders)
	WriteLogEntries(ctx context.Context, in *WriteLogEntriesRequest, opts ...grpc.CallOption) (*WriteLogEntriesResponse, error)
	// Lists log entries.  Use this method to retrieve log entries from
	// Stackdriver Logging.  For ways to export log entries, see
	// [Exporting Logs](/logging/docs/export).
	ListLogEntries(ctx context.Context, in *ListLogEntriesRequest, opts ...grpc.CallOption) (*ListLogEntriesResponse, error)
	// Lists the descriptors for monitored resource types used by Stackdriver
	// Logging.
	ListMonitoredResourceDescriptors(ctx context.Context, in *ListMonitoredResourceDescriptorsRequest, opts ...grpc.CallOption) (*ListMonitoredResourceDescriptorsResponse, error)
	// Lists the logs in projects, organizations, folders, or billing accounts.
	// Only logs that have entries are listed.
	ListLogs(ctx context.Context, in *ListLogsRequest, opts ...grpc.CallOption) (*ListLogsResponse, error)
}

LoggingServiceV2Client is the client API for LoggingServiceV2 service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewLoggingServiceV2Client

func NewLoggingServiceV2Client(cc *grpc.ClientConn) LoggingServiceV2Client

type LoggingServiceV2Server

type LoggingServiceV2Server interface {
	// Deletes all the log entries in a log.
	// The log reappears if it receives new entries.
	// Log entries written shortly before the delete operation might not be
	// deleted.
	DeleteLog(context.Context, *DeleteLogRequest) (*empty.Empty, error)
	// Writes log entries to Stackdriver Logging. This API method is the
	// only way to send log entries to Stackdriver Logging. This method
	// is used, directly or indirectly, by the Stackdriver Logging agent
	// (fluentd) and all logging libraries configured to use Stackdriver
	// Logging.
	// A single request may contain log entries for a maximum of 1000
	// different resources (projects, organizations, billing accounts or
	// folders)
	WriteLogEntries(context.Context, *WriteLogEntriesRequest) (*WriteLogEntriesResponse, error)
	// Lists log entries.  Use this method to retrieve log entries from
	// Stackdriver Logging.  For ways to export log entries, see
	// [Exporting Logs](/logging/docs/export).
	ListLogEntries(context.Context, *ListLogEntriesRequest) (*ListLogEntriesResponse, error)
	// Lists the descriptors for monitored resource types used by Stackdriver
	// Logging.
	ListMonitoredResourceDescriptors(context.Context, *ListMonitoredResourceDescriptorsRequest) (*ListMonitoredResourceDescriptorsResponse, error)
	// Lists the logs in projects, organizations, folders, or billing accounts.
	// Only logs that have entries are listed.
	ListLogs(context.Context, *ListLogsRequest) (*ListLogsResponse, error)
}

LoggingServiceV2Server is the server API for LoggingServiceV2 service.

type MetricsServiceV2Client

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)
}

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.

func NewMetricsServiceV2Client

func NewMetricsServiceV2Client(cc *grpc.ClientConn) MetricsServiceV2Client

type MetricsServiceV2Server

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)
}

MetricsServiceV2Server is the server API for MetricsServiceV2 service.

type UpdateExclusionRequest

type UpdateExclusionRequest struct {
	// Required. The resource name of the exclusion to update:
	//
	//     "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
	//     "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
	//     "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
	//     "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
	//
	// Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. New values for the existing exclusion. Only the fields specified
	// in `update_mask` are relevant.
	Exclusion *LogExclusion `protobuf:"bytes,2,opt,name=exclusion,proto3" json:"exclusion,omitempty"`
	// Required. A nonempty list of fields to change in the existing exclusion.
	// New values for the fields are taken from the corresponding fields in the
	// [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not mentioned in
	// `update_mask` are not changed and are ignored in the request.
	//
	// For example, to change the filter and description of an exclusion,
	// specify an `update_mask` of `"filter,description"`.
	UpdateMask           *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

The parameters to `UpdateExclusion`.

func (*UpdateExclusionRequest) Descriptor

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

func (*UpdateExclusionRequest) GetExclusion

func (m *UpdateExclusionRequest) GetExclusion() *LogExclusion

func (*UpdateExclusionRequest) GetName

func (m *UpdateExclusionRequest) GetName() string

func (*UpdateExclusionRequest) GetUpdateMask

func (m *UpdateExclusionRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateExclusionRequest) ProtoMessage

func (*UpdateExclusionRequest) ProtoMessage()

func (*UpdateExclusionRequest) Reset

func (m *UpdateExclusionRequest) Reset()

func (*UpdateExclusionRequest) String

func (m *UpdateExclusionRequest) String() string

func (*UpdateExclusionRequest) XXX_DiscardUnknown

func (m *UpdateExclusionRequest) XXX_DiscardUnknown()

func (*UpdateExclusionRequest) XXX_Marshal

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

func (*UpdateExclusionRequest) XXX_Merge

func (dst *UpdateExclusionRequest) XXX_Merge(src proto.Message)

func (*UpdateExclusionRequest) XXX_Size

func (m *UpdateExclusionRequest) XXX_Size() int

func (*UpdateExclusionRequest) XXX_Unmarshal

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

type UpdateLogMetricRequest

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:"-"`
}

The parameters to UpdateLogMetric.

func (*UpdateLogMetricRequest) Descriptor

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

func (*UpdateLogMetricRequest) GetMetric

func (m *UpdateLogMetricRequest) GetMetric() *LogMetric

func (*UpdateLogMetricRequest) GetMetricName

func (m *UpdateLogMetricRequest) GetMetricName() string

func (*UpdateLogMetricRequest) ProtoMessage

func (*UpdateLogMetricRequest) ProtoMessage()

func (*UpdateLogMetricRequest) Reset

func (m *UpdateLogMetricRequest) Reset()

func (*UpdateLogMetricRequest) String

func (m *UpdateLogMetricRequest) String() string

func (*UpdateLogMetricRequest) XXX_DiscardUnknown

func (m *UpdateLogMetricRequest) XXX_DiscardUnknown()

func (*UpdateLogMetricRequest) XXX_Marshal

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

func (*UpdateLogMetricRequest) XXX_Merge

func (dst *UpdateLogMetricRequest) XXX_Merge(src proto.Message)

func (*UpdateLogMetricRequest) XXX_Size

func (m *UpdateLogMetricRequest) XXX_Size() int

func (*UpdateLogMetricRequest) XXX_Unmarshal

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

type UpdateSinkRequest

type UpdateSinkRequest struct {
	// Required. The full resource name of the sink to update, including the
	// parent resource and the sink identifier:
	//
	//     "projects/[PROJECT_ID]/sinks/[SINK_ID]"
	//     "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
	//     "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
	//     "folders/[FOLDER_ID]/sinks/[SINK_ID]"
	//
	// Example: `"projects/my-project-id/sinks/my-sink-id"`.
	SinkName string `protobuf:"bytes,1,opt,name=sink_name,json=sinkName,proto3" json:"sink_name,omitempty"`
	// Required. The updated sink, whose name is the same identifier that appears
	// as part of `sink_name`.
	Sink *LogSink `protobuf:"bytes,2,opt,name=sink,proto3" json:"sink,omitempty"`
	// Optional. See
	// [sinks.create](/logging/docs/api/reference/rest/v2/projects.sinks/create)
	// for a description of this field.  When updating a sink, the effect of this
	// field on the value of `writer_identity` in the updated sink depends on both
	// the old and new values of this field:
	//
	// +   If the old and new values of this field are both false or both true,
	//     then there is no change to the sink's `writer_identity`.
	// +   If the old value is false and the new value is true, then
	//     `writer_identity` is changed to a unique service account.
	// +   It is an error if the old value is true and the new value is
	//     set to false or defaulted to false.
	UniqueWriterIdentity bool `protobuf:"varint,3,opt,name=unique_writer_identity,json=uniqueWriterIdentity,proto3" json:"unique_writer_identity,omitempty"`
	// Optional. Field mask that specifies the fields in `sink` that need
	// an update. A sink field will be overwritten if, and only if, it is
	// in the update mask.  `name` and output only fields cannot be updated.
	//
	// An empty updateMask is temporarily treated as using the following mask
	// for backwards compatibility purposes:
	//   destination,filter,includeChildren
	// At some point in the future, behavior will be removed and specifying an
	// empty updateMask will be an error.
	//
	// For a detailed `FieldMask` definition, see
	// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
	//
	// Example: `updateMask=filter`.
	UpdateMask           *field_mask.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

The parameters to `UpdateSink`.

func (*UpdateSinkRequest) Descriptor

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

func (*UpdateSinkRequest) GetSink

func (m *UpdateSinkRequest) GetSink() *LogSink

func (*UpdateSinkRequest) GetSinkName

func (m *UpdateSinkRequest) GetSinkName() string

func (*UpdateSinkRequest) GetUniqueWriterIdentity

func (m *UpdateSinkRequest) GetUniqueWriterIdentity() bool

func (*UpdateSinkRequest) GetUpdateMask

func (m *UpdateSinkRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateSinkRequest) ProtoMessage

func (*UpdateSinkRequest) ProtoMessage()

func (*UpdateSinkRequest) Reset

func (m *UpdateSinkRequest) Reset()

func (*UpdateSinkRequest) String

func (m *UpdateSinkRequest) String() string

func (*UpdateSinkRequest) XXX_DiscardUnknown

func (m *UpdateSinkRequest) XXX_DiscardUnknown()

func (*UpdateSinkRequest) XXX_Marshal

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

func (*UpdateSinkRequest) XXX_Merge

func (dst *UpdateSinkRequest) XXX_Merge(src proto.Message)

func (*UpdateSinkRequest) XXX_Size

func (m *UpdateSinkRequest) XXX_Size() int

func (*UpdateSinkRequest) XXX_Unmarshal

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

type WriteLogEntriesPartialErrors

type WriteLogEntriesPartialErrors struct {
	// When `WriteLogEntriesRequest.partial_success` is true, records the error
	// status for entries that were not written due to a permanent error, keyed
	// by the entry's zero-based index in `WriteLogEntriesRequest.entries`.
	//
	// Failed requests for which no entries are written will not include
	// per-entry errors.
	LogEntryErrors       map[int32]*status.Status `` /* 194-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
	XXX_unrecognized     []byte                   `json:"-"`
	XXX_sizecache        int32                    `json:"-"`
}

Error details for WriteLogEntries with partial success.

func (*WriteLogEntriesPartialErrors) Descriptor

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

func (*WriteLogEntriesPartialErrors) GetLogEntryErrors

func (m *WriteLogEntriesPartialErrors) GetLogEntryErrors() map[int32]*status.Status

func (*WriteLogEntriesPartialErrors) ProtoMessage

func (*WriteLogEntriesPartialErrors) ProtoMessage()

func (*WriteLogEntriesPartialErrors) Reset

func (m *WriteLogEntriesPartialErrors) Reset()

func (*WriteLogEntriesPartialErrors) String

func (*WriteLogEntriesPartialErrors) XXX_DiscardUnknown

func (m *WriteLogEntriesPartialErrors) XXX_DiscardUnknown()

func (*WriteLogEntriesPartialErrors) XXX_Marshal

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

func (*WriteLogEntriesPartialErrors) XXX_Merge

func (dst *WriteLogEntriesPartialErrors) XXX_Merge(src proto.Message)

func (*WriteLogEntriesPartialErrors) XXX_Size

func (m *WriteLogEntriesPartialErrors) XXX_Size() int

func (*WriteLogEntriesPartialErrors) XXX_Unmarshal

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

type WriteLogEntriesRequest

type WriteLogEntriesRequest struct {
	// Optional. A default log resource name that is assigned to all log entries
	// in `entries` that do not specify a value for `log_name`:
	//
	//     "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]"
	//
	// `[LOG_ID]` must be URL-encoded. For example,
	// `"projects/my-project-id/logs/syslog"` or
	// `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
	// For more information about log names, see
	// [LogEntry][google.logging.v2.LogEntry].
	LogName string `protobuf:"bytes,1,opt,name=log_name,json=logName,proto3" json:"log_name,omitempty"`
	// Optional. A default monitored resource object that is assigned to all log
	// entries in `entries` that do not specify a value for `resource`. Example:
	//
	//     { "type": "gce_instance",
	//       "labels": {
	//         "zone": "us-central1-a", "instance_id": "00000000000000000000" }}
	//
	// See [LogEntry][google.logging.v2.LogEntry].
	Resource *monitoredres.MonitoredResource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
	// Optional. Default labels that are added to the `labels` field of all log
	// entries in `entries`. If a log entry already has a label with the same key
	// as a label in this parameter, then the log entry's label is not changed.
	// See [LogEntry][google.logging.v2.LogEntry].
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Required. The log entries to send to Stackdriver Logging. The order of log
	// entries in this list does not matter. Values supplied in this method's
	// `log_name`, `resource`, and `labels` fields are copied into those log
	// entries in this list that do not include values for their corresponding
	// fields. For more information, see the
	// [LogEntry][google.logging.v2.LogEntry] type.
	//
	// If the `timestamp` or `insert_id` fields are missing in log entries, then
	// this method supplies the current time or a unique identifier, respectively.
	// The supplied values are chosen so that, among the log entries that did not
	// supply their own values, the entries earlier in the list will sort before
	// the entries later in the list. See the `entries.list` method.
	//
	// Log entries with timestamps that are more than the
	// [logs retention period](/logging/quota-policy) in the past or more than
	// 24 hours in the future will not be available when calling `entries.list`.
	// However, those log entries can still be exported with
	// [LogSinks](/logging/docs/api/tasks/exporting-logs).
	//
	// To improve throughput and to avoid exceeding the
	// [quota limit](/logging/quota-policy) for calls to `entries.write`,
	// you should try to include several log entries in this list,
	// rather than calling this method for each individual log entry.
	Entries []*LogEntry `protobuf:"bytes,4,rep,name=entries,proto3" json:"entries,omitempty"`
	// Optional. Whether valid entries should be written even if some other
	// entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any
	// entry is not written, then the response status is the error associated
	// with one of the failed entries and the response includes error details
	// keyed by the entries' zero-based index in the `entries.write` method.
	PartialSuccess bool `protobuf:"varint,5,opt,name=partial_success,json=partialSuccess,proto3" json:"partial_success,omitempty"`
	// Optional. If true, the request should expect normal response, but the
	// entries won't be persisted nor exported. Useful for checking whether the
	// logging API endpoints are working properly before sending valuable data.
	DryRun               bool     `protobuf:"varint,6,opt,name=dry_run,json=dryRun,proto3" json:"dry_run,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The parameters to WriteLogEntries.

func (*WriteLogEntriesRequest) Descriptor

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

func (*WriteLogEntriesRequest) GetDryRun

func (m *WriteLogEntriesRequest) GetDryRun() bool

func (*WriteLogEntriesRequest) GetEntries

func (m *WriteLogEntriesRequest) GetEntries() []*LogEntry

func (*WriteLogEntriesRequest) GetLabels

func (m *WriteLogEntriesRequest) GetLabels() map[string]string

func (*WriteLogEntriesRequest) GetLogName

func (m *WriteLogEntriesRequest) GetLogName() string

func (*WriteLogEntriesRequest) GetPartialSuccess

func (m *WriteLogEntriesRequest) GetPartialSuccess() bool

func (*WriteLogEntriesRequest) GetResource

func (*WriteLogEntriesRequest) ProtoMessage

func (*WriteLogEntriesRequest) ProtoMessage()

func (*WriteLogEntriesRequest) Reset

func (m *WriteLogEntriesRequest) Reset()

func (*WriteLogEntriesRequest) String

func (m *WriteLogEntriesRequest) String() string

func (*WriteLogEntriesRequest) XXX_DiscardUnknown

func (m *WriteLogEntriesRequest) XXX_DiscardUnknown()

func (*WriteLogEntriesRequest) XXX_Marshal

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

func (*WriteLogEntriesRequest) XXX_Merge

func (dst *WriteLogEntriesRequest) XXX_Merge(src proto.Message)

func (*WriteLogEntriesRequest) XXX_Size

func (m *WriteLogEntriesRequest) XXX_Size() int

func (*WriteLogEntriesRequest) XXX_Unmarshal

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

type WriteLogEntriesResponse

type WriteLogEntriesResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Result returned from WriteLogEntries. empty

func (*WriteLogEntriesResponse) Descriptor

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

func (*WriteLogEntriesResponse) ProtoMessage

func (*WriteLogEntriesResponse) ProtoMessage()

func (*WriteLogEntriesResponse) Reset

func (m *WriteLogEntriesResponse) Reset()

func (*WriteLogEntriesResponse) String

func (m *WriteLogEntriesResponse) String() string

func (*WriteLogEntriesResponse) XXX_DiscardUnknown

func (m *WriteLogEntriesResponse) XXX_DiscardUnknown()

func (*WriteLogEntriesResponse) XXX_Marshal

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

func (*WriteLogEntriesResponse) XXX_Merge

func (dst *WriteLogEntriesResponse) XXX_Merge(src proto.Message)

func (*WriteLogEntriesResponse) XXX_Size

func (m *WriteLogEntriesResponse) XXX_Size() int

func (*WriteLogEntriesResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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