api: google.golang.org/api/logging/v2 Index | Files

package logging

import "google.golang.org/api/logging/v2"

Package logging provides access to the Stackdriver Logging API.

This package is DEPRECATED. Use package cloud.google.com/go/logging instead.

For product documentation, see: https://cloud.google.com/logging/docs/

Creating a client

Usage example:

import "google.golang.org/api/logging/v2"
...
ctx := context.Background()
loggingService, err := logging.NewService(ctx)

In this example, Google Application Default Credentials are used for authentication.

For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.

Other authentication options

By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes:

loggingService, err := logging.NewService(ctx, option.WithScopes(logging.LoggingWriteScope))

To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:

loggingService, err := logging.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:

config := &oauth2.Config{...}
// ...
token, err := config.Exchange(ctx, ...)
loggingService, err := logging.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

See https://godoc.org/google.golang.org/api/option/ for details on options.

Index

Package Files

logging-gen.go

Constants

const (
    // View and manage your data across Google Cloud Platform services
    CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"

    // View your data across Google Cloud Platform services
    CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/cloud-platform.read-only"

    // Administrate log data for your projects
    LoggingAdminScope = "https://www.googleapis.com/auth/logging.admin"

    // View log data for your projects
    LoggingReadScope = "https://www.googleapis.com/auth/logging.read"

    // Submit log data for your projects
    LoggingWriteScope = "https://www.googleapis.com/auth/logging.write"
)

OAuth2 scopes used by this API.

type BillingAccountsExclusionsCreateCall Uses

type BillingAccountsExclusionsCreateCall struct {
    // contains filtered or unexported fields
}

func (*BillingAccountsExclusionsCreateCall) Context Uses

func (c *BillingAccountsExclusionsCreateCall) Context(ctx context.Context) *BillingAccountsExclusionsCreateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BillingAccountsExclusionsCreateCall) Do Uses

func (c *BillingAccountsExclusionsCreateCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error)

Do executes the "logging.billingAccounts.exclusions.create" call. Exactly one of *LogExclusion or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogExclusion.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BillingAccountsExclusionsCreateCall) Fields Uses

func (c *BillingAccountsExclusionsCreateCall) Fields(s ...googleapi.Field) *BillingAccountsExclusionsCreateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BillingAccountsExclusionsCreateCall) Header Uses

func (c *BillingAccountsExclusionsCreateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type BillingAccountsExclusionsDeleteCall Uses

type BillingAccountsExclusionsDeleteCall struct {
    // contains filtered or unexported fields
}

func (*BillingAccountsExclusionsDeleteCall) Context Uses

func (c *BillingAccountsExclusionsDeleteCall) Context(ctx context.Context) *BillingAccountsExclusionsDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BillingAccountsExclusionsDeleteCall) Do Uses

func (c *BillingAccountsExclusionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)

Do executes the "logging.billingAccounts.exclusions.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BillingAccountsExclusionsDeleteCall) Fields Uses

func (c *BillingAccountsExclusionsDeleteCall) Fields(s ...googleapi.Field) *BillingAccountsExclusionsDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BillingAccountsExclusionsDeleteCall) Header Uses

func (c *BillingAccountsExclusionsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type BillingAccountsExclusionsGetCall Uses

type BillingAccountsExclusionsGetCall struct {
    // contains filtered or unexported fields
}

func (*BillingAccountsExclusionsGetCall) Context Uses

func (c *BillingAccountsExclusionsGetCall) Context(ctx context.Context) *BillingAccountsExclusionsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BillingAccountsExclusionsGetCall) Do Uses

func (c *BillingAccountsExclusionsGetCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error)

Do executes the "logging.billingAccounts.exclusions.get" call. Exactly one of *LogExclusion or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogExclusion.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BillingAccountsExclusionsGetCall) Fields Uses

func (c *BillingAccountsExclusionsGetCall) Fields(s ...googleapi.Field) *BillingAccountsExclusionsGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BillingAccountsExclusionsGetCall) Header Uses

func (c *BillingAccountsExclusionsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BillingAccountsExclusionsGetCall) IfNoneMatch Uses

func (c *BillingAccountsExclusionsGetCall) IfNoneMatch(entityTag string) *BillingAccountsExclusionsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type BillingAccountsExclusionsListCall Uses

type BillingAccountsExclusionsListCall struct {
    // contains filtered or unexported fields
}

func (*BillingAccountsExclusionsListCall) Context Uses

func (c *BillingAccountsExclusionsListCall) Context(ctx context.Context) *BillingAccountsExclusionsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BillingAccountsExclusionsListCall) Do Uses

func (c *BillingAccountsExclusionsListCall) Do(opts ...googleapi.CallOption) (*ListExclusionsResponse, error)

Do executes the "logging.billingAccounts.exclusions.list" call. Exactly one of *ListExclusionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListExclusionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BillingAccountsExclusionsListCall) Fields Uses

func (c *BillingAccountsExclusionsListCall) Fields(s ...googleapi.Field) *BillingAccountsExclusionsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BillingAccountsExclusionsListCall) Header Uses

func (c *BillingAccountsExclusionsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BillingAccountsExclusionsListCall) IfNoneMatch Uses

func (c *BillingAccountsExclusionsListCall) IfNoneMatch(entityTag string) *BillingAccountsExclusionsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*BillingAccountsExclusionsListCall) PageSize Uses

func (c *BillingAccountsExclusionsListCall) PageSize(pageSize int64) *BillingAccountsExclusionsListCall

PageSize sets the optional parameter "pageSize": 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.

func (*BillingAccountsExclusionsListCall) PageToken Uses

func (c *BillingAccountsExclusionsListCall) PageToken(pageToken string) *BillingAccountsExclusionsListCall

PageToken sets the optional parameter "pageToken": 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.

func (*BillingAccountsExclusionsListCall) Pages Uses

func (c *BillingAccountsExclusionsListCall) Pages(ctx context.Context, f func(*ListExclusionsResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type BillingAccountsExclusionsPatchCall Uses

type BillingAccountsExclusionsPatchCall struct {
    // contains filtered or unexported fields
}

func (*BillingAccountsExclusionsPatchCall) Context Uses

func (c *BillingAccountsExclusionsPatchCall) Context(ctx context.Context) *BillingAccountsExclusionsPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BillingAccountsExclusionsPatchCall) Do Uses

func (c *BillingAccountsExclusionsPatchCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error)

Do executes the "logging.billingAccounts.exclusions.patch" call. Exactly one of *LogExclusion or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogExclusion.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BillingAccountsExclusionsPatchCall) Fields Uses

func (c *BillingAccountsExclusionsPatchCall) Fields(s ...googleapi.Field) *BillingAccountsExclusionsPatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BillingAccountsExclusionsPatchCall) Header Uses

func (c *BillingAccountsExclusionsPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BillingAccountsExclusionsPatchCall) UpdateMask Uses

func (c *BillingAccountsExclusionsPatchCall) UpdateMask(updateMask string) *BillingAccountsExclusionsPatchCall

UpdateMask sets the optional parameter "updateMask": Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the 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".

type BillingAccountsExclusionsService Uses

type BillingAccountsExclusionsService struct {
    // contains filtered or unexported fields
}

func NewBillingAccountsExclusionsService Uses

func NewBillingAccountsExclusionsService(s *Service) *BillingAccountsExclusionsService

func (*BillingAccountsExclusionsService) Create Uses

func (r *BillingAccountsExclusionsService) Create(parent string, logexclusion *LogExclusion) *BillingAccountsExclusionsCreateCall

Create: 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.

func (*BillingAccountsExclusionsService) Delete Uses

func (r *BillingAccountsExclusionsService) Delete(name string) *BillingAccountsExclusionsDeleteCall

Delete: Deletes an exclusion.

func (*BillingAccountsExclusionsService) Get Uses

func (r *BillingAccountsExclusionsService) Get(name string) *BillingAccountsExclusionsGetCall

Get: Gets the description of an exclusion.

func (*BillingAccountsExclusionsService) List Uses

func (r *BillingAccountsExclusionsService) List(parent string) *BillingAccountsExclusionsListCall

List: Lists all the exclusions in a parent resource.

func (*BillingAccountsExclusionsService) Patch Uses

func (r *BillingAccountsExclusionsService) Patch(name string, logexclusion *LogExclusion) *BillingAccountsExclusionsPatchCall

Patch: Changes one or more properties of an existing exclusion.

type BillingAccountsLogsDeleteCall Uses

type BillingAccountsLogsDeleteCall struct {
    // contains filtered or unexported fields
}

func (*BillingAccountsLogsDeleteCall) Context Uses

func (c *BillingAccountsLogsDeleteCall) Context(ctx context.Context) *BillingAccountsLogsDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BillingAccountsLogsDeleteCall) Do Uses

func (c *BillingAccountsLogsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)

Do executes the "logging.billingAccounts.logs.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BillingAccountsLogsDeleteCall) Fields Uses

func (c *BillingAccountsLogsDeleteCall) Fields(s ...googleapi.Field) *BillingAccountsLogsDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BillingAccountsLogsDeleteCall) Header Uses

func (c *BillingAccountsLogsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type BillingAccountsLogsListCall Uses

type BillingAccountsLogsListCall struct {
    // contains filtered or unexported fields
}

func (*BillingAccountsLogsListCall) Context Uses

func (c *BillingAccountsLogsListCall) Context(ctx context.Context) *BillingAccountsLogsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BillingAccountsLogsListCall) Do Uses

func (c *BillingAccountsLogsListCall) Do(opts ...googleapi.CallOption) (*ListLogsResponse, error)

Do executes the "logging.billingAccounts.logs.list" call. Exactly one of *ListLogsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListLogsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BillingAccountsLogsListCall) Fields Uses

func (c *BillingAccountsLogsListCall) Fields(s ...googleapi.Field) *BillingAccountsLogsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BillingAccountsLogsListCall) Header Uses

func (c *BillingAccountsLogsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BillingAccountsLogsListCall) IfNoneMatch Uses

func (c *BillingAccountsLogsListCall) IfNoneMatch(entityTag string) *BillingAccountsLogsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*BillingAccountsLogsListCall) PageSize Uses

func (c *BillingAccountsLogsListCall) PageSize(pageSize int64) *BillingAccountsLogsListCall

PageSize sets the optional parameter "pageSize": 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.

func (*BillingAccountsLogsListCall) PageToken Uses

func (c *BillingAccountsLogsListCall) PageToken(pageToken string) *BillingAccountsLogsListCall

PageToken sets the optional parameter "pageToken": 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.

func (*BillingAccountsLogsListCall) Pages Uses

func (c *BillingAccountsLogsListCall) Pages(ctx context.Context, f func(*ListLogsResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

func (*BillingAccountsLogsListCall) ResourceNames Uses

func (c *BillingAccountsLogsListCall) ResourceNames(resourceNames ...string) *BillingAccountsLogsListCall

ResourceNames sets the optional parameter "resourceNames": Required for Logging Data Model V2. The resource name that owns the logs: "projects/PROJECT_ID" "organizations/ORGANIZATION_ID" "billingAccounts/BILLING_ACCOUNT_ID" "folders/FOLDER_ID"

type BillingAccountsLogsService Uses

type BillingAccountsLogsService struct {
    // contains filtered or unexported fields
}

func NewBillingAccountsLogsService Uses

func NewBillingAccountsLogsService(s *Service) *BillingAccountsLogsService

func (*BillingAccountsLogsService) Delete Uses

func (r *BillingAccountsLogsService) Delete(logName string) *BillingAccountsLogsDeleteCall

Delete: 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.

func (*BillingAccountsLogsService) List Uses

func (r *BillingAccountsLogsService) List(parent string) *BillingAccountsLogsListCall

List: Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.

type BillingAccountsService Uses

type BillingAccountsService struct {
    Exclusions *BillingAccountsExclusionsService

    Logs *BillingAccountsLogsService

    Sinks *BillingAccountsSinksService
    // contains filtered or unexported fields
}

func NewBillingAccountsService Uses

func NewBillingAccountsService(s *Service) *BillingAccountsService

type BillingAccountsSinksCreateCall Uses

type BillingAccountsSinksCreateCall struct {
    // contains filtered or unexported fields
}

func (*BillingAccountsSinksCreateCall) Context Uses

func (c *BillingAccountsSinksCreateCall) Context(ctx context.Context) *BillingAccountsSinksCreateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BillingAccountsSinksCreateCall) Do Uses

func (c *BillingAccountsSinksCreateCall) Do(opts ...googleapi.CallOption) (*LogSink, error)

Do executes the "logging.billingAccounts.sinks.create" call. Exactly one of *LogSink or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogSink.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BillingAccountsSinksCreateCall) Fields Uses

func (c *BillingAccountsSinksCreateCall) Fields(s ...googleapi.Field) *BillingAccountsSinksCreateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BillingAccountsSinksCreateCall) Header Uses

func (c *BillingAccountsSinksCreateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BillingAccountsSinksCreateCall) UniqueWriterIdentity Uses

func (c *BillingAccountsSinksCreateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *BillingAccountsSinksCreateCall

UniqueWriterIdentity sets the optional parameter "uniqueWriterIdentity": 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 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.

type BillingAccountsSinksDeleteCall Uses

type BillingAccountsSinksDeleteCall struct {
    // contains filtered or unexported fields
}

func (*BillingAccountsSinksDeleteCall) Context Uses

func (c *BillingAccountsSinksDeleteCall) Context(ctx context.Context) *BillingAccountsSinksDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BillingAccountsSinksDeleteCall) Do Uses

func (c *BillingAccountsSinksDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)

Do executes the "logging.billingAccounts.sinks.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BillingAccountsSinksDeleteCall) Fields Uses

func (c *BillingAccountsSinksDeleteCall) Fields(s ...googleapi.Field) *BillingAccountsSinksDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BillingAccountsSinksDeleteCall) Header Uses

func (c *BillingAccountsSinksDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type BillingAccountsSinksGetCall Uses

type BillingAccountsSinksGetCall struct {
    // contains filtered or unexported fields
}

func (*BillingAccountsSinksGetCall) Context Uses

func (c *BillingAccountsSinksGetCall) Context(ctx context.Context) *BillingAccountsSinksGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BillingAccountsSinksGetCall) Do Uses

func (c *BillingAccountsSinksGetCall) Do(opts ...googleapi.CallOption) (*LogSink, error)

Do executes the "logging.billingAccounts.sinks.get" call. Exactly one of *LogSink or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogSink.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BillingAccountsSinksGetCall) Fields Uses

func (c *BillingAccountsSinksGetCall) Fields(s ...googleapi.Field) *BillingAccountsSinksGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BillingAccountsSinksGetCall) Header Uses

func (c *BillingAccountsSinksGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BillingAccountsSinksGetCall) IfNoneMatch Uses

func (c *BillingAccountsSinksGetCall) IfNoneMatch(entityTag string) *BillingAccountsSinksGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type BillingAccountsSinksListCall Uses

type BillingAccountsSinksListCall struct {
    // contains filtered or unexported fields
}

func (*BillingAccountsSinksListCall) Context Uses

func (c *BillingAccountsSinksListCall) Context(ctx context.Context) *BillingAccountsSinksListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BillingAccountsSinksListCall) Do Uses

func (c *BillingAccountsSinksListCall) Do(opts ...googleapi.CallOption) (*ListSinksResponse, error)

Do executes the "logging.billingAccounts.sinks.list" call. Exactly one of *ListSinksResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListSinksResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BillingAccountsSinksListCall) Fields Uses

func (c *BillingAccountsSinksListCall) Fields(s ...googleapi.Field) *BillingAccountsSinksListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BillingAccountsSinksListCall) Header Uses

func (c *BillingAccountsSinksListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BillingAccountsSinksListCall) IfNoneMatch Uses

func (c *BillingAccountsSinksListCall) IfNoneMatch(entityTag string) *BillingAccountsSinksListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*BillingAccountsSinksListCall) PageSize Uses

func (c *BillingAccountsSinksListCall) PageSize(pageSize int64) *BillingAccountsSinksListCall

PageSize sets the optional parameter "pageSize": 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.

func (*BillingAccountsSinksListCall) PageToken Uses

func (c *BillingAccountsSinksListCall) PageToken(pageToken string) *BillingAccountsSinksListCall

PageToken sets the optional parameter "pageToken": 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.

func (*BillingAccountsSinksListCall) Pages Uses

func (c *BillingAccountsSinksListCall) Pages(ctx context.Context, f func(*ListSinksResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type BillingAccountsSinksPatchCall Uses

type BillingAccountsSinksPatchCall struct {
    // contains filtered or unexported fields
}

func (*BillingAccountsSinksPatchCall) Context Uses

func (c *BillingAccountsSinksPatchCall) Context(ctx context.Context) *BillingAccountsSinksPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BillingAccountsSinksPatchCall) Do Uses

func (c *BillingAccountsSinksPatchCall) Do(opts ...googleapi.CallOption) (*LogSink, error)

Do executes the "logging.billingAccounts.sinks.patch" call. Exactly one of *LogSink or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogSink.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BillingAccountsSinksPatchCall) Fields Uses

func (c *BillingAccountsSinksPatchCall) Fields(s ...googleapi.Field) *BillingAccountsSinksPatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BillingAccountsSinksPatchCall) Header Uses

func (c *BillingAccountsSinksPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BillingAccountsSinksPatchCall) UniqueWriterIdentity Uses

func (c *BillingAccountsSinksPatchCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *BillingAccountsSinksPatchCall

UniqueWriterIdentity sets the optional parameter "uniqueWriterIdentity": See 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.

func (*BillingAccountsSinksPatchCall) UpdateMask Uses

func (c *BillingAccountsSinksPatchCall) UpdateMask(updateMask string) *BillingAccountsSinksPatchCall

UpdateMask sets the optional parameter "updateMask": 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#google.protobuf.FieldMaskExample: updateMask=filter.

type BillingAccountsSinksService Uses

type BillingAccountsSinksService struct {
    // contains filtered or unexported fields
}

func NewBillingAccountsSinksService Uses

func NewBillingAccountsSinksService(s *Service) *BillingAccountsSinksService

func (*BillingAccountsSinksService) Create Uses

func (r *BillingAccountsSinksService) Create(parent string, logsink *LogSink) *BillingAccountsSinksCreateCall

Create: 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.

func (*BillingAccountsSinksService) Delete Uses

func (r *BillingAccountsSinksService) Delete(sinkNameid string) *BillingAccountsSinksDeleteCall

Delete: Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.

func (*BillingAccountsSinksService) Get Uses

func (r *BillingAccountsSinksService) Get(sinkName string) *BillingAccountsSinksGetCall

Get: Gets a sink.

func (*BillingAccountsSinksService) List Uses

func (r *BillingAccountsSinksService) List(parent string) *BillingAccountsSinksListCall

List: Lists sinks.

func (*BillingAccountsSinksService) Patch Uses

func (r *BillingAccountsSinksService) Patch(sinkNameid string, logsink *LogSink) *BillingAccountsSinksPatchCall

Patch: 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.

func (*BillingAccountsSinksService) Update Uses

func (r *BillingAccountsSinksService) Update(sinkNameid string, logsink *LogSink) *BillingAccountsSinksUpdateCall

Update: 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.

type BillingAccountsSinksUpdateCall Uses

type BillingAccountsSinksUpdateCall struct {
    // contains filtered or unexported fields
}

func (*BillingAccountsSinksUpdateCall) Context Uses

func (c *BillingAccountsSinksUpdateCall) Context(ctx context.Context) *BillingAccountsSinksUpdateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BillingAccountsSinksUpdateCall) Do Uses

func (c *BillingAccountsSinksUpdateCall) Do(opts ...googleapi.CallOption) (*LogSink, error)

Do executes the "logging.billingAccounts.sinks.update" call. Exactly one of *LogSink or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogSink.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BillingAccountsSinksUpdateCall) Fields Uses

func (c *BillingAccountsSinksUpdateCall) Fields(s ...googleapi.Field) *BillingAccountsSinksUpdateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BillingAccountsSinksUpdateCall) Header Uses

func (c *BillingAccountsSinksUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BillingAccountsSinksUpdateCall) UniqueWriterIdentity Uses

func (c *BillingAccountsSinksUpdateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *BillingAccountsSinksUpdateCall

UniqueWriterIdentity sets the optional parameter "uniqueWriterIdentity": See 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.

func (*BillingAccountsSinksUpdateCall) UpdateMask Uses

func (c *BillingAccountsSinksUpdateCall) UpdateMask(updateMask string) *BillingAccountsSinksUpdateCall

UpdateMask sets the optional parameter "updateMask": 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#google.protobuf.FieldMaskExample: updateMask=filter.

type BucketOptions Uses

type BucketOptions struct {
    // ExplicitBuckets: The explicit buckets.
    ExplicitBuckets *Explicit `json:"explicitBuckets,omitempty"`

    // ExponentialBuckets: The exponential buckets.
    ExponentialBuckets *Exponential `json:"exponentialBuckets,omitempty"`

    // LinearBuckets: The linear bucket.
    LinearBuckets *Linear `json:"linearBuckets,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ExplicitBuckets") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ExplicitBuckets") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

BucketOptions: BucketOptions describes the bucket boundaries used to create a histogram for the distribution. The buckets can be in a linear sequence, an exponential sequence, or each bucket can be specified explicitly. BucketOptions does not include the number of values in each bucket.A bucket has an inclusive lower bound and exclusive upper bound for the values that are counted for that bucket. The upper bound of a bucket must be strictly greater than the lower bound. The sequence of N buckets for a distribution consists of an underflow bucket (number 0), zero or more finite buckets (number 1 through N - 2) and an overflow bucket (number N - 1). The buckets are contiguous: the lower bound of bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets span the whole range of finite values: lower bound of the underflow bucket is -infinity and the upper bound of the overflow bucket is +infinity. The finite buckets are so-called because both bounds are finite.

func (*BucketOptions) MarshalJSON Uses

func (s *BucketOptions) MarshalJSON() ([]byte, error)

type Empty Uses

type Empty struct {
    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`
}

Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo {

rpc Bar(google.protobuf.Empty) returns

(google.protobuf.Empty); } The JSON representation for Empty is empty JSON object {}.

type EntriesListCall Uses

type EntriesListCall struct {
    // contains filtered or unexported fields
}

func (*EntriesListCall) Context Uses

func (c *EntriesListCall) Context(ctx context.Context) *EntriesListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*EntriesListCall) Do Uses

func (c *EntriesListCall) Do(opts ...googleapi.CallOption) (*ListLogEntriesResponse, error)

Do executes the "logging.entries.list" call. Exactly one of *ListLogEntriesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListLogEntriesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*EntriesListCall) Fields Uses

func (c *EntriesListCall) Fields(s ...googleapi.Field) *EntriesListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*EntriesListCall) Header Uses

func (c *EntriesListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*EntriesListCall) Pages Uses

func (c *EntriesListCall) Pages(ctx context.Context, f func(*ListLogEntriesResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type EntriesService Uses

type EntriesService struct {
    // contains filtered or unexported fields
}

func NewEntriesService Uses

func NewEntriesService(s *Service) *EntriesService

func (*EntriesService) List Uses

func (r *EntriesService) List(listlogentriesrequest *ListLogEntriesRequest) *EntriesListCall

List: Lists log entries. Use this method to retrieve log entries that originated from a project/folder/organization/billing account. For ways to export log entries, see Exporting Logs.

func (*EntriesService) Write Uses

func (r *EntriesService) Write(writelogentriesrequest *WriteLogEntriesRequest) *EntriesWriteCall

Write: Writes log entries to Logging. This API method is the only way to send log entries to Logging. This method is used, directly or indirectly, by the Logging agent (fluentd) and all logging libraries configured to use Logging. A single request may contain log entries for a maximum of 1000 different resources (projects, organizations, billing accounts or folders)

type EntriesWriteCall Uses

type EntriesWriteCall struct {
    // contains filtered or unexported fields
}

func (*EntriesWriteCall) Context Uses

func (c *EntriesWriteCall) Context(ctx context.Context) *EntriesWriteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*EntriesWriteCall) Do Uses

func (c *EntriesWriteCall) Do(opts ...googleapi.CallOption) (*WriteLogEntriesResponse, error)

Do executes the "logging.entries.write" call. Exactly one of *WriteLogEntriesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *WriteLogEntriesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*EntriesWriteCall) Fields Uses

func (c *EntriesWriteCall) Fields(s ...googleapi.Field) *EntriesWriteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*EntriesWriteCall) Header Uses

func (c *EntriesWriteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ExclusionsCreateCall Uses

type ExclusionsCreateCall struct {
    // contains filtered or unexported fields
}

func (*ExclusionsCreateCall) Context Uses

func (c *ExclusionsCreateCall) Context(ctx context.Context) *ExclusionsCreateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ExclusionsCreateCall) Do Uses

func (c *ExclusionsCreateCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error)

Do executes the "logging.exclusions.create" call. Exactly one of *LogExclusion or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogExclusion.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ExclusionsCreateCall) Fields Uses

func (c *ExclusionsCreateCall) Fields(s ...googleapi.Field) *ExclusionsCreateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ExclusionsCreateCall) Header Uses

func (c *ExclusionsCreateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ExclusionsDeleteCall Uses

type ExclusionsDeleteCall struct {
    // contains filtered or unexported fields
}

func (*ExclusionsDeleteCall) Context Uses

func (c *ExclusionsDeleteCall) Context(ctx context.Context) *ExclusionsDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ExclusionsDeleteCall) Do Uses

func (c *ExclusionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)

Do executes the "logging.exclusions.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ExclusionsDeleteCall) Fields Uses

func (c *ExclusionsDeleteCall) Fields(s ...googleapi.Field) *ExclusionsDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ExclusionsDeleteCall) Header Uses

func (c *ExclusionsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ExclusionsGetCall Uses

type ExclusionsGetCall struct {
    // contains filtered or unexported fields
}

func (*ExclusionsGetCall) Context Uses

func (c *ExclusionsGetCall) Context(ctx context.Context) *ExclusionsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ExclusionsGetCall) Do Uses

func (c *ExclusionsGetCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error)

Do executes the "logging.exclusions.get" call. Exactly one of *LogExclusion or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogExclusion.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ExclusionsGetCall) Fields Uses

func (c *ExclusionsGetCall) Fields(s ...googleapi.Field) *ExclusionsGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ExclusionsGetCall) Header Uses

func (c *ExclusionsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ExclusionsGetCall) IfNoneMatch Uses

func (c *ExclusionsGetCall) IfNoneMatch(entityTag string) *ExclusionsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ExclusionsListCall Uses

type ExclusionsListCall struct {
    // contains filtered or unexported fields
}

func (*ExclusionsListCall) Context Uses

func (c *ExclusionsListCall) Context(ctx context.Context) *ExclusionsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ExclusionsListCall) Do Uses

func (c *ExclusionsListCall) Do(opts ...googleapi.CallOption) (*ListExclusionsResponse, error)

Do executes the "logging.exclusions.list" call. Exactly one of *ListExclusionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListExclusionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ExclusionsListCall) Fields Uses

func (c *ExclusionsListCall) Fields(s ...googleapi.Field) *ExclusionsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ExclusionsListCall) Header Uses

func (c *ExclusionsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ExclusionsListCall) IfNoneMatch Uses

func (c *ExclusionsListCall) IfNoneMatch(entityTag string) *ExclusionsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ExclusionsListCall) PageSize Uses

func (c *ExclusionsListCall) PageSize(pageSize int64) *ExclusionsListCall

PageSize sets the optional parameter "pageSize": 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.

func (*ExclusionsListCall) PageToken Uses

func (c *ExclusionsListCall) PageToken(pageToken string) *ExclusionsListCall

PageToken sets the optional parameter "pageToken": 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.

func (*ExclusionsListCall) Pages Uses

func (c *ExclusionsListCall) Pages(ctx context.Context, f func(*ListExclusionsResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type ExclusionsPatchCall Uses

type ExclusionsPatchCall struct {
    // contains filtered or unexported fields
}

func (*ExclusionsPatchCall) Context Uses

func (c *ExclusionsPatchCall) Context(ctx context.Context) *ExclusionsPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ExclusionsPatchCall) Do Uses

func (c *ExclusionsPatchCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error)

Do executes the "logging.exclusions.patch" call. Exactly one of *LogExclusion or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogExclusion.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ExclusionsPatchCall) Fields Uses

func (c *ExclusionsPatchCall) Fields(s ...googleapi.Field) *ExclusionsPatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ExclusionsPatchCall) Header Uses

func (c *ExclusionsPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ExclusionsPatchCall) UpdateMask Uses

func (c *ExclusionsPatchCall) UpdateMask(updateMask string) *ExclusionsPatchCall

UpdateMask sets the optional parameter "updateMask": Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the 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".

type ExclusionsService Uses

type ExclusionsService struct {
    // contains filtered or unexported fields
}

func NewExclusionsService Uses

func NewExclusionsService(s *Service) *ExclusionsService

func (*ExclusionsService) Create Uses

func (r *ExclusionsService) Create(parent string, logexclusion *LogExclusion) *ExclusionsCreateCall

Create: 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.

func (*ExclusionsService) Delete Uses

func (r *ExclusionsService) Delete(name string) *ExclusionsDeleteCall

Delete: Deletes an exclusion.

func (*ExclusionsService) Get Uses

func (r *ExclusionsService) Get(name string) *ExclusionsGetCall

Get: Gets the description of an exclusion.

func (*ExclusionsService) List Uses

func (r *ExclusionsService) List(parent string) *ExclusionsListCall

List: Lists all the exclusions in a parent resource.

func (*ExclusionsService) Patch Uses

func (r *ExclusionsService) Patch(name string, logexclusion *LogExclusion) *ExclusionsPatchCall

Patch: Changes one or more properties of an existing exclusion.

type Explicit Uses

type Explicit struct {
    // Bounds: The values must be monotonically increasing.
    Bounds []float64 `json:"bounds,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Bounds") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Bounds") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Explicit: Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1): boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must contain at least one element. If bounds has only one element, then there are no finite buckets, and that single element is the common boundary of the overflow and underflow buckets.

func (*Explicit) MarshalJSON Uses

func (s *Explicit) MarshalJSON() ([]byte, error)

type Exponential Uses

type Exponential struct {
    // GrowthFactor: Must be greater than 1.
    GrowthFactor float64 `json:"growthFactor,omitempty"`

    // NumFiniteBuckets: Must be greater than 0.
    NumFiniteBuckets int64 `json:"numFiniteBuckets,omitempty"`

    // Scale: Must be greater than 0.
    Scale float64 `json:"scale,omitempty"`

    // ForceSendFields is a list of field names (e.g. "GrowthFactor") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "GrowthFactor") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Exponential: Specifies an exponential sequence of buckets that have a width that is proportional to the value of the lower bound. Each bucket represents a constant relative uncertainty on a specific value in the bucket.There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).

func (*Exponential) MarshalJSON Uses

func (s *Exponential) MarshalJSON() ([]byte, error)

func (*Exponential) UnmarshalJSON Uses

func (s *Exponential) UnmarshalJSON(data []byte) error

type FoldersExclusionsCreateCall Uses

type FoldersExclusionsCreateCall struct {
    // contains filtered or unexported fields
}

func (*FoldersExclusionsCreateCall) Context Uses

func (c *FoldersExclusionsCreateCall) Context(ctx context.Context) *FoldersExclusionsCreateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*FoldersExclusionsCreateCall) Do Uses

func (c *FoldersExclusionsCreateCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error)

Do executes the "logging.folders.exclusions.create" call. Exactly one of *LogExclusion or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogExclusion.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*FoldersExclusionsCreateCall) Fields Uses

func (c *FoldersExclusionsCreateCall) Fields(s ...googleapi.Field) *FoldersExclusionsCreateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*FoldersExclusionsCreateCall) Header Uses

func (c *FoldersExclusionsCreateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type FoldersExclusionsDeleteCall Uses

type FoldersExclusionsDeleteCall struct {
    // contains filtered or unexported fields
}

func (*FoldersExclusionsDeleteCall) Context Uses

func (c *FoldersExclusionsDeleteCall) Context(ctx context.Context) *FoldersExclusionsDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*FoldersExclusionsDeleteCall) Do Uses

func (c *FoldersExclusionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)

Do executes the "logging.folders.exclusions.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*FoldersExclusionsDeleteCall) Fields Uses

func (c *FoldersExclusionsDeleteCall) Fields(s ...googleapi.Field) *FoldersExclusionsDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*FoldersExclusionsDeleteCall) Header Uses

func (c *FoldersExclusionsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type FoldersExclusionsGetCall Uses

type FoldersExclusionsGetCall struct {
    // contains filtered or unexported fields
}

func (*FoldersExclusionsGetCall) Context Uses

func (c *FoldersExclusionsGetCall) Context(ctx context.Context) *FoldersExclusionsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*FoldersExclusionsGetCall) Do Uses

func (c *FoldersExclusionsGetCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error)

Do executes the "logging.folders.exclusions.get" call. Exactly one of *LogExclusion or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogExclusion.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*FoldersExclusionsGetCall) Fields Uses

func (c *FoldersExclusionsGetCall) Fields(s ...googleapi.Field) *FoldersExclusionsGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*FoldersExclusionsGetCall) Header Uses

func (c *FoldersExclusionsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*FoldersExclusionsGetCall) IfNoneMatch Uses

func (c *FoldersExclusionsGetCall) IfNoneMatch(entityTag string) *FoldersExclusionsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type FoldersExclusionsListCall Uses

type FoldersExclusionsListCall struct {
    // contains filtered or unexported fields
}

func (*FoldersExclusionsListCall) Context Uses

func (c *FoldersExclusionsListCall) Context(ctx context.Context) *FoldersExclusionsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*FoldersExclusionsListCall) Do Uses

func (c *FoldersExclusionsListCall) Do(opts ...googleapi.CallOption) (*ListExclusionsResponse, error)

Do executes the "logging.folders.exclusions.list" call. Exactly one of *ListExclusionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListExclusionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*FoldersExclusionsListCall) Fields Uses

func (c *FoldersExclusionsListCall) Fields(s ...googleapi.Field) *FoldersExclusionsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*FoldersExclusionsListCall) Header Uses

func (c *FoldersExclusionsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*FoldersExclusionsListCall) IfNoneMatch Uses

func (c *FoldersExclusionsListCall) IfNoneMatch(entityTag string) *FoldersExclusionsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*FoldersExclusionsListCall) PageSize Uses

func (c *FoldersExclusionsListCall) PageSize(pageSize int64) *FoldersExclusionsListCall

PageSize sets the optional parameter "pageSize": 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.

func (*FoldersExclusionsListCall) PageToken Uses

func (c *FoldersExclusionsListCall) PageToken(pageToken string) *FoldersExclusionsListCall

PageToken sets the optional parameter "pageToken": 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.

func (*FoldersExclusionsListCall) Pages Uses

func (c *FoldersExclusionsListCall) Pages(ctx context.Context, f func(*ListExclusionsResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type FoldersExclusionsPatchCall Uses

type FoldersExclusionsPatchCall struct {
    // contains filtered or unexported fields
}

func (*FoldersExclusionsPatchCall) Context Uses

func (c *FoldersExclusionsPatchCall) Context(ctx context.Context) *FoldersExclusionsPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*FoldersExclusionsPatchCall) Do Uses

func (c *FoldersExclusionsPatchCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error)

Do executes the "logging.folders.exclusions.patch" call. Exactly one of *LogExclusion or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogExclusion.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*FoldersExclusionsPatchCall) Fields Uses

func (c *FoldersExclusionsPatchCall) Fields(s ...googleapi.Field) *FoldersExclusionsPatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*FoldersExclusionsPatchCall) Header Uses

func (c *FoldersExclusionsPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*FoldersExclusionsPatchCall) UpdateMask Uses

func (c *FoldersExclusionsPatchCall) UpdateMask(updateMask string) *FoldersExclusionsPatchCall

UpdateMask sets the optional parameter "updateMask": Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the 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".

type FoldersExclusionsService Uses

type FoldersExclusionsService struct {
    // contains filtered or unexported fields
}

func NewFoldersExclusionsService Uses

func NewFoldersExclusionsService(s *Service) *FoldersExclusionsService

func (*FoldersExclusionsService) Create Uses

func (r *FoldersExclusionsService) Create(parent string, logexclusion *LogExclusion) *FoldersExclusionsCreateCall

Create: 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.

func (*FoldersExclusionsService) Delete Uses

func (r *FoldersExclusionsService) Delete(name string) *FoldersExclusionsDeleteCall

Delete: Deletes an exclusion.

func (*FoldersExclusionsService) Get Uses

func (r *FoldersExclusionsService) Get(name string) *FoldersExclusionsGetCall

Get: Gets the description of an exclusion.

func (*FoldersExclusionsService) List Uses

func (r *FoldersExclusionsService) List(parent string) *FoldersExclusionsListCall

List: Lists all the exclusions in a parent resource.

func (*FoldersExclusionsService) Patch Uses

func (r *FoldersExclusionsService) Patch(name string, logexclusion *LogExclusion) *FoldersExclusionsPatchCall

Patch: Changes one or more properties of an existing exclusion.

type FoldersLogsDeleteCall Uses

type FoldersLogsDeleteCall struct {
    // contains filtered or unexported fields
}

func (*FoldersLogsDeleteCall) Context Uses

func (c *FoldersLogsDeleteCall) Context(ctx context.Context) *FoldersLogsDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*FoldersLogsDeleteCall) Do Uses

func (c *FoldersLogsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)

Do executes the "logging.folders.logs.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*FoldersLogsDeleteCall) Fields Uses

func (c *FoldersLogsDeleteCall) Fields(s ...googleapi.Field) *FoldersLogsDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*FoldersLogsDeleteCall) Header Uses

func (c *FoldersLogsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type FoldersLogsListCall Uses

type FoldersLogsListCall struct {
    // contains filtered or unexported fields
}

func (*FoldersLogsListCall) Context Uses

func (c *FoldersLogsListCall) Context(ctx context.Context) *FoldersLogsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*FoldersLogsListCall) Do Uses

func (c *FoldersLogsListCall) Do(opts ...googleapi.CallOption) (*ListLogsResponse, error)

Do executes the "logging.folders.logs.list" call. Exactly one of *ListLogsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListLogsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*FoldersLogsListCall) Fields Uses

func (c *FoldersLogsListCall) Fields(s ...googleapi.Field) *FoldersLogsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*FoldersLogsListCall) Header Uses

func (c *FoldersLogsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*FoldersLogsListCall) IfNoneMatch Uses

func (c *FoldersLogsListCall) IfNoneMatch(entityTag string) *FoldersLogsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*FoldersLogsListCall) PageSize Uses

func (c *FoldersLogsListCall) PageSize(pageSize int64) *FoldersLogsListCall

PageSize sets the optional parameter "pageSize": 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.

func (*FoldersLogsListCall) PageToken Uses

func (c *FoldersLogsListCall) PageToken(pageToken string) *FoldersLogsListCall

PageToken sets the optional parameter "pageToken": 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.

func (*FoldersLogsListCall) Pages Uses

func (c *FoldersLogsListCall) Pages(ctx context.Context, f func(*ListLogsResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

func (*FoldersLogsListCall) ResourceNames Uses

func (c *FoldersLogsListCall) ResourceNames(resourceNames ...string) *FoldersLogsListCall

ResourceNames sets the optional parameter "resourceNames": Required for Logging Data Model V2. The resource name that owns the logs: "projects/PROJECT_ID" "organizations/ORGANIZATION_ID" "billingAccounts/BILLING_ACCOUNT_ID" "folders/FOLDER_ID"

type FoldersLogsService Uses

type FoldersLogsService struct {
    // contains filtered or unexported fields
}

func NewFoldersLogsService Uses

func NewFoldersLogsService(s *Service) *FoldersLogsService

func (*FoldersLogsService) Delete Uses

func (r *FoldersLogsService) Delete(logName string) *FoldersLogsDeleteCall

Delete: 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.

func (*FoldersLogsService) List Uses

func (r *FoldersLogsService) List(parent string) *FoldersLogsListCall

List: Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.

type FoldersService Uses

type FoldersService struct {
    Exclusions *FoldersExclusionsService

    Logs *FoldersLogsService

    Sinks *FoldersSinksService
    // contains filtered or unexported fields
}

func NewFoldersService Uses

func NewFoldersService(s *Service) *FoldersService

type FoldersSinksCreateCall Uses

type FoldersSinksCreateCall struct {
    // contains filtered or unexported fields
}

func (*FoldersSinksCreateCall) Context Uses

func (c *FoldersSinksCreateCall) Context(ctx context.Context) *FoldersSinksCreateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*FoldersSinksCreateCall) Do Uses

func (c *FoldersSinksCreateCall) Do(opts ...googleapi.CallOption) (*LogSink, error)

Do executes the "logging.folders.sinks.create" call. Exactly one of *LogSink or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogSink.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*FoldersSinksCreateCall) Fields Uses

func (c *FoldersSinksCreateCall) Fields(s ...googleapi.Field) *FoldersSinksCreateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*FoldersSinksCreateCall) Header Uses

func (c *FoldersSinksCreateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*FoldersSinksCreateCall) UniqueWriterIdentity Uses

func (c *FoldersSinksCreateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *FoldersSinksCreateCall

UniqueWriterIdentity sets the optional parameter "uniqueWriterIdentity": 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 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.

type FoldersSinksDeleteCall Uses

type FoldersSinksDeleteCall struct {
    // contains filtered or unexported fields
}

func (*FoldersSinksDeleteCall) Context Uses

func (c *FoldersSinksDeleteCall) Context(ctx context.Context) *FoldersSinksDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*FoldersSinksDeleteCall) Do Uses

func (c *FoldersSinksDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)

Do executes the "logging.folders.sinks.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*FoldersSinksDeleteCall) Fields Uses

func (c *FoldersSinksDeleteCall) Fields(s ...googleapi.Field) *FoldersSinksDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*FoldersSinksDeleteCall) Header Uses

func (c *FoldersSinksDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type FoldersSinksGetCall Uses

type FoldersSinksGetCall struct {
    // contains filtered or unexported fields
}

func (*FoldersSinksGetCall) Context Uses

func (c *FoldersSinksGetCall) Context(ctx context.Context) *FoldersSinksGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*FoldersSinksGetCall) Do Uses

func (c *FoldersSinksGetCall) Do(opts ...googleapi.CallOption) (*LogSink, error)

Do executes the "logging.folders.sinks.get" call. Exactly one of *LogSink or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogSink.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*FoldersSinksGetCall) Fields Uses

func (c *FoldersSinksGetCall) Fields(s ...googleapi.Field) *FoldersSinksGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*FoldersSinksGetCall) Header Uses

func (c *FoldersSinksGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*FoldersSinksGetCall) IfNoneMatch Uses

func (c *FoldersSinksGetCall) IfNoneMatch(entityTag string) *FoldersSinksGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type FoldersSinksListCall Uses

type FoldersSinksListCall struct {
    // contains filtered or unexported fields
}

func (*FoldersSinksListCall) Context Uses

func (c *FoldersSinksListCall) Context(ctx context.Context) *FoldersSinksListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*FoldersSinksListCall) Do Uses

func (c *FoldersSinksListCall) Do(opts ...googleapi.CallOption) (*ListSinksResponse, error)

Do executes the "logging.folders.sinks.list" call. Exactly one of *ListSinksResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListSinksResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*FoldersSinksListCall) Fields Uses

func (c *FoldersSinksListCall) Fields(s ...googleapi.Field) *FoldersSinksListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*FoldersSinksListCall) Header Uses

func (c *FoldersSinksListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*FoldersSinksListCall) IfNoneMatch Uses

func (c *FoldersSinksListCall) IfNoneMatch(entityTag string) *FoldersSinksListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*FoldersSinksListCall) PageSize Uses

func (c *FoldersSinksListCall) PageSize(pageSize int64) *FoldersSinksListCall

PageSize sets the optional parameter "pageSize": 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.

func (*FoldersSinksListCall) PageToken Uses

func (c *FoldersSinksListCall) PageToken(pageToken string) *FoldersSinksListCall

PageToken sets the optional parameter "pageToken": 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.

func (*FoldersSinksListCall) Pages Uses

func (c *FoldersSinksListCall) Pages(ctx context.Context, f func(*ListSinksResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type FoldersSinksPatchCall Uses

type FoldersSinksPatchCall struct {
    // contains filtered or unexported fields
}

func (*FoldersSinksPatchCall) Context Uses

func (c *FoldersSinksPatchCall) Context(ctx context.Context) *FoldersSinksPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*FoldersSinksPatchCall) Do Uses

func (c *FoldersSinksPatchCall) Do(opts ...googleapi.CallOption) (*LogSink, error)

Do executes the "logging.folders.sinks.patch" call. Exactly one of *LogSink or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogSink.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*FoldersSinksPatchCall) Fields Uses

func (c *FoldersSinksPatchCall) Fields(s ...googleapi.Field) *FoldersSinksPatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*FoldersSinksPatchCall) Header Uses

func (c *FoldersSinksPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*FoldersSinksPatchCall) UniqueWriterIdentity Uses

func (c *FoldersSinksPatchCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *FoldersSinksPatchCall

UniqueWriterIdentity sets the optional parameter "uniqueWriterIdentity": See 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.

func (*FoldersSinksPatchCall) UpdateMask Uses

func (c *FoldersSinksPatchCall) UpdateMask(updateMask string) *FoldersSinksPatchCall

UpdateMask sets the optional parameter "updateMask": 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#google.protobuf.FieldMaskExample: updateMask=filter.

type FoldersSinksService Uses

type FoldersSinksService struct {
    // contains filtered or unexported fields
}

func NewFoldersSinksService Uses

func NewFoldersSinksService(s *Service) *FoldersSinksService

func (*FoldersSinksService) Create Uses

func (r *FoldersSinksService) Create(parent string, logsink *LogSink) *FoldersSinksCreateCall

Create: 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.

func (*FoldersSinksService) Delete Uses

func (r *FoldersSinksService) Delete(sinkNameid string) *FoldersSinksDeleteCall

Delete: Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.

func (*FoldersSinksService) Get Uses

func (r *FoldersSinksService) Get(sinkName string) *FoldersSinksGetCall

Get: Gets a sink.

func (*FoldersSinksService) List Uses

func (r *FoldersSinksService) List(parent string) *FoldersSinksListCall

List: Lists sinks.

func (*FoldersSinksService) Patch Uses

func (r *FoldersSinksService) Patch(sinkNameid string, logsink *LogSink) *FoldersSinksPatchCall

Patch: 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.

func (*FoldersSinksService) Update Uses

func (r *FoldersSinksService) Update(sinkNameid string, logsink *LogSink) *FoldersSinksUpdateCall

Update: 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.

type FoldersSinksUpdateCall Uses

type FoldersSinksUpdateCall struct {
    // contains filtered or unexported fields
}

func (*FoldersSinksUpdateCall) Context Uses

func (c *FoldersSinksUpdateCall) Context(ctx context.Context) *FoldersSinksUpdateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*FoldersSinksUpdateCall) Do Uses

func (c *FoldersSinksUpdateCall) Do(opts ...googleapi.CallOption) (*LogSink, error)

Do executes the "logging.folders.sinks.update" call. Exactly one of *LogSink or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogSink.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*FoldersSinksUpdateCall) Fields Uses

func (c *FoldersSinksUpdateCall) Fields(s ...googleapi.Field) *FoldersSinksUpdateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*FoldersSinksUpdateCall) Header Uses

func (c *FoldersSinksUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*FoldersSinksUpdateCall) UniqueWriterIdentity Uses

func (c *FoldersSinksUpdateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *FoldersSinksUpdateCall

UniqueWriterIdentity sets the optional parameter "uniqueWriterIdentity": See 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.

func (*FoldersSinksUpdateCall) UpdateMask Uses

func (c *FoldersSinksUpdateCall) UpdateMask(updateMask string) *FoldersSinksUpdateCall

UpdateMask sets the optional parameter "updateMask": 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#google.protobuf.FieldMaskExample: updateMask=filter.

type HttpRequest Uses

type HttpRequest struct {
    // CacheFillBytes: The number of HTTP response bytes inserted into
    // cache. Set only when a cache fill was attempted.
    CacheFillBytes int64 `json:"cacheFillBytes,omitempty,string"`

    // CacheHit: Whether or not an entity was served from cache (with or
    // without validation).
    CacheHit bool `json:"cacheHit,omitempty"`

    // CacheLookup: Whether or not a cache lookup was attempted.
    CacheLookup bool `json:"cacheLookup,omitempty"`

    // CacheValidatedWithOriginServer: Whether or not the response was
    // validated with the origin server before being served from cache. This
    // field is only meaningful if cache_hit is True.
    CacheValidatedWithOriginServer bool `json:"cacheValidatedWithOriginServer,omitempty"`

    // Latency: The request processing latency on the server, from the time
    // the request was received until the response was sent.
    Latency string `json:"latency,omitempty"`

    // Protocol: Protocol used for the request. Examples: "HTTP/1.1",
    // "HTTP/2", "websocket"
    Protocol string `json:"protocol,omitempty"`

    // Referer: The referer URL of the request, as defined in HTTP/1.1
    // Header Field Definitions
    // (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
    Referer string `json:"referer,omitempty"`

    // RemoteIp: The IP address (IPv4 or IPv6) of the client that issued the
    // HTTP request. Examples: "192.168.1.1", "FE80::0202:B3FF:FE1E:8329".
    RemoteIp string `json:"remoteIp,omitempty"`

    // RequestMethod: The request method. Examples: "GET", "HEAD", "PUT",
    // "POST".
    RequestMethod string `json:"requestMethod,omitempty"`

    // RequestSize: The size of the HTTP request message in bytes, including
    // the request headers and the request body.
    RequestSize int64 `json:"requestSize,omitempty,string"`

    // RequestUrl: The scheme (http, https), the host name, the path and the
    // query portion of the URL that was requested. Example:
    // "http://example.com/some/info?color=red".
    RequestUrl string `json:"requestUrl,omitempty"`

    // ResponseSize: The size of the HTTP response message sent back to the
    // client, in bytes, including the response headers and the response
    // body.
    ResponseSize int64 `json:"responseSize,omitempty,string"`

    // ServerIp: The IP address (IPv4 or IPv6) of the origin server that the
    // request was sent to.
    ServerIp string `json:"serverIp,omitempty"`

    // Status: The response code indicating the status of response.
    // Examples: 200, 404.
    Status int64 `json:"status,omitempty"`

    // UserAgent: The user agent sent by the client. Example: "Mozilla/4.0
    // (compatible; MSIE 6.0; Windows 98; Q312461; .NET
    // CLR 1.0.3705)".
    UserAgent string `json:"userAgent,omitempty"`

    // ForceSendFields is a list of field names (e.g. "CacheFillBytes") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "CacheFillBytes") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

HttpRequest: A common proto for logging HTTP requests. Only contains semantics defined by the HTTP specification. Product-specific logging information MUST be defined in a separate message.

func (*HttpRequest) MarshalJSON Uses

func (s *HttpRequest) MarshalJSON() ([]byte, error)

type LabelDescriptor Uses

type LabelDescriptor struct {
    // Description: A human-readable description for the label.
    Description string `json:"description,omitempty"`

    // Key: The label key.
    Key string `json:"key,omitempty"`

    // ValueType: The type of data that can be assigned to the label.
    //
    // Possible values:
    //   "STRING" - A variable-length string. This is the default.
    //   "BOOL" - Boolean; true or false.
    //   "INT64" - A 64-bit signed integer.
    ValueType string `json:"valueType,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Description") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Description") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

LabelDescriptor: A description of a label.

func (*LabelDescriptor) MarshalJSON Uses

func (s *LabelDescriptor) MarshalJSON() ([]byte, error)

type Linear Uses

type Linear struct {
    // NumFiniteBuckets: Must be greater than 0.
    NumFiniteBuckets int64 `json:"numFiniteBuckets,omitempty"`

    // Offset: Lower bound of the first bucket.
    Offset float64 `json:"offset,omitempty"`

    // Width: Must be greater than 0.
    Width float64 `json:"width,omitempty"`

    // ForceSendFields is a list of field names (e.g. "NumFiniteBuckets") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "NumFiniteBuckets") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

Linear: Specifies a linear sequence of buckets that all have the same width (except overflow and underflow). Each bucket represents a constant absolute uncertainty on the specific value in the bucket.There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)).

func (*Linear) MarshalJSON Uses

func (s *Linear) MarshalJSON() ([]byte, error)

func (*Linear) UnmarshalJSON Uses

func (s *Linear) UnmarshalJSON(data []byte) error

type ListExclusionsResponse Uses

type ListExclusionsResponse struct {
    // Exclusions: A list of exclusions.
    Exclusions []*LogExclusion `json:"exclusions,omitempty"`

    // NextPageToken: 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 `json:"nextPageToken,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Exclusions") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Exclusions") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

ListExclusionsResponse: Result returned from ListExclusions.

func (*ListExclusionsResponse) MarshalJSON Uses

func (s *ListExclusionsResponse) MarshalJSON() ([]byte, error)

type ListLogEntriesRequest Uses

type ListLogEntriesRequest struct {
    // Filter: Optional. A filter that chooses which log entries to return.
    // See Advanced Logs 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 `json:"filter,omitempty"`

    // OrderBy: 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 `json:"orderBy,omitempty"`

    // PageSize: 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 int64 `json:"pageSize,omitempty"`

    // PageToken: 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 `json:"pageToken,omitempty"`

    // ProjectIds: Deprecated. Use resource_names instead. One or more
    // project identifiers or project numbers from which to retrieve log
    // entries. Example: "my-project-1A".
    ProjectIds []string `json:"projectIds,omitempty"`

    // ResourceNames: Required. Names of one or more parent resources from
    // which to retrieve log
    // entries:
    // "projects/[PROJECT_ID]"
    // "organizations/[ORGANIZATION_ID]"
    // "bi
    // llingAccounts/[BILLING_ACCOUNT_ID]"
    // "folders/[FOLDER_ID]"
    // Projects listed in the project_ids field are added to this list.
    ResourceNames []string `json:"resourceNames,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Filter") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Filter") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

ListLogEntriesRequest: The parameters to ListLogEntries.

func (*ListLogEntriesRequest) MarshalJSON Uses

func (s *ListLogEntriesRequest) MarshalJSON() ([]byte, error)

type ListLogEntriesResponse Uses

type ListLogEntriesResponse struct {
    // Entries: 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 `json:"entries,omitempty"`

    // NextPageToken: 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 `json:"nextPageToken,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Entries") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Entries") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

ListLogEntriesResponse: Result returned from ListLogEntries.

func (*ListLogEntriesResponse) MarshalJSON Uses

func (s *ListLogEntriesResponse) MarshalJSON() ([]byte, error)

type ListLogMetricsResponse Uses

type ListLogMetricsResponse struct {
    // Metrics: A list of logs-based metrics.
    Metrics []*LogMetric `json:"metrics,omitempty"`

    // NextPageToken: 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 `json:"nextPageToken,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Metrics") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Metrics") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

ListLogMetricsResponse: Result returned from ListLogMetrics.

func (*ListLogMetricsResponse) MarshalJSON Uses

func (s *ListLogMetricsResponse) MarshalJSON() ([]byte, error)

type ListLogsResponse Uses

type ListLogsResponse struct {
    // LogNames: A list of log names. For example,
    // "projects/my-project/logs/syslog" or
    // "organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity
    // ".
    LogNames []string `json:"logNames,omitempty"`

    // NextPageToken: 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 `json:"nextPageToken,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "LogNames") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "LogNames") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

ListLogsResponse: Result returned from ListLogs.

func (*ListLogsResponse) MarshalJSON Uses

func (s *ListLogsResponse) MarshalJSON() ([]byte, error)

type ListMonitoredResourceDescriptorsResponse Uses

type ListMonitoredResourceDescriptorsResponse struct {
    // NextPageToken: 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 `json:"nextPageToken,omitempty"`

    // ResourceDescriptors: A list of resource descriptors.
    ResourceDescriptors []*MonitoredResourceDescriptor `json:"resourceDescriptors,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "NextPageToken") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "NextPageToken") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

ListMonitoredResourceDescriptorsResponse: Result returned from ListMonitoredResourceDescriptors.

func (*ListMonitoredResourceDescriptorsResponse) MarshalJSON Uses

func (s *ListMonitoredResourceDescriptorsResponse) MarshalJSON() ([]byte, error)

type ListSinksResponse Uses

type ListSinksResponse struct {
    // NextPageToken: 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 `json:"nextPageToken,omitempty"`

    // Sinks: A list of sinks.
    Sinks []*LogSink `json:"sinks,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "NextPageToken") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "NextPageToken") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

ListSinksResponse: Result returned from ListSinks.

func (*ListSinksResponse) MarshalJSON Uses

func (s *ListSinksResponse) MarshalJSON() ([]byte, error)

type LogEntry Uses

type LogEntry struct {
    // HttpRequest: Optional. Information about the HTTP request associated
    // with this log entry, if applicable.
    HttpRequest *HttpRequest `json:"httpRequest,omitempty"`

    // InsertId: Optional. A unique identifier for the log entry. If you
    // provide a value, then 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
    // Logging assigns its own unique identifier. The insert_id is also used
    // to order log entries that have the same timestamp value.
    InsertId string `json:"insertId,omitempty"`

    // JsonPayload: The log entry payload, represented as a structure that
    // is expressed as a JSON object.
    JsonPayload googleapi.RawMessage `json:"jsonPayload,omitempty"`

    // Labels: Optional. A set of user-defined (key, value) data that
    // provides additional information about the log entry.
    Labels map[string]string `json:"labels,omitempty"`

    // LogName: Required. The resource name of the log to which this log
    // entry
    // belongs:
    // "projects/[PROJECT_ID]/logs/[LOG_ID]"
    // "organizations/[ORGANIZ
    // ATION_ID]/logs/[LOG_ID]"
    // "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[L
    // OG_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%2Fa
    // ctivity". [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 `json:"logName,omitempty"`

    // Metadata: Deprecated. Output only. Additional metadata about the
    // monitored resource.Only k8s_container, k8s_pod, and k8s_node
    // MonitoredResources have this field populated for GKE versions older
    // than 1.12.6. For GKE versions 1.12.6 and above, the metadata field
    // has been deprecated. The Kubernetes pod labels that used to be in
    // metadata.userLabels will now be present in the labels field with a
    // key prefix of k8s-pod/. The Stackdriver system labels that were
    // present in the metadata.systemLabels field will no longer be
    // available in the LogEntry.
    Metadata *MonitoredResourceMetadata `json:"metadata,omitempty"`

    // Operation: Optional. Information about an operation associated with
    // the log entry, if applicable.
    Operation *LogEntryOperation `json:"operation,omitempty"`

    // ProtoPayload: The log entry payload, represented as a protocol
    // buffer. Some Google Cloud Platform services use this field for their
    // log entry payloads.The following protocol buffer types are supported;
    // user-defined types are not
    // supported:"type.googleapis.com/google.cloud.audit.AuditLog"
    // "type.googleapis.com/google.appengine.logging.v1.RequestLog"
    ProtoPayload googleapi.RawMessage `json:"protoPayload,omitempty"`

    // ReceiveTimestamp: Output only. The time the log entry was received by
    // Logging.
    ReceiveTimestamp string `json:"receiveTimestamp,omitempty"`

    // Resource: Required. The monitored resource that produced 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 *MonitoredResource `json:"resource,omitempty"`

    // Severity: Optional. The severity of the log entry. The default value
    // is LogSeverity.DEFAULT.
    //
    // Possible values:
    //   "DEFAULT" - (0) The log entry has no assigned severity level.
    //   "DEBUG" - (100) Debug or trace information.
    //   "INFO" - (200) Routine information, such as ongoing status or
    // performance.
    //   "NOTICE" - (300) Normal but significant events, such as start up,
    // shut down, or a configuration change.
    //   "WARNING" - (400) Warning events might cause problems.
    //   "ERROR" - (500) Error events are likely to cause problems.
    //   "CRITICAL" - (600) Critical events cause more severe problems or
    // outages.
    //   "ALERT" - (700) A person must take an action immediately.
    //   "EMERGENCY" - (800) One or more systems are unusable.
    Severity string `json:"severity,omitempty"`

    // SourceLocation: Optional. Source code location information associated
    // with the log entry, if any.
    SourceLocation *LogEntrySourceLocation `json:"sourceLocation,omitempty"`

    // SpanId: Optional. The span ID within the trace associated with the
    // log entry.For Trace spans, this is the same format that the Trace API
    // v2 uses: a 16-character hexadecimal encoding of an 8-byte array, such
    // as <code>"000000000000004a"</code>.
    SpanId string `json:"spanId,omitempty"`

    // TextPayload: The log entry payload, represented as a Unicode string
    // (UTF-8).
    TextPayload string `json:"textPayload,omitempty"`

    // Timestamp: 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 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 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.
    Timestamp string `json:"timestamp,omitempty"`

    // Trace: 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 `json:"trace,omitempty"`

    // TraceSampled: Optional. The sampling decision of the trace associated
    // with the log entry.True means that the trace resource name in the
    // trace field was sampled for storage in a trace backend. False means
    // that the trace was not sampled for storage when this log entry was
    // written, or the sampling decision was unknown at the time. A
    // non-sampled trace value is still useful as a request correlation
    // identifier. The default is False.
    TraceSampled bool `json:"traceSampled,omitempty"`

    // ForceSendFields is a list of field names (e.g. "HttpRequest") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "HttpRequest") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

LogEntry: An individual entry in a log.

func (*LogEntry) MarshalJSON Uses

func (s *LogEntry) MarshalJSON() ([]byte, error)

type LogEntryOperation Uses

type LogEntryOperation struct {
    // First: Optional. Set this to True if this is the first log entry in
    // the operation.
    First bool `json:"first,omitempty"`

    // Id: Optional. An arbitrary operation identifier. Log entries with the
    // same identifier are assumed to be part of the same operation.
    Id  string `json:"id,omitempty"`

    // Last: Optional. Set this to True if this is the last log entry in the
    // operation.
    Last bool `json:"last,omitempty"`

    // Producer: 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 `json:"producer,omitempty"`

    // ForceSendFields is a list of field names (e.g. "First") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "First") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

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

func (*LogEntryOperation) MarshalJSON Uses

func (s *LogEntryOperation) MarshalJSON() ([]byte, error)

type LogEntrySourceLocation Uses

type LogEntrySourceLocation struct {
    // File: Optional. Source file name. Depending on the runtime
    // environment, this might be a simple name or a fully-qualified name.
    File string `json:"file,omitempty"`

    // Function: 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 `json:"function,omitempty"`

    // Line: Optional. Line within the source file. 1-based; 0 indicates no
    // line number available.
    Line int64 `json:"line,omitempty,string"`

    // ForceSendFields is a list of field names (e.g. "File") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "File") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

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

func (*LogEntrySourceLocation) MarshalJSON Uses

func (s *LogEntrySourceLocation) MarshalJSON() ([]byte, error)

type LogExclusion Uses

type LogExclusion struct {
    // CreateTime: Output only. The creation timestamp of the exclusion.This
    // field may not be present for older exclusions.
    CreateTime string `json:"createTime,omitempty"`

    // Description: Optional. A description of this exclusion.
    Description string `json:"description,omitempty"`

    // Disabled: Optional. If set to True, then this exclusion is disabled
    // and it does not exclude any log entries. You can update an exclusion
    // to change the value of this field.
    Disabled bool `json:"disabled,omitempty"`

    // Filter: Required. An advanced logs filter that matches the log
    // entries to be excluded. By using the sample function, you can exclude
    // less than 100% of the matching log entries. For example, the
    // following query matches 99% of low-severity log entries from Google
    // Cloud Storage buckets:"resource.type=gcs_bucket severity<ERROR
    // sample(insertId, 0.99)"
    Filter string `json:"filter,omitempty"`

    // Name: 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 `json:"name,omitempty"`

    // UpdateTime: Output only. The last update timestamp of the
    // exclusion.This field may not be present for older exclusions.
    UpdateTime string `json:"updateTime,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "CreateTime") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "CreateTime") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

LogExclusion: Specifies a set of log entries that are not to be stored in Logging. If your GCP resource receives a large volume of logs, you can use exclusions to reduce your chargeable logs. Exclusions are processed after log sinks, so you can export log entries before they are excluded. Note that organization-level and folder-level exclusions don't apply to child resources, and that you can't exclude audit log entries.

func (*LogExclusion) MarshalJSON Uses

func (s *LogExclusion) MarshalJSON() ([]byte, error)

type LogLine Uses

type LogLine struct {
    // LogMessage: App-provided log message.
    LogMessage string `json:"logMessage,omitempty"`

    // Severity: Severity of this log entry.
    //
    // Possible values:
    //   "DEFAULT" - (0) The log entry has no assigned severity level.
    //   "DEBUG" - (100) Debug or trace information.
    //   "INFO" - (200) Routine information, such as ongoing status or
    // performance.
    //   "NOTICE" - (300) Normal but significant events, such as start up,
    // shut down, or a configuration change.
    //   "WARNING" - (400) Warning events might cause problems.
    //   "ERROR" - (500) Error events are likely to cause problems.
    //   "CRITICAL" - (600) Critical events cause more severe problems or
    // outages.
    //   "ALERT" - (700) A person must take an action immediately.
    //   "EMERGENCY" - (800) One or more systems are unusable.
    Severity string `json:"severity,omitempty"`

    // SourceLocation: Where in the source code this log message was
    // written.
    SourceLocation *SourceLocation `json:"sourceLocation,omitempty"`

    // Time: Approximate time when this log entry was made.
    Time string `json:"time,omitempty"`

    // ForceSendFields is a list of field names (e.g. "LogMessage") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "LogMessage") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

LogLine: Application log line emitted while processing a request.

func (*LogLine) MarshalJSON Uses

func (s *LogLine) MarshalJSON() ([]byte, error)

type LogMetric Uses

type LogMetric struct {
    // BucketOptions: 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 *BucketOptions `json:"bucketOptions,omitempty"`

    // CreateTime: Output only. The creation timestamp of the metric.This
    // field may not be present for older metrics.
    CreateTime string `json:"createTime,omitempty"`

    // Description: Optional. A description of this metric, which is used in
    // documentation. The maximum length of the description is 8000
    // characters.
    Description string `json:"description,omitempty"`

    // Filter: Required. An advanced logs filter 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 `json:"filter,omitempty"`

    // LabelExtractors: 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 `json:"labelExtractors,omitempty"`

    // MetricDescriptor: 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 *MetricDescriptor `json:"metricDescriptor,omitempty"`

    // Name: 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 `json:"name,omitempty"`

    // UpdateTime: Output only. The last update timestamp of the metric.This
    // field may not be present for older metrics.
    UpdateTime string `json:"updateTime,omitempty"`

    // ValueExtractor: 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 `json:"valueExtractor,omitempty"`

    // Version: Deprecated. The API version that created or updated this
    // metric. The v2 format is used by default and cannot be changed.
    //
    // Possible values:
    //   "V2" - Logging API v2.
    //   "V1" - Logging API v1.
    Version string `json:"version,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "BucketOptions") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "BucketOptions") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

LogMetric: 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) MarshalJSON Uses

func (s *LogMetric) MarshalJSON() ([]byte, error)

type LogSink Uses

type LogSink struct {
    // CreateTime: Output only. The creation timestamp of the sink.This
    // field may not be present for older sinks.
    CreateTime string `json:"createTime,omitempty"`

    // Destination: Required. The export
    // destination:
    // "storage.googleapis.com/[GCS_BUCKET]"
    // "bigquery.googleapi
    // s.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.
    Destination string `json:"destination,omitempty"`

    // Filter: Optional. An advanced logs filter. 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 `json:"filter,omitempty"`

    // IncludeChildren: 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 `json:"includeChildren,omitempty"`

    // Name: 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 `json:"name,omitempty"`

    // OutputVersionFormat: 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.
    //
    // Possible values:
    //   "VERSION_FORMAT_UNSPECIFIED" - An unspecified format version that
    // will default to V2.
    //   "V2" - LogEntry version 2 format.
    //   "V1" - LogEntry version 1 format.
    OutputVersionFormat string `json:"outputVersionFormat,omitempty"`

    // UpdateTime: Output only. The last update timestamp of the sink.This
    // field may not be present for older sinks.
    UpdateTime string `json:"updateTime,omitempty"`

    // WriterIdentity: Output only. An IAM identity&mdash;a service account
    // or group&mdash;under which Logging writes the exported log entries to
    // the sink's destination. This field is set by sinks.create and
    // sinks.update based on the value 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. Consult the
    // destination service's documentation to determine the appropriate IAM
    // roles to assign to the identity.
    WriterIdentity string `json:"writerIdentity,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "CreateTime") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "CreateTime") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

LogSink: 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) MarshalJSON Uses

func (s *LogSink) MarshalJSON() ([]byte, error)

type LogsDeleteCall Uses

type LogsDeleteCall struct {
    // contains filtered or unexported fields
}

func (*LogsDeleteCall) Context Uses

func (c *LogsDeleteCall) Context(ctx context.Context) *LogsDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*LogsDeleteCall) Do Uses

func (c *LogsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)

Do executes the "logging.logs.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LogsDeleteCall) Fields Uses

func (c *LogsDeleteCall) Fields(s ...googleapi.Field) *LogsDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LogsDeleteCall) Header Uses

func (c *LogsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type LogsListCall Uses

type LogsListCall struct {
    // contains filtered or unexported fields
}

func (*LogsListCall) Context Uses

func (c *LogsListCall) Context(ctx context.Context) *LogsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*LogsListCall) Do Uses

func (c *LogsListCall) Do(opts ...googleapi.CallOption) (*ListLogsResponse, error)

Do executes the "logging.logs.list" call. Exactly one of *ListLogsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListLogsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LogsListCall) Fields Uses

func (c *LogsListCall) Fields(s ...googleapi.Field) *LogsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LogsListCall) Header Uses

func (c *LogsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*LogsListCall) IfNoneMatch Uses

func (c *LogsListCall) IfNoneMatch(entityTag string) *LogsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*LogsListCall) PageSize Uses

func (c *LogsListCall) PageSize(pageSize int64) *LogsListCall

PageSize sets the optional parameter "pageSize": 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.

func (*LogsListCall) PageToken Uses

func (c *LogsListCall) PageToken(pageToken string) *LogsListCall

PageToken sets the optional parameter "pageToken": 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.

func (*LogsListCall) Pages Uses

func (c *LogsListCall) Pages(ctx context.Context, f func(*ListLogsResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

func (*LogsListCall) ResourceNames Uses

func (c *LogsListCall) ResourceNames(resourceNames ...string) *LogsListCall

ResourceNames sets the optional parameter "resourceNames": Required for Logging Data Model V2. The resource name that owns the logs: "projects/PROJECT_ID" "organizations/ORGANIZATION_ID" "billingAccounts/BILLING_ACCOUNT_ID" "folders/FOLDER_ID"

type LogsService Uses

type LogsService struct {
    // contains filtered or unexported fields
}

func NewLogsService Uses

func NewLogsService(s *Service) *LogsService

func (*LogsService) Delete Uses

func (r *LogsService) Delete(logName string) *LogsDeleteCall

Delete: 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.

func (*LogsService) List Uses

func (r *LogsService) List(parent string) *LogsListCall

List: Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.

type MetricDescriptor Uses

type MetricDescriptor struct {
    // Description: A detailed description of the metric, which can be used
    // in documentation.
    Description string `json:"description,omitempty"`

    // DisplayName: A concise name for the metric, which can be displayed in
    // user interfaces. Use sentence case without an ending period, for
    // example "Request count". This field is optional but it is recommended
    // to be set for any metrics associated with user-visible concepts, such
    // as Quota.
    DisplayName string `json:"displayName,omitempty"`

    // Labels: The set of labels that can be used to describe a specific
    // instance of this metric type. For example, the
    // appengine.googleapis.com/http/server/response_latencies metric type
    // has a label for the HTTP response code, response_code, so you can
    // look at latencies for successful responses or just for responses that
    // failed.
    Labels []*LabelDescriptor `json:"labels,omitempty"`

    // LaunchStage: Optional. The launch stage of the metric definition.
    //
    // Possible values:
    //   "LAUNCH_STAGE_UNSPECIFIED" - Do not use this default value.
    //   "EARLY_ACCESS" - Early Access features are limited to a closed
    // group of testers. To use these features, you must sign up in advance
    // and sign a Trusted Tester agreement (which includes confidentiality
    // provisions). These features may be unstable, changed in
    // backward-incompatible ways, and are not guaranteed to be released.
    //   "ALPHA" - Alpha is a limited availability test for releases before
    // they are cleared for widespread use. By Alpha, all significant design
    // issues are resolved and we are in the process of verifying
    // functionality. Alpha customers need to apply for access, agree to
    // applicable terms, and have their projects whitelisted. Alpha releases
    // don’t have to be feature complete, no SLAs are provided, and there
    // are no technical support obligations, but they will be far enough
    // along that customers can actually use them in test environments or
    // for limited-use tests -- just like they would in normal production
    // cases.
    //   "BETA" - Beta is the point at which we are ready to open a release
    // for any customer to use. There are no SLA or technical support
    // obligations in a Beta release. Products will be complete from a
    // feature perspective, but may have some open outstanding issues. Beta
    // releases are suitable for limited production use cases.
    //   "GA" - GA features are open to all developers and are considered
    // stable and fully qualified for production use.
    //   "DEPRECATED" - Deprecated features are scheduled to be shut down
    // and removed. For more information, see the “Deprecation Policy”
    // section of our Terms of Service (https://cloud.google.com/terms/) and
    // the Google Cloud Platform Subject to the Deprecation Policy
    // (https://cloud.google.com/terms/deprecation) documentation.
    LaunchStage string `json:"launchStage,omitempty"`

    // Metadata: Optional. Metadata which can be used to guide usage of the
    // metric.
    Metadata *MetricDescriptorMetadata `json:"metadata,omitempty"`

    // MetricKind: Whether the metric records instantaneous values, changes
    // to a value, etc. Some combinations of metric_kind and value_type
    // might not be supported.
    //
    // Possible values:
    //   "METRIC_KIND_UNSPECIFIED" - Do not use this default value.
    //   "GAUGE" - An instantaneous measurement of a value.
    //   "DELTA" - The change in a value during a time interval.
    //   "CUMULATIVE" - A value accumulated over a time interval. Cumulative
    // measurements in a time series should have the same start time and
    // increasing end times, until an event resets the cumulative value to
    // zero and sets a new start time for the following points.
    MetricKind string `json:"metricKind,omitempty"`

    // Name: The resource name of the metric descriptor.
    Name string `json:"name,omitempty"`

    // Type: The metric type, including its DNS name prefix. The type is not
    // URL-encoded. All user-defined metric types have the DNS name
    // custom.googleapis.com or external.googleapis.com. Metric types should
    // use a natural hierarchical grouping. For
    // example:
    // "custom.googleapis.com/invoice/paid/amount"
    // "external.googlea
    // pis.com/prometheus/up"
    // "appengine.googleapis.com/http/server/response_
    // latencies"
    //
    Type string `json:"type,omitempty"`

    // Unit: The unit in which the metric value is reported. It is only
    // applicable if the value_type is INT64, DOUBLE, or DISTRIBUTION. The
    // supported units are a subset of The Unified Code for Units of Measure
    // (http://unitsofmeasure.org/ucum.html) standard:Basic units (UNIT)
    // bit bit
    // By byte
    // s second
    // min minute
    // h hour
    // d dayPrefixes (PREFIX)
    // k kilo (10**3)
    // M mega (10**6)
    // G giga (10**9)
    // T tera (10**12)
    // P peta (10**15)
    // E exa (10**18)
    // Z zetta (10**21)
    // Y yotta (10**24)
    // m milli (10**-3)
    // u micro (10**-6)
    // n nano (10**-9)
    // p pico (10**-12)
    // f femto (10**-15)
    // a atto (10**-18)
    // z zepto (10**-21)
    // y yocto (10**-24)
    // Ki kibi (2**10)
    // Mi mebi (2**20)
    // Gi gibi (2**30)
    // Ti tebi (2**40)GrammarThe grammar also includes these connectors:
    // / division (as an infix operator, e.g. 1/s).
    // . multiplication (as an infix operator, e.g. GBy.d)The grammar for a
    // unit is as follows:
    // Expression = Component { "." Component } { "/" Component }
    // ;
    //
    // Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
    //           | Annotation
    //           | "1"
    //           ;
    //
    // Annotation = "{" NAME "}" ;
    // Notes:
    // Annotation is just a comment if it follows a UNIT and is  equivalent
    // to 1 if it is used alone. For examples,  {requests}/s == 1/s,
    // By{transmitted}/s == By/s.
    // NAME is a sequence of non-blank printable ASCII characters not
    // containing '{' or '}'.
    // 1 represents dimensionless value 1, such as in 1/s.
    // % represents dimensionless value 1/100, and annotates values giving
    // a percentage.
    Unit string `json:"unit,omitempty"`

    // ValueType: Whether the measurement is an integer, a floating-point
    // number, etc. Some combinations of metric_kind and value_type might
    // not be supported.
    //
    // Possible values:
    //   "VALUE_TYPE_UNSPECIFIED" - Do not use this default value.
    //   "BOOL" - The value is a boolean. This value type can be used only
    // if the metric kind is GAUGE.
    //   "INT64" - The value is a signed 64-bit integer.
    //   "DOUBLE" - The value is a double precision floating point number.
    //   "STRING" - The value is a text string. This value type can be used
    // only if the metric kind is GAUGE.
    //   "DISTRIBUTION" - The value is a Distribution.
    //   "MONEY" - The value is money.
    ValueType string `json:"valueType,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Description") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Description") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

MetricDescriptor: Defines a metric type and its schema. Once a metric descriptor is created, deleting or altering it stops data collection and makes the metric type's existing data unusable.

func (*MetricDescriptor) MarshalJSON Uses

func (s *MetricDescriptor) MarshalJSON() ([]byte, error)

type MetricDescriptorMetadata Uses

type MetricDescriptorMetadata struct {
    // IngestDelay: The delay of data points caused by ingestion. Data
    // points older than this age are guaranteed to be ingested and
    // available to be read, excluding data loss due to errors.
    IngestDelay string `json:"ingestDelay,omitempty"`

    // LaunchStage: Deprecated. Please use the MetricDescriptor.launch_stage
    // instead. The launch stage of the metric definition.
    //
    // Possible values:
    //   "LAUNCH_STAGE_UNSPECIFIED" - Do not use this default value.
    //   "EARLY_ACCESS" - Early Access features are limited to a closed
    // group of testers. To use these features, you must sign up in advance
    // and sign a Trusted Tester agreement (which includes confidentiality
    // provisions). These features may be unstable, changed in
    // backward-incompatible ways, and are not guaranteed to be released.
    //   "ALPHA" - Alpha is a limited availability test for releases before
    // they are cleared for widespread use. By Alpha, all significant design
    // issues are resolved and we are in the process of verifying
    // functionality. Alpha customers need to apply for access, agree to
    // applicable terms, and have their projects whitelisted. Alpha releases
    // don’t have to be feature complete, no SLAs are provided, and there
    // are no technical support obligations, but they will be far enough
    // along that customers can actually use them in test environments or
    // for limited-use tests -- just like they would in normal production
    // cases.
    //   "BETA" - Beta is the point at which we are ready to open a release
    // for any customer to use. There are no SLA or technical support
    // obligations in a Beta release. Products will be complete from a
    // feature perspective, but may have some open outstanding issues. Beta
    // releases are suitable for limited production use cases.
    //   "GA" - GA features are open to all developers and are considered
    // stable and fully qualified for production use.
    //   "DEPRECATED" - Deprecated features are scheduled to be shut down
    // and removed. For more information, see the “Deprecation Policy”
    // section of our Terms of Service (https://cloud.google.com/terms/) and
    // the Google Cloud Platform Subject to the Deprecation Policy
    // (https://cloud.google.com/terms/deprecation) documentation.
    LaunchStage string `json:"launchStage,omitempty"`

    // SamplePeriod: The sampling period of metric data points. For metrics
    // which are written periodically, consecutive data points are stored at
    // this time interval, excluding data loss due to errors. Metrics with a
    // higher granularity have a smaller sampling period.
    SamplePeriod string `json:"samplePeriod,omitempty"`

    // ForceSendFields is a list of field names (e.g. "IngestDelay") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "IngestDelay") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

MetricDescriptorMetadata: Additional annotations that can be used to guide the usage of a metric.

func (*MetricDescriptorMetadata) MarshalJSON Uses

func (s *MetricDescriptorMetadata) MarshalJSON() ([]byte, error)

type MonitoredResource Uses

type MonitoredResource struct {
    // Labels: Required. Values for all of the labels listed in the
    // associated monitored resource descriptor. For example, Compute Engine
    // VM instances use the labels "project_id", "instance_id", and "zone".
    Labels map[string]string `json:"labels,omitempty"`

    // Type: Required. The monitored resource type. This field must match
    // the type field of a MonitoredResourceDescriptor object. For example,
    // the type of a Compute Engine VM instance is gce_instance.
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Labels") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Labels") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

MonitoredResource: An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource's schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "zone": { "type": "gce_instance",

"labels": { "instance_id": "12345678901234",
            "zone": "us-central1-a" }}

func (*MonitoredResource) MarshalJSON Uses

func (s *MonitoredResource) MarshalJSON() ([]byte, error)

type MonitoredResourceDescriptor Uses

type MonitoredResourceDescriptor struct {
    // Description: Optional. A detailed description of the monitored
    // resource type that might be used in documentation.
    Description string `json:"description,omitempty"`

    // DisplayName: Optional. A concise name for the monitored resource type
    // that might be displayed in user interfaces. It should be a Title
    // Cased Noun Phrase, without any article or other determiners. For
    // example, "Google Cloud SQL Database".
    DisplayName string `json:"displayName,omitempty"`

    // Labels: Required. A set of labels used to describe instances of this
    // monitored resource type. For example, an individual Google Cloud SQL
    // database is identified by values for the labels "database_id" and
    // "zone".
    Labels []*LabelDescriptor `json:"labels,omitempty"`

    // LaunchStage: Optional. The launch stage of the monitored resource
    // definition.
    //
    // Possible values:
    //   "LAUNCH_STAGE_UNSPECIFIED" - Do not use this default value.
    //   "EARLY_ACCESS" - Early Access features are limited to a closed
    // group of testers. To use these features, you must sign up in advance
    // and sign a Trusted Tester agreement (which includes confidentiality
    // provisions). These features may be unstable, changed in
    // backward-incompatible ways, and are not guaranteed to be released.
    //   "ALPHA" - Alpha is a limited availability test for releases before
    // they are cleared for widespread use. By Alpha, all significant design
    // issues are resolved and we are in the process of verifying
    // functionality. Alpha customers need to apply for access, agree to
    // applicable terms, and have their projects whitelisted. Alpha releases
    // don’t have to be feature complete, no SLAs are provided, and there
    // are no technical support obligations, but they will be far enough
    // along that customers can actually use them in test environments or
    // for limited-use tests -- just like they would in normal production
    // cases.
    //   "BETA" - Beta is the point at which we are ready to open a release
    // for any customer to use. There are no SLA or technical support
    // obligations in a Beta release. Products will be complete from a
    // feature perspective, but may have some open outstanding issues. Beta
    // releases are suitable for limited production use cases.
    //   "GA" - GA features are open to all developers and are considered
    // stable and fully qualified for production use.
    //   "DEPRECATED" - Deprecated features are scheduled to be shut down
    // and removed. For more information, see the “Deprecation Policy”
    // section of our Terms of Service (https://cloud.google.com/terms/) and
    // the Google Cloud Platform Subject to the Deprecation Policy
    // (https://cloud.google.com/terms/deprecation) documentation.
    LaunchStage string `json:"launchStage,omitempty"`

    // Name: Optional. The resource name of the monitored resource
    // descriptor:
    // "projects/{project_id}/monitoredResourceDescriptors/{type}" where
    // {type} is the value of the type field in this object and {project_id}
    // is a project ID that provides API-specific context for accessing the
    // type. APIs that do not use project information can use the resource
    // name format "monitoredResourceDescriptors/{type}".
    Name string `json:"name,omitempty"`

    // Type: Required. The monitored resource type. For example, the type
    // "cloudsql_database" represents databases in Google Cloud SQL. The
    // maximum length of this value is 256 characters.
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Description") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Description") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

MonitoredResourceDescriptor: An object that describes the schema of a MonitoredResource object using a type name and a set of labels. For example, the monitored resource descriptor for Google Compute Engine VM instances has a type of "gce_instance" and specifies the use of the labels "instance_id" and "zone" to identify particular VM instances.Different APIs can support different monitored resource types. APIs generally provide a list method that returns the monitored resource descriptors used by the API.

func (*MonitoredResourceDescriptor) MarshalJSON Uses

func (s *MonitoredResourceDescriptor) MarshalJSON() ([]byte, error)

type MonitoredResourceDescriptorsListCall Uses

type MonitoredResourceDescriptorsListCall struct {
    // contains filtered or unexported fields
}

func (*MonitoredResourceDescriptorsListCall) Context Uses

func (c *MonitoredResourceDescriptorsListCall) Context(ctx context.Context) *MonitoredResourceDescriptorsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*MonitoredResourceDescriptorsListCall) Do Uses

func (c *MonitoredResourceDescriptorsListCall) Do(opts ...googleapi.CallOption) (*ListMonitoredResourceDescriptorsResponse, error)

Do executes the "logging.monitoredResourceDescriptors.list" call. Exactly one of *ListMonitoredResourceDescriptorsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListMonitoredResourceDescriptorsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*MonitoredResourceDescriptorsListCall) Fields Uses

func (c *MonitoredResourceDescriptorsListCall) Fields(s ...googleapi.Field) *MonitoredResourceDescriptorsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*MonitoredResourceDescriptorsListCall) Header Uses

func (c *MonitoredResourceDescriptorsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*MonitoredResourceDescriptorsListCall) IfNoneMatch Uses

func (c *MonitoredResourceDescriptorsListCall) IfNoneMatch(entityTag string) *MonitoredResourceDescriptorsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*MonitoredResourceDescriptorsListCall) PageSize Uses

func (c *MonitoredResourceDescriptorsListCall) PageSize(pageSize int64) *MonitoredResourceDescriptorsListCall

PageSize sets the optional parameter "pageSize": 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.

func (*MonitoredResourceDescriptorsListCall) PageToken Uses

func (c *MonitoredResourceDescriptorsListCall) PageToken(pageToken string) *MonitoredResourceDescriptorsListCall

PageToken sets the optional parameter "pageToken": 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.

func (*MonitoredResourceDescriptorsListCall) Pages Uses

func (c *MonitoredResourceDescriptorsListCall) Pages(ctx context.Context, f func(*ListMonitoredResourceDescriptorsResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type MonitoredResourceDescriptorsService Uses

type MonitoredResourceDescriptorsService struct {
    // contains filtered or unexported fields
}

func NewMonitoredResourceDescriptorsService Uses

func NewMonitoredResourceDescriptorsService(s *Service) *MonitoredResourceDescriptorsService

func (*MonitoredResourceDescriptorsService) List Uses

func (r *MonitoredResourceDescriptorsService) List() *MonitoredResourceDescriptorsListCall

List: Lists the descriptors for monitored resource types used by Logging.

type MonitoredResourceMetadata Uses

type MonitoredResourceMetadata struct {
    // SystemLabels: Output only. Values for predefined system metadata
    // labels. System labels are a kind of metadata extracted by Google,
    // including "machine_image", "vpc", "subnet_id", "security_group",
    // "name", etc. System label values can be only strings, Boolean values,
    // or a list of strings. For example:
    // { "name": "my-test-instance",
    //   "security_group": ["a", "b", "c"],
    //   "spot_instance": false }
    //
    SystemLabels googleapi.RawMessage `json:"systemLabels,omitempty"`

    // UserLabels: Output only. A map of user-defined metadata labels.
    UserLabels map[string]string `json:"userLabels,omitempty"`

    // ForceSendFields is a list of field names (e.g. "SystemLabels") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "SystemLabels") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

MonitoredResourceMetadata: Auxiliary metadata for a MonitoredResource object. MonitoredResource objects contain the minimum set of information to uniquely identify a monitored resource instance. There is some other useful auxiliary metadata. Monitoring and Logging use an ingestion pipeline to extract metadata for cloud resources of all types, and store the metadata in this message.

func (*MonitoredResourceMetadata) MarshalJSON Uses

func (s *MonitoredResourceMetadata) MarshalJSON() ([]byte, error)

type OrganizationsExclusionsCreateCall Uses

type OrganizationsExclusionsCreateCall struct {
    // contains filtered or unexported fields
}

func (*OrganizationsExclusionsCreateCall) Context Uses

func (c *OrganizationsExclusionsCreateCall) Context(ctx context.Context) *OrganizationsExclusionsCreateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OrganizationsExclusionsCreateCall) Do Uses

func (c *OrganizationsExclusionsCreateCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error)

Do executes the "logging.organizations.exclusions.create" call. Exactly one of *LogExclusion or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogExclusion.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OrganizationsExclusionsCreateCall) Fields Uses

func (c *OrganizationsExclusionsCreateCall) Fields(s ...googleapi.Field) *OrganizationsExclusionsCreateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrganizationsExclusionsCreateCall) Header Uses

func (c *OrganizationsExclusionsCreateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type OrganizationsExclusionsDeleteCall Uses

type OrganizationsExclusionsDeleteCall struct {
    // contains filtered or unexported fields
}

func (*OrganizationsExclusionsDeleteCall) Context Uses

func (c *OrganizationsExclusionsDeleteCall) Context(ctx context.Context) *OrganizationsExclusionsDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OrganizationsExclusionsDeleteCall) Do Uses

func (c *OrganizationsExclusionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)

Do executes the "logging.organizations.exclusions.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OrganizationsExclusionsDeleteCall) Fields Uses

func (c *OrganizationsExclusionsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsExclusionsDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrganizationsExclusionsDeleteCall) Header Uses

func (c *OrganizationsExclusionsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type OrganizationsExclusionsGetCall Uses

type OrganizationsExclusionsGetCall struct {
    // contains filtered or unexported fields
}

func (*OrganizationsExclusionsGetCall) Context Uses

func (c *OrganizationsExclusionsGetCall) Context(ctx context.Context) *OrganizationsExclusionsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OrganizationsExclusionsGetCall) Do Uses

func (c *OrganizationsExclusionsGetCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error)

Do executes the "logging.organizations.exclusions.get" call. Exactly one of *LogExclusion or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogExclusion.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OrganizationsExclusionsGetCall) Fields Uses

func (c *OrganizationsExclusionsGetCall) Fields(s ...googleapi.Field) *OrganizationsExclusionsGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrganizationsExclusionsGetCall) Header Uses

func (c *OrganizationsExclusionsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*OrganizationsExclusionsGetCall) IfNoneMatch Uses

func (c *OrganizationsExclusionsGetCall) IfNoneMatch(entityTag string) *OrganizationsExclusionsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type OrganizationsExclusionsListCall Uses

type OrganizationsExclusionsListCall struct {
    // contains filtered or unexported fields
}

func (*OrganizationsExclusionsListCall) Context Uses

func (c *OrganizationsExclusionsListCall) Context(ctx context.Context) *OrganizationsExclusionsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OrganizationsExclusionsListCall) Do Uses

func (c *OrganizationsExclusionsListCall) Do(opts ...googleapi.CallOption) (*ListExclusionsResponse, error)

Do executes the "logging.organizations.exclusions.list" call. Exactly one of *ListExclusionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListExclusionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OrganizationsExclusionsListCall) Fields Uses

func (c *OrganizationsExclusionsListCall) Fields(s ...googleapi.Field) *OrganizationsExclusionsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrganizationsExclusionsListCall) Header Uses

func (c *OrganizationsExclusionsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*OrganizationsExclusionsListCall) IfNoneMatch Uses

func (c *OrganizationsExclusionsListCall) IfNoneMatch(entityTag string) *OrganizationsExclusionsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*OrganizationsExclusionsListCall) PageSize Uses

func (c *OrganizationsExclusionsListCall) PageSize(pageSize int64) *OrganizationsExclusionsListCall

PageSize sets the optional parameter "pageSize": 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.

func (*OrganizationsExclusionsListCall) PageToken Uses

func (c *OrganizationsExclusionsListCall) PageToken(pageToken string) *OrganizationsExclusionsListCall

PageToken sets the optional parameter "pageToken": 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.

func (*OrganizationsExclusionsListCall) Pages Uses

func (c *OrganizationsExclusionsListCall) Pages(ctx context.Context, f func(*ListExclusionsResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type OrganizationsExclusionsPatchCall Uses

type OrganizationsExclusionsPatchCall struct {
    // contains filtered or unexported fields
}

func (*OrganizationsExclusionsPatchCall) Context Uses

func (c *OrganizationsExclusionsPatchCall) Context(ctx context.Context) *OrganizationsExclusionsPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OrganizationsExclusionsPatchCall) Do Uses

func (c *OrganizationsExclusionsPatchCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error)

Do executes the "logging.organizations.exclusions.patch" call. Exactly one of *LogExclusion or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogExclusion.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OrganizationsExclusionsPatchCall) Fields Uses

func (c *OrganizationsExclusionsPatchCall) Fields(s ...googleapi.Field) *OrganizationsExclusionsPatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrganizationsExclusionsPatchCall) Header Uses

func (c *OrganizationsExclusionsPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*OrganizationsExclusionsPatchCall) UpdateMask Uses

func (c *OrganizationsExclusionsPatchCall) UpdateMask(updateMask string) *OrganizationsExclusionsPatchCall

UpdateMask sets the optional parameter "updateMask": Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the 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".

type OrganizationsExclusionsService Uses

type OrganizationsExclusionsService struct {
    // contains filtered or unexported fields
}

func NewOrganizationsExclusionsService Uses

func NewOrganizationsExclusionsService(s *Service) *OrganizationsExclusionsService

func (*OrganizationsExclusionsService) Create Uses

func (r *OrganizationsExclusionsService) Create(parent string, logexclusion *LogExclusion) *OrganizationsExclusionsCreateCall

Create: 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.

func (*OrganizationsExclusionsService) Delete Uses

func (r *OrganizationsExclusionsService) Delete(name string) *OrganizationsExclusionsDeleteCall

Delete: Deletes an exclusion.

func (*OrganizationsExclusionsService) Get Uses

func (r *OrganizationsExclusionsService) Get(name string) *OrganizationsExclusionsGetCall

Get: Gets the description of an exclusion.

func (*OrganizationsExclusionsService) List Uses

func (r *OrganizationsExclusionsService) List(parent string) *OrganizationsExclusionsListCall

List: Lists all the exclusions in a parent resource.

func (*OrganizationsExclusionsService) Patch Uses

func (r *OrganizationsExclusionsService) Patch(name string, logexclusion *LogExclusion) *OrganizationsExclusionsPatchCall

Patch: Changes one or more properties of an existing exclusion.

type OrganizationsLogsDeleteCall Uses

type OrganizationsLogsDeleteCall struct {
    // contains filtered or unexported fields
}

func (*OrganizationsLogsDeleteCall) Context Uses

func (c *OrganizationsLogsDeleteCall) Context(ctx context.Context) *OrganizationsLogsDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OrganizationsLogsDeleteCall) Do Uses

func (c *OrganizationsLogsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)

Do executes the "logging.organizations.logs.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OrganizationsLogsDeleteCall) Fields Uses

func (c *OrganizationsLogsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLogsDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrganizationsLogsDeleteCall) Header Uses

func (c *OrganizationsLogsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type OrganizationsLogsListCall Uses

type OrganizationsLogsListCall struct {
    // contains filtered or unexported fields
}

func (*OrganizationsLogsListCall) Context Uses

func (c *OrganizationsLogsListCall) Context(ctx context.Context) *OrganizationsLogsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OrganizationsLogsListCall) Do Uses

func (c *OrganizationsLogsListCall) Do(opts ...googleapi.CallOption) (*ListLogsResponse, error)

Do executes the "logging.organizations.logs.list" call. Exactly one of *ListLogsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListLogsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OrganizationsLogsListCall) Fields Uses

func (c *OrganizationsLogsListCall) Fields(s ...googleapi.Field) *OrganizationsLogsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrganizationsLogsListCall) Header Uses

func (c *OrganizationsLogsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*OrganizationsLogsListCall) IfNoneMatch Uses

func (c *OrganizationsLogsListCall) IfNoneMatch(entityTag string) *OrganizationsLogsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*OrganizationsLogsListCall) PageSize Uses

func (c *OrganizationsLogsListCall) PageSize(pageSize int64) *OrganizationsLogsListCall

PageSize sets the optional parameter "pageSize": 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.

func (*OrganizationsLogsListCall) PageToken Uses

func (c *OrganizationsLogsListCall) PageToken(pageToken string) *OrganizationsLogsListCall

PageToken sets the optional parameter "pageToken": 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.

func (*OrganizationsLogsListCall) Pages Uses

func (c *OrganizationsLogsListCall) Pages(ctx context.Context, f func(*ListLogsResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

func (*OrganizationsLogsListCall) ResourceNames Uses

func (c *OrganizationsLogsListCall) ResourceNames(resourceNames ...string) *OrganizationsLogsListCall

ResourceNames sets the optional parameter "resourceNames": Required for Logging Data Model V2. The resource name that owns the logs: "projects/PROJECT_ID" "organizations/ORGANIZATION_ID" "billingAccounts/BILLING_ACCOUNT_ID" "folders/FOLDER_ID"

type OrganizationsLogsService Uses

type OrganizationsLogsService struct {
    // contains filtered or unexported fields
}

func NewOrganizationsLogsService Uses

func NewOrganizationsLogsService(s *Service) *OrganizationsLogsService

func (*OrganizationsLogsService) Delete Uses

func (r *OrganizationsLogsService) Delete(logName string) *OrganizationsLogsDeleteCall

Delete: 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.

func (*OrganizationsLogsService) List Uses

func (r *OrganizationsLogsService) List(parent string) *OrganizationsLogsListCall

List: Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.

type OrganizationsService Uses

type OrganizationsService struct {
    Exclusions *OrganizationsExclusionsService

    Logs *OrganizationsLogsService

    Sinks *OrganizationsSinksService
    // contains filtered or unexported fields
}

func NewOrganizationsService Uses

func NewOrganizationsService(s *Service) *OrganizationsService

type OrganizationsSinksCreateCall Uses

type OrganizationsSinksCreateCall struct {
    // contains filtered or unexported fields
}

func (*OrganizationsSinksCreateCall) Context Uses

func (c *OrganizationsSinksCreateCall) Context(ctx context.Context) *OrganizationsSinksCreateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OrganizationsSinksCreateCall) Do Uses

func (c *OrganizationsSinksCreateCall) Do(opts ...googleapi.CallOption) (*LogSink, error)

Do executes the "logging.organizations.sinks.create" call. Exactly one of *LogSink or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogSink.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OrganizationsSinksCreateCall) Fields Uses

func (c *OrganizationsSinksCreateCall) Fields(s ...googleapi.Field) *OrganizationsSinksCreateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrganizationsSinksCreateCall) Header Uses

func (c *OrganizationsSinksCreateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*OrganizationsSinksCreateCall) UniqueWriterIdentity Uses

func (c *OrganizationsSinksCreateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *OrganizationsSinksCreateCall

UniqueWriterIdentity sets the optional parameter "uniqueWriterIdentity": 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 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.

type OrganizationsSinksDeleteCall Uses

type OrganizationsSinksDeleteCall struct {
    // contains filtered or unexported fields
}

func (*OrganizationsSinksDeleteCall) Context Uses

func (c *OrganizationsSinksDeleteCall) Context(ctx context.Context) *OrganizationsSinksDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OrganizationsSinksDeleteCall) Do Uses

func (c *OrganizationsSinksDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)

Do executes the "logging.organizations.sinks.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OrganizationsSinksDeleteCall) Fields Uses

func (c *OrganizationsSinksDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSinksDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrganizationsSinksDeleteCall) Header Uses

func (c *OrganizationsSinksDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type OrganizationsSinksGetCall Uses

type OrganizationsSinksGetCall struct {
    // contains filtered or unexported fields
}

func (*OrganizationsSinksGetCall) Context Uses

func (c *OrganizationsSinksGetCall) Context(ctx context.Context) *OrganizationsSinksGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OrganizationsSinksGetCall) Do Uses

func (c *OrganizationsSinksGetCall) Do(opts ...googleapi.CallOption) (*LogSink, error)

Do executes the "logging.organizations.sinks.get" call. Exactly one of *LogSink or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogSink.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OrganizationsSinksGetCall) Fields Uses

func (c *OrganizationsSinksGetCall) Fields(s ...googleapi.Field) *OrganizationsSinksGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrganizationsSinksGetCall) Header Uses

func (c *OrganizationsSinksGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*OrganizationsSinksGetCall) IfNoneMatch Uses

func (c *OrganizationsSinksGetCall) IfNoneMatch(entityTag string) *OrganizationsSinksGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type OrganizationsSinksListCall Uses

type OrganizationsSinksListCall struct {
    // contains filtered or unexported fields
}

func (*OrganizationsSinksListCall) Context Uses

func (c *OrganizationsSinksListCall) Context(ctx context.Context) *OrganizationsSinksListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OrganizationsSinksListCall) Do Uses

func (c *OrganizationsSinksListCall) Do(opts ...googleapi.CallOption) (*ListSinksResponse, error)

Do executes the "logging.organizations.sinks.list" call. Exactly one of *ListSinksResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListSinksResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OrganizationsSinksListCall) Fields Uses

func (c *OrganizationsSinksListCall) Fields(s ...googleapi.Field) *OrganizationsSinksListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrganizationsSinksListCall) Header Uses

func (c *OrganizationsSinksListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*OrganizationsSinksListCall) IfNoneMatch Uses

func (c *OrganizationsSinksListCall) IfNoneMatch(entityTag string) *OrganizationsSinksListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*OrganizationsSinksListCall) PageSize Uses

func (c *OrganizationsSinksListCall) PageSize(pageSize int64) *OrganizationsSinksListCall

PageSize sets the optional parameter "pageSize": 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.

func (*OrganizationsSinksListCall) PageToken Uses

func (c *OrganizationsSinksListCall) PageToken(pageToken string) *OrganizationsSinksListCall

PageToken sets the optional parameter "pageToken": 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.

func (*OrganizationsSinksListCall) Pages Uses

func (c *OrganizationsSinksListCall) Pages(ctx context.Context, f func(*ListSinksResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type OrganizationsSinksPatchCall Uses

type OrganizationsSinksPatchCall struct {
    // contains filtered or unexported fields
}

func (*OrganizationsSinksPatchCall) Context Uses

func (c *OrganizationsSinksPatchCall) Context(ctx context.Context) *OrganizationsSinksPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OrganizationsSinksPatchCall) Do Uses

func (c *OrganizationsSinksPatchCall) Do(opts ...googleapi.CallOption) (*LogSink, error)

Do executes the "logging.organizations.sinks.patch" call. Exactly one of *LogSink or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogSink.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OrganizationsSinksPatchCall) Fields Uses

func (c *OrganizationsSinksPatchCall) Fields(s ...googleapi.Field) *OrganizationsSinksPatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrganizationsSinksPatchCall) Header Uses

func (c *OrganizationsSinksPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*OrganizationsSinksPatchCall) UniqueWriterIdentity Uses

func (c *OrganizationsSinksPatchCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *OrganizationsSinksPatchCall

UniqueWriterIdentity sets the optional parameter "uniqueWriterIdentity": See 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.

func (*OrganizationsSinksPatchCall) UpdateMask Uses

func (c *OrganizationsSinksPatchCall) UpdateMask(updateMask string) *OrganizationsSinksPatchCall

UpdateMask sets the optional parameter "updateMask": 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#google.protobuf.FieldMaskExample: updateMask=filter.

type OrganizationsSinksService Uses

type OrganizationsSinksService struct {
    // contains filtered or unexported fields
}

func NewOrganizationsSinksService Uses

func NewOrganizationsSinksService(s *Service) *OrganizationsSinksService

func (*OrganizationsSinksService) Create Uses

func (r *OrganizationsSinksService) Create(parent string, logsink *LogSink) *OrganizationsSinksCreateCall

Create: 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.

func (*OrganizationsSinksService) Delete Uses

func (r *OrganizationsSinksService) Delete(sinkNameid string) *OrganizationsSinksDeleteCall

Delete: Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.

func (*OrganizationsSinksService) Get Uses

func (r *OrganizationsSinksService) Get(sinkName string) *OrganizationsSinksGetCall

Get: Gets a sink.

func (*OrganizationsSinksService) List Uses

func (r *OrganizationsSinksService) List(parent string) *OrganizationsSinksListCall

List: Lists sinks.

func (*OrganizationsSinksService) Patch Uses

func (r *OrganizationsSinksService) Patch(sinkNameid string, logsink *LogSink) *OrganizationsSinksPatchCall

Patch: 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.

func (*OrganizationsSinksService) Update Uses

func (r *OrganizationsSinksService) Update(sinkNameid string, logsink *LogSink) *OrganizationsSinksUpdateCall

Update: 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.

type OrganizationsSinksUpdateCall Uses

type OrganizationsSinksUpdateCall struct {
    // contains filtered or unexported fields
}

func (*OrganizationsSinksUpdateCall) Context Uses

func (c *OrganizationsSinksUpdateCall) Context(ctx context.Context) *OrganizationsSinksUpdateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OrganizationsSinksUpdateCall) Do Uses

func (c *OrganizationsSinksUpdateCall) Do(opts ...googleapi.CallOption) (*LogSink, error)

Do executes the "logging.organizations.sinks.update" call. Exactly one of *LogSink or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogSink.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OrganizationsSinksUpdateCall) Fields Uses

func (c *OrganizationsSinksUpdateCall) Fields(s ...googleapi.Field) *OrganizationsSinksUpdateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrganizationsSinksUpdateCall) Header Uses

func (c *OrganizationsSinksUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*OrganizationsSinksUpdateCall) UniqueWriterIdentity Uses

func (c *OrganizationsSinksUpdateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *OrganizationsSinksUpdateCall

UniqueWriterIdentity sets the optional parameter "uniqueWriterIdentity": See 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.

func (*OrganizationsSinksUpdateCall) UpdateMask Uses

func (c *OrganizationsSinksUpdateCall) UpdateMask(updateMask string) *OrganizationsSinksUpdateCall

UpdateMask sets the optional parameter "updateMask": 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#google.protobuf.FieldMaskExample: updateMask=filter.

type ProjectsExclusionsCreateCall Uses

type ProjectsExclusionsCreateCall struct {
    // contains filtered or unexported fields
}

func (*ProjectsExclusionsCreateCall) Context Uses

func (c *ProjectsExclusionsCreateCall) Context(ctx context.Context) *ProjectsExclusionsCreateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsExclusionsCreateCall) Do Uses

func (c *ProjectsExclusionsCreateCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error)

Do executes the "logging.projects.exclusions.create" call. Exactly one of *LogExclusion or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogExclusion.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsExclusionsCreateCall) Fields Uses

func (c *ProjectsExclusionsCreateCall) Fields(s ...googleapi.Field) *ProjectsExclusionsCreateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsExclusionsCreateCall) Header Uses

func (c *ProjectsExclusionsCreateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ProjectsExclusionsDeleteCall Uses

type ProjectsExclusionsDeleteCall struct {
    // contains filtered or unexported fields
}

func (*ProjectsExclusionsDeleteCall) Context Uses

func (c *ProjectsExclusionsDeleteCall) Context(ctx context.Context) *ProjectsExclusionsDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsExclusionsDeleteCall) Do Uses

func (c *ProjectsExclusionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)

Do executes the "logging.projects.exclusions.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsExclusionsDeleteCall) Fields Uses

func (c *ProjectsExclusionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsExclusionsDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsExclusionsDeleteCall) Header Uses

func (c *ProjectsExclusionsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ProjectsExclusionsGetCall Uses

type ProjectsExclusionsGetCall struct {
    // contains filtered or unexported fields
}

func (*ProjectsExclusionsGetCall) Context Uses

func (c *ProjectsExclusionsGetCall) Context(ctx context.Context) *ProjectsExclusionsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsExclusionsGetCall) Do Uses

func (c *ProjectsExclusionsGetCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error)

Do executes the "logging.projects.exclusions.get" call. Exactly one of *LogExclusion or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogExclusion.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsExclusionsGetCall) Fields Uses

func (c *ProjectsExclusionsGetCall) Fields(s ...googleapi.Field) *ProjectsExclusionsGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsExclusionsGetCall) Header Uses

func (c *ProjectsExclusionsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ProjectsExclusionsGetCall) IfNoneMatch Uses

func (c *ProjectsExclusionsGetCall) IfNoneMatch(entityTag string) *ProjectsExclusionsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ProjectsExclusionsListCall Uses

type ProjectsExclusionsListCall struct {
    // contains filtered or unexported fields
}

func (*ProjectsExclusionsListCall) Context Uses

func (c *ProjectsExclusionsListCall) Context(ctx context.Context) *ProjectsExclusionsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsExclusionsListCall) Do Uses

func (c *ProjectsExclusionsListCall) Do(opts ...googleapi.CallOption) (*ListExclusionsResponse, error)

Do executes the "logging.projects.exclusions.list" call. Exactly one of *ListExclusionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListExclusionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsExclusionsListCall) Fields Uses

func (c *ProjectsExclusionsListCall) Fields(s ...googleapi.Field) *ProjectsExclusionsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsExclusionsListCall) Header Uses

func (c *ProjectsExclusionsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ProjectsExclusionsListCall) IfNoneMatch Uses

func (c *ProjectsExclusionsListCall) IfNoneMatch(entityTag string) *ProjectsExclusionsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ProjectsExclusionsListCall) PageSize Uses

func (c *ProjectsExclusionsListCall) PageSize(pageSize int64) *ProjectsExclusionsListCall

PageSize sets the optional parameter "pageSize": 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.

func (*ProjectsExclusionsListCall) PageToken Uses

func (c *ProjectsExclusionsListCall) PageToken(pageToken string) *ProjectsExclusionsListCall

PageToken sets the optional parameter "pageToken": 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.

func (*ProjectsExclusionsListCall) Pages Uses

func (c *ProjectsExclusionsListCall) Pages(ctx context.Context, f func(*ListExclusionsResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type ProjectsExclusionsPatchCall Uses

type ProjectsExclusionsPatchCall struct {
    // contains filtered or unexported fields
}

func (*ProjectsExclusionsPatchCall) Context Uses

func (c *ProjectsExclusionsPatchCall) Context(ctx context.Context) *ProjectsExclusionsPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsExclusionsPatchCall) Do Uses

func (c *ProjectsExclusionsPatchCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error)

Do executes the "logging.projects.exclusions.patch" call. Exactly one of *LogExclusion or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogExclusion.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsExclusionsPatchCall) Fields Uses

func (c *ProjectsExclusionsPatchCall) Fields(s ...googleapi.Field) *ProjectsExclusionsPatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsExclusionsPatchCall) Header Uses

func (c *ProjectsExclusionsPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ProjectsExclusionsPatchCall) UpdateMask Uses

func (c *ProjectsExclusionsPatchCall) UpdateMask(updateMask string) *ProjectsExclusionsPatchCall

UpdateMask sets the optional parameter "updateMask": Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the 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".

type ProjectsExclusionsService Uses

type ProjectsExclusionsService struct {
    // contains filtered or unexported fields
}

func NewProjectsExclusionsService Uses

func NewProjectsExclusionsService(s *Service) *ProjectsExclusionsService

func (*ProjectsExclusionsService) Create Uses

func (r *ProjectsExclusionsService) Create(parent string, logexclusion *LogExclusion) *ProjectsExclusionsCreateCall

Create: 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.

func (*ProjectsExclusionsService) Delete Uses

func (r *ProjectsExclusionsService) Delete(name string) *ProjectsExclusionsDeleteCall

Delete: Deletes an exclusion.

func (*ProjectsExclusionsService) Get Uses

func (r *ProjectsExclusionsService) Get(name string) *ProjectsExclusionsGetCall

Get: Gets the description of an exclusion.

func (*ProjectsExclusionsService) List Uses

func (r *ProjectsExclusionsService) List(parent string) *ProjectsExclusionsListCall

List: Lists all the exclusions in a parent resource.

func (*ProjectsExclusionsService) Patch Uses

func (r *ProjectsExclusionsService) Patch(name string, logexclusion *LogExclusion) *ProjectsExclusionsPatchCall

Patch: Changes one or more properties of an existing exclusion.

type ProjectsLogsDeleteCall Uses

type ProjectsLogsDeleteCall struct {
    // contains filtered or unexported fields
}

func (*ProjectsLogsDeleteCall) Context Uses

func (c *ProjectsLogsDeleteCall) Context(ctx context.Context) *ProjectsLogsDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLogsDeleteCall) Do Uses

func (c *ProjectsLogsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)

Do executes the "logging.projects.logs.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLogsDeleteCall) Fields Uses

func (c *ProjectsLogsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLogsDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLogsDeleteCall) Header Uses

func (c *ProjectsLogsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ProjectsLogsListCall Uses

type ProjectsLogsListCall struct {
    // contains filtered or unexported fields
}

func (*ProjectsLogsListCall) Context Uses

func (c *ProjectsLogsListCall) Context(ctx context.Context) *ProjectsLogsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsLogsListCall) Do Uses

func (c *ProjectsLogsListCall) Do(opts ...googleapi.CallOption) (*ListLogsResponse, error)

Do executes the "logging.projects.logs.list" call. Exactly one of *ListLogsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListLogsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLogsListCall) Fields Uses

func (c *ProjectsLogsListCall) Fields(s ...googleapi.Field) *ProjectsLogsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLogsListCall) Header Uses

func (c *ProjectsLogsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ProjectsLogsListCall) IfNoneMatch Uses

func (c *ProjectsLogsListCall) IfNoneMatch(entityTag string) *ProjectsLogsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ProjectsLogsListCall) PageSize Uses

func (c *ProjectsLogsListCall) PageSize(pageSize int64) *ProjectsLogsListCall

PageSize sets the optional parameter "pageSize": 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.

func (*ProjectsLogsListCall) PageToken Uses

func (c *ProjectsLogsListCall) PageToken(pageToken string) *ProjectsLogsListCall

PageToken sets the optional parameter "pageToken": 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.

func (*ProjectsLogsListCall) Pages Uses

func (c *ProjectsLogsListCall) Pages(ctx context.Context, f func(*ListLogsResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

func (*ProjectsLogsListCall) ResourceNames Uses

func (c *ProjectsLogsListCall) ResourceNames(resourceNames ...string) *ProjectsLogsListCall

ResourceNames sets the optional parameter "resourceNames": Required for Logging Data Model V2. The resource name that owns the logs: "projects/PROJECT_ID" "organizations/ORGANIZATION_ID" "billingAccounts/BILLING_ACCOUNT_ID" "folders/FOLDER_ID"

type ProjectsLogsService Uses

type ProjectsLogsService struct {
    // contains filtered or unexported fields
}

func NewProjectsLogsService Uses

func NewProjectsLogsService(s *Service) *ProjectsLogsService

func (*ProjectsLogsService) Delete Uses

func (r *ProjectsLogsService) Delete(logName string) *ProjectsLogsDeleteCall

Delete: 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.

func (*ProjectsLogsService) List Uses

func (r *ProjectsLogsService) List(parent string) *ProjectsLogsListCall

List: Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.

type ProjectsMetricsCreateCall Uses

type ProjectsMetricsCreateCall struct {
    // contains filtered or unexported fields
}

func (*ProjectsMetricsCreateCall) Context Uses

func (c *ProjectsMetricsCreateCall) Context(ctx context.Context) *ProjectsMetricsCreateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsMetricsCreateCall) Do Uses

func (c *ProjectsMetricsCreateCall) Do(opts ...googleapi.CallOption) (*LogMetric, error)

Do executes the "logging.projects.metrics.create" call. Exactly one of *LogMetric or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogMetric.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsMetricsCreateCall) Fields Uses

func (c *ProjectsMetricsCreateCall) Fields(s ...googleapi.Field) *ProjectsMetricsCreateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsMetricsCreateCall) Header Uses

func (c *ProjectsMetricsCreateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ProjectsMetricsDeleteCall Uses

type ProjectsMetricsDeleteCall struct {
    // contains filtered or unexported fields
}

func (*ProjectsMetricsDeleteCall) Context Uses

func (c *ProjectsMetricsDeleteCall) Context(ctx context.Context) *ProjectsMetricsDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsMetricsDeleteCall) Do Uses

func (c *ProjectsMetricsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)

Do executes the "logging.projects.metrics.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsMetricsDeleteCall) Fields Uses

func (c *ProjectsMetricsDeleteCall) Fields(s ...googleapi.Field) *ProjectsMetricsDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsMetricsDeleteCall) Header Uses

func (c *ProjectsMetricsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ProjectsMetricsGetCall Uses

type ProjectsMetricsGetCall struct {
    // contains filtered or unexported fields
}

func (*ProjectsMetricsGetCall) Context Uses

func (c *ProjectsMetricsGetCall) Context(ctx context.Context) *ProjectsMetricsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsMetricsGetCall) Do Uses

func (c *ProjectsMetricsGetCall) Do(opts ...googleapi.CallOption) (*LogMetric, error)

Do executes the "logging.projects.metrics.get" call. Exactly one of *LogMetric or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogMetric.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsMetricsGetCall) Fields Uses

func (c *ProjectsMetricsGetCall) Fields(s ...googleapi.Field) *ProjectsMetricsGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsMetricsGetCall) Header Uses

func (c *ProjectsMetricsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ProjectsMetricsGetCall) IfNoneMatch Uses

func (c *ProjectsMetricsGetCall) IfNoneMatch(entityTag string) *ProjectsMetricsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ProjectsMetricsListCall Uses

type ProjectsMetricsListCall struct {
    // contains filtered or unexported fields
}

func (*ProjectsMetricsListCall) Context Uses

func (c *ProjectsMetricsListCall) Context(ctx context.Context) *ProjectsMetricsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsMetricsListCall) Do Uses

func (c *ProjectsMetricsListCall) Do(opts ...googleapi.CallOption) (*ListLogMetricsResponse, error)

Do executes the "logging.projects.metrics.list" call. Exactly one of *ListLogMetricsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListLogMetricsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsMetricsListCall) Fields Uses

func (c *ProjectsMetricsListCall) Fields(s ...googleapi.Field) *ProjectsMetricsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsMetricsListCall) Header Uses

func (c *ProjectsMetricsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ProjectsMetricsListCall) IfNoneMatch Uses

func (c *ProjectsMetricsListCall) IfNoneMatch(entityTag string) *ProjectsMetricsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ProjectsMetricsListCall) PageSize Uses

func (c *ProjectsMetricsListCall) PageSize(pageSize int64) *ProjectsMetricsListCall

PageSize sets the optional parameter "pageSize": 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.

func (*ProjectsMetricsListCall) PageToken Uses

func (c *ProjectsMetricsListCall) PageToken(pageToken string) *ProjectsMetricsListCall

PageToken sets the optional parameter "pageToken": 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.

func (*ProjectsMetricsListCall) Pages Uses

func (c *ProjectsMetricsListCall) Pages(ctx context.Context, f func(*ListLogMetricsResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type ProjectsMetricsService Uses

type ProjectsMetricsService struct {
    // contains filtered or unexported fields
}

func NewProjectsMetricsService Uses

func NewProjectsMetricsService(s *Service) *ProjectsMetricsService

func (*ProjectsMetricsService) Create Uses

func (r *ProjectsMetricsService) Create(parent string, logmetric *LogMetric) *ProjectsMetricsCreateCall

Create: Creates a logs-based metric.

func (*ProjectsMetricsService) Delete Uses

func (r *ProjectsMetricsService) Delete(metricName string) *ProjectsMetricsDeleteCall

Delete: Deletes a logs-based metric.

func (*ProjectsMetricsService) Get Uses

func (r *ProjectsMetricsService) Get(metricName string) *ProjectsMetricsGetCall

Get: Gets a logs-based metric.

func (*ProjectsMetricsService) List Uses

func (r *ProjectsMetricsService) List(parent string) *ProjectsMetricsListCall

List: Lists logs-based metrics.

func (*ProjectsMetricsService) Update Uses

func (r *ProjectsMetricsService) Update(metricName string, logmetric *LogMetric) *ProjectsMetricsUpdateCall

Update: Creates or updates a logs-based metric.

type ProjectsMetricsUpdateCall Uses

type ProjectsMetricsUpdateCall struct {
    // contains filtered or unexported fields
}

func (*ProjectsMetricsUpdateCall) Context Uses

func (c *ProjectsMetricsUpdateCall) Context(ctx context.Context) *ProjectsMetricsUpdateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsMetricsUpdateCall) Do Uses

func (c *ProjectsMetricsUpdateCall) Do(opts ...googleapi.CallOption) (*LogMetric, error)

Do executes the "logging.projects.metrics.update" call. Exactly one of *LogMetric or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogMetric.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsMetricsUpdateCall) Fields Uses

func (c *ProjectsMetricsUpdateCall) Fields(s ...googleapi.Field) *ProjectsMetricsUpdateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsMetricsUpdateCall) Header Uses

func (c *ProjectsMetricsUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ProjectsService Uses

type ProjectsService struct {
    Exclusions *ProjectsExclusionsService

    Logs *ProjectsLogsService

    Metrics *ProjectsMetricsService

    Sinks *ProjectsSinksService
    // contains filtered or unexported fields
}

func NewProjectsService Uses

func NewProjectsService(s *Service) *ProjectsService

type ProjectsSinksCreateCall Uses

type ProjectsSinksCreateCall struct {
    // contains filtered or unexported fields
}

func (*ProjectsSinksCreateCall) Context Uses

func (c *ProjectsSinksCreateCall) Context(ctx context.Context) *ProjectsSinksCreateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsSinksCreateCall) Do Uses

func (c *ProjectsSinksCreateCall) Do(opts ...googleapi.CallOption) (*LogSink, error)

Do executes the "logging.projects.sinks.create" call. Exactly one of *LogSink or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogSink.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsSinksCreateCall) Fields Uses

func (c *ProjectsSinksCreateCall) Fields(s ...googleapi.Field) *ProjectsSinksCreateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsSinksCreateCall) Header Uses

func (c *ProjectsSinksCreateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ProjectsSinksCreateCall) UniqueWriterIdentity Uses

func (c *ProjectsSinksCreateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *ProjectsSinksCreateCall

UniqueWriterIdentity sets the optional parameter "uniqueWriterIdentity": 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 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.

type ProjectsSinksDeleteCall Uses

type ProjectsSinksDeleteCall struct {
    // contains filtered or unexported fields
}

func (*ProjectsSinksDeleteCall) Context Uses

func (c *ProjectsSinksDeleteCall) Context(ctx context.Context) *ProjectsSinksDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsSinksDeleteCall) Do Uses

func (c *ProjectsSinksDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)

Do executes the "logging.projects.sinks.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsSinksDeleteCall) Fields Uses

func (c *ProjectsSinksDeleteCall) Fields(s ...googleapi.Field) *ProjectsSinksDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsSinksDeleteCall) Header Uses

func (c *ProjectsSinksDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ProjectsSinksGetCall Uses

type ProjectsSinksGetCall struct {
    // contains filtered or unexported fields
}

func (*ProjectsSinksGetCall) Context Uses

func (c *ProjectsSinksGetCall) Context(ctx context.Context) *ProjectsSinksGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsSinksGetCall) Do Uses

func (c *ProjectsSinksGetCall) Do(opts ...googleapi.CallOption) (*LogSink, error)

Do executes the "logging.projects.sinks.get" call. Exactly one of *LogSink or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogSink.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsSinksGetCall) Fields Uses

func (c *ProjectsSinksGetCall) Fields(s ...googleapi.Field) *ProjectsSinksGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsSinksGetCall) Header Uses

func (c *ProjectsSinksGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ProjectsSinksGetCall) IfNoneMatch Uses

func (c *ProjectsSinksGetCall) IfNoneMatch(entityTag string) *ProjectsSinksGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ProjectsSinksListCall Uses

type ProjectsSinksListCall struct {
    // contains filtered or unexported fields
}

func (*ProjectsSinksListCall) Context Uses

func (c *ProjectsSinksListCall) Context(ctx context.Context) *ProjectsSinksListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsSinksListCall) Do Uses

func (c *ProjectsSinksListCall) Do(opts ...googleapi.CallOption) (*ListSinksResponse, error)

Do executes the "logging.projects.sinks.list" call. Exactly one of *ListSinksResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListSinksResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsSinksListCall) Fields Uses

func (c *ProjectsSinksListCall) Fields(s ...googleapi.Field) *ProjectsSinksListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsSinksListCall) Header Uses

func (c *ProjectsSinksListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ProjectsSinksListCall) IfNoneMatch Uses

func (c *ProjectsSinksListCall) IfNoneMatch(entityTag string) *ProjectsSinksListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ProjectsSinksListCall) PageSize Uses

func (c *ProjectsSinksListCall) PageSize(pageSize int64) *ProjectsSinksListCall

PageSize sets the optional parameter "pageSize": 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.

func (*ProjectsSinksListCall) PageToken Uses

func (c *ProjectsSinksListCall) PageToken(pageToken string) *ProjectsSinksListCall

PageToken sets the optional parameter "pageToken": 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.

func (*ProjectsSinksListCall) Pages Uses

func (c *ProjectsSinksListCall) Pages(ctx context.Context, f func(*ListSinksResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type ProjectsSinksPatchCall Uses

type ProjectsSinksPatchCall struct {
    // contains filtered or unexported fields
}

func (*ProjectsSinksPatchCall) Context Uses

func (c *ProjectsSinksPatchCall) Context(ctx context.Context) *ProjectsSinksPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsSinksPatchCall) Do Uses

func (c *ProjectsSinksPatchCall) Do(opts ...googleapi.CallOption) (*LogSink, error)

Do executes the "logging.projects.sinks.patch" call. Exactly one of *LogSink or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogSink.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsSinksPatchCall) Fields Uses

func (c *ProjectsSinksPatchCall) Fields(s ...googleapi.Field) *ProjectsSinksPatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsSinksPatchCall) Header Uses

func (c *ProjectsSinksPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ProjectsSinksPatchCall) UniqueWriterIdentity Uses

func (c *ProjectsSinksPatchCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *ProjectsSinksPatchCall

UniqueWriterIdentity sets the optional parameter "uniqueWriterIdentity": See 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.

func (*ProjectsSinksPatchCall) UpdateMask Uses

func (c *ProjectsSinksPatchCall) UpdateMask(updateMask string) *ProjectsSinksPatchCall

UpdateMask sets the optional parameter "updateMask": 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#google.protobuf.FieldMaskExample: updateMask=filter.

type ProjectsSinksService Uses

type ProjectsSinksService struct {
    // contains filtered or unexported fields
}

func NewProjectsSinksService Uses

func NewProjectsSinksService(s *Service) *ProjectsSinksService

func (*ProjectsSinksService) Create Uses

func (r *ProjectsSinksService) Create(parent string, logsink *LogSink) *ProjectsSinksCreateCall

Create: 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.

func (*ProjectsSinksService) Delete Uses

func (r *ProjectsSinksService) Delete(sinkNameid string) *ProjectsSinksDeleteCall

Delete: Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.

func (*ProjectsSinksService) Get Uses

func (r *ProjectsSinksService) Get(sinkName string) *ProjectsSinksGetCall

Get: Gets a sink.

func (*ProjectsSinksService) List Uses

func (r *ProjectsSinksService) List(parent string) *ProjectsSinksListCall

List: Lists sinks.

func (*ProjectsSinksService) Patch Uses

func (r *ProjectsSinksService) Patch(sinkNameid string, logsink *LogSink) *ProjectsSinksPatchCall

Patch: 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.

func (*ProjectsSinksService) Update Uses

func (r *ProjectsSinksService) Update(sinkNameid string, logsink *LogSink) *ProjectsSinksUpdateCall

Update: 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.

type ProjectsSinksUpdateCall Uses

type ProjectsSinksUpdateCall struct {
    // contains filtered or unexported fields
}

func (*ProjectsSinksUpdateCall) Context Uses

func (c *ProjectsSinksUpdateCall) Context(ctx context.Context) *ProjectsSinksUpdateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsSinksUpdateCall) Do Uses

func (c *ProjectsSinksUpdateCall) Do(opts ...googleapi.CallOption) (*LogSink, error)

Do executes the "logging.projects.sinks.update" call. Exactly one of *LogSink or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogSink.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsSinksUpdateCall) Fields Uses

func (c *ProjectsSinksUpdateCall) Fields(s ...googleapi.Field) *ProjectsSinksUpdateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsSinksUpdateCall) Header Uses

func (c *ProjectsSinksUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ProjectsSinksUpdateCall) UniqueWriterIdentity Uses

func (c *ProjectsSinksUpdateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *ProjectsSinksUpdateCall

UniqueWriterIdentity sets the optional parameter "uniqueWriterIdentity": See 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.

func (*ProjectsSinksUpdateCall) UpdateMask Uses

func (c *ProjectsSinksUpdateCall) UpdateMask(updateMask string) *ProjectsSinksUpdateCall

UpdateMask sets the optional parameter "updateMask": 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#google.protobuf.FieldMaskExample: updateMask=filter.

type RequestLog Uses

type RequestLog struct {
    // AppEngineRelease: App Engine release version.
    AppEngineRelease string `json:"appEngineRelease,omitempty"`

    // AppId: Application that handled this request.
    AppId string `json:"appId,omitempty"`

    // Cost: An indication of the relative cost of serving this request.
    Cost float64 `json:"cost,omitempty"`

    // EndTime: Time when the request finished.
    EndTime string `json:"endTime,omitempty"`

    // Finished: Whether this request is finished or active.
    Finished bool `json:"finished,omitempty"`

    // First: Whether this is the first RequestLog entry for this request.
    // If an active request has several RequestLog entries written to
    // Stackdriver Logging, then this field will be set for one of them.
    First bool `json:"first,omitempty"`

    // Host: Internet host and port number of the resource being requested.
    Host string `json:"host,omitempty"`

    // HttpVersion: HTTP version of request. Example: "HTTP/1.1".
    HttpVersion string `json:"httpVersion,omitempty"`

    // InstanceId: An identifier for the instance that handled the request.
    InstanceId string `json:"instanceId,omitempty"`

    // InstanceIndex: If the instance processing this request belongs to a
    // manually scaled module, then this is the 0-based index of the
    // instance. Otherwise, this value is -1.
    InstanceIndex int64 `json:"instanceIndex,omitempty"`

    // Ip: Origin IP address.
    Ip  string `json:"ip,omitempty"`

    // Latency: Latency of the request.
    Latency string `json:"latency,omitempty"`

    // Line: A list of log lines emitted by the application while serving
    // this request.
    Line []*LogLine `json:"line,omitempty"`

    // MegaCycles: Number of CPU megacycles used to process request.
    MegaCycles int64 `json:"megaCycles,omitempty,string"`

    // Method: Request method. Example: "GET", "HEAD", "PUT", "POST",
    // "DELETE".
    Method string `json:"method,omitempty"`

    // ModuleId: Module of the application that handled this request.
    ModuleId string `json:"moduleId,omitempty"`

    // Nickname: The logged-in user who made the request.Most likely, this
    // is the part of the user's email before the @ sign. The field value is
    // the same for different requests from the same user, but different
    // users can have similar names. This information is also available to
    // the application via the App Engine Users API.This field will be
    // populated starting with App Engine 1.9.21.
    Nickname string `json:"nickname,omitempty"`

    // PendingTime: Time this request spent in the pending request queue.
    PendingTime string `json:"pendingTime,omitempty"`

    // Referrer: Referrer URL of request.
    Referrer string `json:"referrer,omitempty"`

    // RequestId: Globally unique identifier for a request, which is based
    // on the request start time. Request IDs for requests which started
    // later will compare greater as strings than those for requests which
    // started earlier.
    RequestId string `json:"requestId,omitempty"`

    // Resource: Contains the path and query portion of the URL that was
    // requested. For example, if the URL was
    // "http://example.com/app?name=val", the resource would be
    // "/app?name=val". The fragment identifier, which is identified by the
    // # character, is not included.
    Resource string `json:"resource,omitempty"`

    // ResponseSize: Size in bytes sent back to client by request.
    ResponseSize int64 `json:"responseSize,omitempty,string"`

    // SourceReference: Source code for the application that handled this
    // request. There can be more than one source reference per deployed
    // application if source code is distributed among multiple
    // repositories.
    SourceReference []*SourceReference `json:"sourceReference,omitempty"`

    // StartTime: Time when the request started.
    StartTime string `json:"startTime,omitempty"`

    // Status: HTTP response status code. Example: 200, 404.
    Status int64 `json:"status,omitempty"`

    // TaskName: Task name of the request, in the case of an offline
    // request.
    TaskName string `json:"taskName,omitempty"`

    // TaskQueueName: Queue name of the request, in the case of an offline
    // request.
    TaskQueueName string `json:"taskQueueName,omitempty"`

    // TraceId: Stackdriver Trace identifier for this request.
    TraceId string `json:"traceId,omitempty"`

    // TraceSampled: If true, the value in the 'trace_id' field was sampled
    // for storage in a trace backend.
    TraceSampled bool `json:"traceSampled,omitempty"`

    // UrlMapEntry: File or class that handled the request.
    UrlMapEntry string `json:"urlMapEntry,omitempty"`

    // UserAgent: User agent that made the request.
    UserAgent string `json:"userAgent,omitempty"`

    // VersionId: Version of the application that handled this request.
    VersionId string `json:"versionId,omitempty"`

    // WasLoadingRequest: Whether this was a loading request for the
    // instance.
    WasLoadingRequest bool `json:"wasLoadingRequest,omitempty"`

    // ForceSendFields is a list of field names (e.g. "AppEngineRelease") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AppEngineRelease") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

RequestLog: Complete log information about a single HTTP request to an App Engine application.

func (*RequestLog) MarshalJSON Uses

func (s *RequestLog) MarshalJSON() ([]byte, error)

func (*RequestLog) UnmarshalJSON Uses

func (s *RequestLog) UnmarshalJSON(data []byte) error

type Service Uses

type Service struct {
    BasePath  string // API endpoint base URL
    UserAgent string // optional additional User-Agent fragment

    BillingAccounts *BillingAccountsService

    Entries *EntriesService

    Exclusions *ExclusionsService

    Folders *FoldersService

    Logs *LogsService

    MonitoredResourceDescriptors *MonitoredResourceDescriptorsService

    Organizations *OrganizationsService

    Projects *ProjectsService

    Sinks *SinksService
    // contains filtered or unexported fields
}

func New Uses

func New(client *http.Client) (*Service, error)

New creates a new Service. It uses the provided http.Client for requests.

Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.

func NewService Uses

func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error)

NewService creates a new Service.

type SinksCreateCall Uses

type SinksCreateCall struct {
    // contains filtered or unexported fields
}

func (*SinksCreateCall) Context Uses

func (c *SinksCreateCall) Context(ctx context.Context) *SinksCreateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*SinksCreateCall) Do Uses

func (c *SinksCreateCall) Do(opts ...googleapi.CallOption) (*LogSink, error)

Do executes the "logging.sinks.create" call. Exactly one of *LogSink or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogSink.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*SinksCreateCall) Fields Uses

func (c *SinksCreateCall) Fields(s ...googleapi.Field) *SinksCreateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*SinksCreateCall) Header Uses

func (c *SinksCreateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*SinksCreateCall) UniqueWriterIdentity Uses

func (c *SinksCreateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *SinksCreateCall

UniqueWriterIdentity sets the optional parameter "uniqueWriterIdentity": 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 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.

type SinksDeleteCall Uses

type SinksDeleteCall struct {
    // contains filtered or unexported fields
}

func (*SinksDeleteCall) Context Uses

func (c *SinksDeleteCall) Context(ctx context.Context) *SinksDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*SinksDeleteCall) Do Uses

func (c *SinksDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)

Do executes the "logging.sinks.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*SinksDeleteCall) Fields Uses

func (c *SinksDeleteCall) Fields(s ...googleapi.Field) *SinksDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*SinksDeleteCall) Header Uses

func (c *SinksDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type SinksGetCall Uses

type SinksGetCall struct {
    // contains filtered or unexported fields
}

func (*SinksGetCall) Context Uses

func (c *SinksGetCall) Context(ctx context.Context) *SinksGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*SinksGetCall) Do Uses

func (c *SinksGetCall) Do(opts ...googleapi.CallOption) (*LogSink, error)

Do executes the "logging.sinks.get" call. Exactly one of *LogSink or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogSink.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*SinksGetCall) Fields Uses

func (c *SinksGetCall) Fields(s ...googleapi.Field) *SinksGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*SinksGetCall) Header Uses

func (c *SinksGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*SinksGetCall) IfNoneMatch Uses

func (c *SinksGetCall) IfNoneMatch(entityTag string) *SinksGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type SinksListCall Uses

type SinksListCall struct {
    // contains filtered or unexported fields
}

func (*SinksListCall) Context Uses

func (c *SinksListCall) Context(ctx context.Context) *SinksListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*SinksListCall) Do Uses

func (c *SinksListCall) Do(opts ...googleapi.CallOption) (*ListSinksResponse, error)

Do executes the "logging.sinks.list" call. Exactly one of *ListSinksResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListSinksResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*SinksListCall) Fields Uses

func (c *SinksListCall) Fields(s ...googleapi.Field) *SinksListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*SinksListCall) Header Uses

func (c *SinksListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*SinksListCall) IfNoneMatch Uses

func (c *SinksListCall) IfNoneMatch(entityTag string) *SinksListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*SinksListCall) PageSize Uses

func (c *SinksListCall) PageSize(pageSize int64) *SinksListCall

PageSize sets the optional parameter "pageSize": 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.

func (*SinksListCall) PageToken Uses

func (c *SinksListCall) PageToken(pageToken string) *SinksListCall

PageToken sets the optional parameter "pageToken": 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.

func (*SinksListCall) Pages Uses

func (c *SinksListCall) Pages(ctx context.Context, f func(*ListSinksResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type SinksService Uses

type SinksService struct {
    // contains filtered or unexported fields
}

func NewSinksService Uses

func NewSinksService(s *Service) *SinksService

func (*SinksService) Create Uses

func (r *SinksService) Create(parent string, logsink *LogSink) *SinksCreateCall

Create: 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.

func (*SinksService) Delete Uses

func (r *SinksService) Delete(sinkNameid string) *SinksDeleteCall

Delete: Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.

func (*SinksService) Get Uses

func (r *SinksService) Get(sinkName string) *SinksGetCall

Get: Gets a sink.

func (*SinksService) List Uses

func (r *SinksService) List(parent string) *SinksListCall

List: Lists sinks.

func (*SinksService) Update Uses

func (r *SinksService) Update(sinkNameid string, logsink *LogSink) *SinksUpdateCall

Update: 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.

type SinksUpdateCall Uses

type SinksUpdateCall struct {
    // contains filtered or unexported fields
}

func (*SinksUpdateCall) Context Uses

func (c *SinksUpdateCall) Context(ctx context.Context) *SinksUpdateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*SinksUpdateCall) Do Uses

func (c *SinksUpdateCall) Do(opts ...googleapi.CallOption) (*LogSink, error)

Do executes the "logging.sinks.update" call. Exactly one of *LogSink or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LogSink.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*SinksUpdateCall) Fields Uses

func (c *SinksUpdateCall) Fields(s ...googleapi.Field) *SinksUpdateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*SinksUpdateCall) Header Uses

func (c *SinksUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*SinksUpdateCall) UniqueWriterIdentity Uses

func (c *SinksUpdateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *SinksUpdateCall

UniqueWriterIdentity sets the optional parameter "uniqueWriterIdentity": See 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.

func (*SinksUpdateCall) UpdateMask Uses

func (c *SinksUpdateCall) UpdateMask(updateMask string) *SinksUpdateCall

UpdateMask sets the optional parameter "updateMask": 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#google.protobuf.FieldMaskExample: updateMask=filter.

type SourceLocation Uses

type SourceLocation struct {
    // File: Source file name. Depending on the runtime environment, this
    // might be a simple name or a fully-qualified name.
    File string `json:"file,omitempty"`

    // FunctionName: Human-readable name of the function or method being
    // invoked, with optional context such as the class or package name.
    // This information is 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).
    FunctionName string `json:"functionName,omitempty"`

    // Line: Line within the source file.
    Line int64 `json:"line,omitempty,string"`

    // ForceSendFields is a list of field names (e.g. "File") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "File") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SourceLocation: Specifies a location in a source code file.

func (*SourceLocation) MarshalJSON Uses

func (s *SourceLocation) MarshalJSON() ([]byte, error)

type SourceReference Uses

type SourceReference struct {
    // Repository: Optional. A URI string identifying the repository.
    // Example: "https://github.com/GoogleCloudPlatform/kubernetes.git"
    Repository string `json:"repository,omitempty"`

    // RevisionId: The canonical and persistent identifier of the deployed
    // revision. Example (git): "0035781c50ec7aa23385dc841529ce8a4b70db1b"
    RevisionId string `json:"revisionId,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Repository") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Repository") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SourceReference: A reference to a particular snapshot of the source tree used to build and deploy an application.

func (*SourceReference) MarshalJSON Uses

func (s *SourceReference) MarshalJSON() ([]byte, error)

type WriteLogEntriesRequest Uses

type WriteLogEntriesRequest struct {
    // DryRun: 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 `json:"dryRun,omitempty"`

    // Entries: Required. The log entries to send to 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 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 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.To improve
    // throughput and to avoid exceeding the quota limit 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 `json:"entries,omitempty"`

    // Labels: 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.
    Labels map[string]string `json:"labels,omitempty"`

    // LogName: 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/[ORGANI
    // ZATION_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/123456789
    // 0/logs/cloudresourcemanager.googleapis.com%2Factivity"
    // The permission <code>logging.logEntries.create</code> is needed on
    // each project, organization, billing account, or folder that is
    // receiving new log entries, whether the resource is specified in
    // <code>logName</code> or in an individual log entry.
    LogName string `json:"logName,omitempty"`

    // PartialSuccess: 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 `json:"partialSuccess,omitempty"`

    // Resource: 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.
    Resource *MonitoredResource `json:"resource,omitempty"`

    // ForceSendFields is a list of field names (e.g. "DryRun") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DryRun") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

WriteLogEntriesRequest: The parameters to WriteLogEntries.

func (*WriteLogEntriesRequest) MarshalJSON Uses

func (s *WriteLogEntriesRequest) MarshalJSON() ([]byte, error)

type WriteLogEntriesResponse Uses

type WriteLogEntriesResponse struct {
    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`
}

WriteLogEntriesResponse: Result returned from WriteLogEntries. empty

Package logging imports 14 packages (graph) and is imported by 20 packages. Updated 2019-09-16. Refresh now. Tools for package owners.