Documentation ¶
Overview ¶
Package logging provides access to the Stackdriver Logging API.
See https://cloud.google.com/logging/docs/
Usage example:
import "google.golang.org/api/logging/v2" ... loggingService, err := logging.New(oauthHttpClient)
Index ¶
- Constants
- type BillingAccountsLogsDeleteCall
- func (c *BillingAccountsLogsDeleteCall) Context(ctx context.Context) *BillingAccountsLogsDeleteCall
- func (c *BillingAccountsLogsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *BillingAccountsLogsDeleteCall) Fields(s ...googleapi.Field) *BillingAccountsLogsDeleteCall
- func (c *BillingAccountsLogsDeleteCall) Header() http.Header
- type BillingAccountsLogsListCall
- func (c *BillingAccountsLogsListCall) Context(ctx context.Context) *BillingAccountsLogsListCall
- func (c *BillingAccountsLogsListCall) Do(opts ...googleapi.CallOption) (*ListLogsResponse, error)
- func (c *BillingAccountsLogsListCall) Fields(s ...googleapi.Field) *BillingAccountsLogsListCall
- func (c *BillingAccountsLogsListCall) Header() http.Header
- func (c *BillingAccountsLogsListCall) IfNoneMatch(entityTag string) *BillingAccountsLogsListCall
- func (c *BillingAccountsLogsListCall) PageSize(pageSize int64) *BillingAccountsLogsListCall
- func (c *BillingAccountsLogsListCall) PageToken(pageToken string) *BillingAccountsLogsListCall
- func (c *BillingAccountsLogsListCall) Pages(ctx context.Context, f func(*ListLogsResponse) error) error
- type BillingAccountsLogsService
- type BillingAccountsService
- type BillingAccountsSinksCreateCall
- func (c *BillingAccountsSinksCreateCall) Context(ctx context.Context) *BillingAccountsSinksCreateCall
- func (c *BillingAccountsSinksCreateCall) Do(opts ...googleapi.CallOption) (*LogSink, error)
- func (c *BillingAccountsSinksCreateCall) Fields(s ...googleapi.Field) *BillingAccountsSinksCreateCall
- func (c *BillingAccountsSinksCreateCall) Header() http.Header
- func (c *BillingAccountsSinksCreateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *BillingAccountsSinksCreateCall
- type BillingAccountsSinksDeleteCall
- func (c *BillingAccountsSinksDeleteCall) Context(ctx context.Context) *BillingAccountsSinksDeleteCall
- func (c *BillingAccountsSinksDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *BillingAccountsSinksDeleteCall) Fields(s ...googleapi.Field) *BillingAccountsSinksDeleteCall
- func (c *BillingAccountsSinksDeleteCall) Header() http.Header
- type BillingAccountsSinksGetCall
- func (c *BillingAccountsSinksGetCall) Context(ctx context.Context) *BillingAccountsSinksGetCall
- func (c *BillingAccountsSinksGetCall) Do(opts ...googleapi.CallOption) (*LogSink, error)
- func (c *BillingAccountsSinksGetCall) Fields(s ...googleapi.Field) *BillingAccountsSinksGetCall
- func (c *BillingAccountsSinksGetCall) Header() http.Header
- func (c *BillingAccountsSinksGetCall) IfNoneMatch(entityTag string) *BillingAccountsSinksGetCall
- type BillingAccountsSinksListCall
- func (c *BillingAccountsSinksListCall) Context(ctx context.Context) *BillingAccountsSinksListCall
- func (c *BillingAccountsSinksListCall) Do(opts ...googleapi.CallOption) (*ListSinksResponse, error)
- func (c *BillingAccountsSinksListCall) Fields(s ...googleapi.Field) *BillingAccountsSinksListCall
- func (c *BillingAccountsSinksListCall) Header() http.Header
- func (c *BillingAccountsSinksListCall) IfNoneMatch(entityTag string) *BillingAccountsSinksListCall
- func (c *BillingAccountsSinksListCall) PageSize(pageSize int64) *BillingAccountsSinksListCall
- func (c *BillingAccountsSinksListCall) PageToken(pageToken string) *BillingAccountsSinksListCall
- func (c *BillingAccountsSinksListCall) Pages(ctx context.Context, f func(*ListSinksResponse) error) error
- type BillingAccountsSinksService
- func (r *BillingAccountsSinksService) Create(parent string, logsink *LogSink) *BillingAccountsSinksCreateCall
- func (r *BillingAccountsSinksService) Delete(sinkNameid string) *BillingAccountsSinksDeleteCall
- func (r *BillingAccountsSinksService) Get(sinkName string) *BillingAccountsSinksGetCall
- func (r *BillingAccountsSinksService) List(parent string) *BillingAccountsSinksListCall
- func (r *BillingAccountsSinksService) Update(sinkNameid string, logsink *LogSink) *BillingAccountsSinksUpdateCall
- type BillingAccountsSinksUpdateCall
- func (c *BillingAccountsSinksUpdateCall) Context(ctx context.Context) *BillingAccountsSinksUpdateCall
- func (c *BillingAccountsSinksUpdateCall) Do(opts ...googleapi.CallOption) (*LogSink, error)
- func (c *BillingAccountsSinksUpdateCall) Fields(s ...googleapi.Field) *BillingAccountsSinksUpdateCall
- func (c *BillingAccountsSinksUpdateCall) Header() http.Header
- func (c *BillingAccountsSinksUpdateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *BillingAccountsSinksUpdateCall
- type Empty
- type EntriesListCall
- func (c *EntriesListCall) Context(ctx context.Context) *EntriesListCall
- func (c *EntriesListCall) Do(opts ...googleapi.CallOption) (*ListLogEntriesResponse, error)
- func (c *EntriesListCall) Fields(s ...googleapi.Field) *EntriesListCall
- func (c *EntriesListCall) Header() http.Header
- func (c *EntriesListCall) Pages(ctx context.Context, f func(*ListLogEntriesResponse) error) error
- type EntriesService
- type EntriesWriteCall
- type FoldersLogsDeleteCall
- func (c *FoldersLogsDeleteCall) Context(ctx context.Context) *FoldersLogsDeleteCall
- func (c *FoldersLogsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *FoldersLogsDeleteCall) Fields(s ...googleapi.Field) *FoldersLogsDeleteCall
- func (c *FoldersLogsDeleteCall) Header() http.Header
- type FoldersLogsListCall
- func (c *FoldersLogsListCall) Context(ctx context.Context) *FoldersLogsListCall
- func (c *FoldersLogsListCall) Do(opts ...googleapi.CallOption) (*ListLogsResponse, error)
- func (c *FoldersLogsListCall) Fields(s ...googleapi.Field) *FoldersLogsListCall
- func (c *FoldersLogsListCall) Header() http.Header
- func (c *FoldersLogsListCall) IfNoneMatch(entityTag string) *FoldersLogsListCall
- func (c *FoldersLogsListCall) PageSize(pageSize int64) *FoldersLogsListCall
- func (c *FoldersLogsListCall) PageToken(pageToken string) *FoldersLogsListCall
- func (c *FoldersLogsListCall) Pages(ctx context.Context, f func(*ListLogsResponse) error) error
- type FoldersLogsService
- type FoldersService
- type FoldersSinksCreateCall
- func (c *FoldersSinksCreateCall) Context(ctx context.Context) *FoldersSinksCreateCall
- func (c *FoldersSinksCreateCall) Do(opts ...googleapi.CallOption) (*LogSink, error)
- func (c *FoldersSinksCreateCall) Fields(s ...googleapi.Field) *FoldersSinksCreateCall
- func (c *FoldersSinksCreateCall) Header() http.Header
- func (c *FoldersSinksCreateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *FoldersSinksCreateCall
- type FoldersSinksDeleteCall
- func (c *FoldersSinksDeleteCall) Context(ctx context.Context) *FoldersSinksDeleteCall
- func (c *FoldersSinksDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *FoldersSinksDeleteCall) Fields(s ...googleapi.Field) *FoldersSinksDeleteCall
- func (c *FoldersSinksDeleteCall) Header() http.Header
- type FoldersSinksGetCall
- func (c *FoldersSinksGetCall) Context(ctx context.Context) *FoldersSinksGetCall
- func (c *FoldersSinksGetCall) Do(opts ...googleapi.CallOption) (*LogSink, error)
- func (c *FoldersSinksGetCall) Fields(s ...googleapi.Field) *FoldersSinksGetCall
- func (c *FoldersSinksGetCall) Header() http.Header
- func (c *FoldersSinksGetCall) IfNoneMatch(entityTag string) *FoldersSinksGetCall
- type FoldersSinksListCall
- func (c *FoldersSinksListCall) Context(ctx context.Context) *FoldersSinksListCall
- func (c *FoldersSinksListCall) Do(opts ...googleapi.CallOption) (*ListSinksResponse, error)
- func (c *FoldersSinksListCall) Fields(s ...googleapi.Field) *FoldersSinksListCall
- func (c *FoldersSinksListCall) Header() http.Header
- func (c *FoldersSinksListCall) IfNoneMatch(entityTag string) *FoldersSinksListCall
- func (c *FoldersSinksListCall) PageSize(pageSize int64) *FoldersSinksListCall
- func (c *FoldersSinksListCall) PageToken(pageToken string) *FoldersSinksListCall
- func (c *FoldersSinksListCall) Pages(ctx context.Context, f func(*ListSinksResponse) error) error
- type FoldersSinksService
- func (r *FoldersSinksService) Create(parent string, logsink *LogSink) *FoldersSinksCreateCall
- func (r *FoldersSinksService) Delete(sinkNameid string) *FoldersSinksDeleteCall
- func (r *FoldersSinksService) Get(sinkName string) *FoldersSinksGetCall
- func (r *FoldersSinksService) List(parent string) *FoldersSinksListCall
- func (r *FoldersSinksService) Update(sinkNameid string, logsink *LogSink) *FoldersSinksUpdateCall
- type FoldersSinksUpdateCall
- func (c *FoldersSinksUpdateCall) Context(ctx context.Context) *FoldersSinksUpdateCall
- func (c *FoldersSinksUpdateCall) Do(opts ...googleapi.CallOption) (*LogSink, error)
- func (c *FoldersSinksUpdateCall) Fields(s ...googleapi.Field) *FoldersSinksUpdateCall
- func (c *FoldersSinksUpdateCall) Header() http.Header
- func (c *FoldersSinksUpdateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *FoldersSinksUpdateCall
- type HttpRequest
- type LabelDescriptor
- type ListLogEntriesRequest
- type ListLogEntriesResponse
- type ListLogMetricsResponse
- type ListLogsResponse
- type ListMonitoredResourceDescriptorsResponse
- type ListSinksResponse
- type LogEntry
- type LogEntryOperation
- type LogEntrySourceLocation
- type LogLine
- type LogMetric
- type LogSink
- type MonitoredResource
- type MonitoredResourceDescriptor
- type MonitoredResourceDescriptorsListCall
- func (c *MonitoredResourceDescriptorsListCall) Context(ctx context.Context) *MonitoredResourceDescriptorsListCall
- func (c *MonitoredResourceDescriptorsListCall) Do(opts ...googleapi.CallOption) (*ListMonitoredResourceDescriptorsResponse, error)
- func (c *MonitoredResourceDescriptorsListCall) Fields(s ...googleapi.Field) *MonitoredResourceDescriptorsListCall
- func (c *MonitoredResourceDescriptorsListCall) Header() http.Header
- func (c *MonitoredResourceDescriptorsListCall) IfNoneMatch(entityTag string) *MonitoredResourceDescriptorsListCall
- func (c *MonitoredResourceDescriptorsListCall) PageSize(pageSize int64) *MonitoredResourceDescriptorsListCall
- func (c *MonitoredResourceDescriptorsListCall) PageToken(pageToken string) *MonitoredResourceDescriptorsListCall
- func (c *MonitoredResourceDescriptorsListCall) Pages(ctx context.Context, f func(*ListMonitoredResourceDescriptorsResponse) error) error
- type MonitoredResourceDescriptorsService
- type OrganizationsLogsDeleteCall
- func (c *OrganizationsLogsDeleteCall) Context(ctx context.Context) *OrganizationsLogsDeleteCall
- func (c *OrganizationsLogsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *OrganizationsLogsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLogsDeleteCall
- func (c *OrganizationsLogsDeleteCall) Header() http.Header
- type OrganizationsLogsListCall
- func (c *OrganizationsLogsListCall) Context(ctx context.Context) *OrganizationsLogsListCall
- func (c *OrganizationsLogsListCall) Do(opts ...googleapi.CallOption) (*ListLogsResponse, error)
- func (c *OrganizationsLogsListCall) Fields(s ...googleapi.Field) *OrganizationsLogsListCall
- func (c *OrganizationsLogsListCall) Header() http.Header
- func (c *OrganizationsLogsListCall) IfNoneMatch(entityTag string) *OrganizationsLogsListCall
- func (c *OrganizationsLogsListCall) PageSize(pageSize int64) *OrganizationsLogsListCall
- func (c *OrganizationsLogsListCall) PageToken(pageToken string) *OrganizationsLogsListCall
- func (c *OrganizationsLogsListCall) Pages(ctx context.Context, f func(*ListLogsResponse) error) error
- type OrganizationsLogsService
- type OrganizationsService
- type OrganizationsSinksCreateCall
- func (c *OrganizationsSinksCreateCall) Context(ctx context.Context) *OrganizationsSinksCreateCall
- func (c *OrganizationsSinksCreateCall) Do(opts ...googleapi.CallOption) (*LogSink, error)
- func (c *OrganizationsSinksCreateCall) Fields(s ...googleapi.Field) *OrganizationsSinksCreateCall
- func (c *OrganizationsSinksCreateCall) Header() http.Header
- func (c *OrganizationsSinksCreateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *OrganizationsSinksCreateCall
- type OrganizationsSinksDeleteCall
- func (c *OrganizationsSinksDeleteCall) Context(ctx context.Context) *OrganizationsSinksDeleteCall
- func (c *OrganizationsSinksDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *OrganizationsSinksDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSinksDeleteCall
- func (c *OrganizationsSinksDeleteCall) Header() http.Header
- type OrganizationsSinksGetCall
- func (c *OrganizationsSinksGetCall) Context(ctx context.Context) *OrganizationsSinksGetCall
- func (c *OrganizationsSinksGetCall) Do(opts ...googleapi.CallOption) (*LogSink, error)
- func (c *OrganizationsSinksGetCall) Fields(s ...googleapi.Field) *OrganizationsSinksGetCall
- func (c *OrganizationsSinksGetCall) Header() http.Header
- func (c *OrganizationsSinksGetCall) IfNoneMatch(entityTag string) *OrganizationsSinksGetCall
- type OrganizationsSinksListCall
- func (c *OrganizationsSinksListCall) Context(ctx context.Context) *OrganizationsSinksListCall
- func (c *OrganizationsSinksListCall) Do(opts ...googleapi.CallOption) (*ListSinksResponse, error)
- func (c *OrganizationsSinksListCall) Fields(s ...googleapi.Field) *OrganizationsSinksListCall
- func (c *OrganizationsSinksListCall) Header() http.Header
- func (c *OrganizationsSinksListCall) IfNoneMatch(entityTag string) *OrganizationsSinksListCall
- func (c *OrganizationsSinksListCall) PageSize(pageSize int64) *OrganizationsSinksListCall
- func (c *OrganizationsSinksListCall) PageToken(pageToken string) *OrganizationsSinksListCall
- func (c *OrganizationsSinksListCall) Pages(ctx context.Context, f func(*ListSinksResponse) error) error
- type OrganizationsSinksService
- func (r *OrganizationsSinksService) Create(parent string, logsink *LogSink) *OrganizationsSinksCreateCall
- func (r *OrganizationsSinksService) Delete(sinkNameid string) *OrganizationsSinksDeleteCall
- func (r *OrganizationsSinksService) Get(sinkName string) *OrganizationsSinksGetCall
- func (r *OrganizationsSinksService) List(parent string) *OrganizationsSinksListCall
- func (r *OrganizationsSinksService) Update(sinkNameid string, logsink *LogSink) *OrganizationsSinksUpdateCall
- type OrganizationsSinksUpdateCall
- func (c *OrganizationsSinksUpdateCall) Context(ctx context.Context) *OrganizationsSinksUpdateCall
- func (c *OrganizationsSinksUpdateCall) Do(opts ...googleapi.CallOption) (*LogSink, error)
- func (c *OrganizationsSinksUpdateCall) Fields(s ...googleapi.Field) *OrganizationsSinksUpdateCall
- func (c *OrganizationsSinksUpdateCall) Header() http.Header
- func (c *OrganizationsSinksUpdateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *OrganizationsSinksUpdateCall
- type ProjectsLogsDeleteCall
- func (c *ProjectsLogsDeleteCall) Context(ctx context.Context) *ProjectsLogsDeleteCall
- func (c *ProjectsLogsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLogsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLogsDeleteCall
- func (c *ProjectsLogsDeleteCall) Header() http.Header
- type ProjectsLogsListCall
- func (c *ProjectsLogsListCall) Context(ctx context.Context) *ProjectsLogsListCall
- func (c *ProjectsLogsListCall) Do(opts ...googleapi.CallOption) (*ListLogsResponse, error)
- func (c *ProjectsLogsListCall) Fields(s ...googleapi.Field) *ProjectsLogsListCall
- func (c *ProjectsLogsListCall) Header() http.Header
- func (c *ProjectsLogsListCall) IfNoneMatch(entityTag string) *ProjectsLogsListCall
- func (c *ProjectsLogsListCall) PageSize(pageSize int64) *ProjectsLogsListCall
- func (c *ProjectsLogsListCall) PageToken(pageToken string) *ProjectsLogsListCall
- func (c *ProjectsLogsListCall) Pages(ctx context.Context, f func(*ListLogsResponse) error) error
- type ProjectsLogsService
- type ProjectsMetricsCreateCall
- func (c *ProjectsMetricsCreateCall) Context(ctx context.Context) *ProjectsMetricsCreateCall
- func (c *ProjectsMetricsCreateCall) Do(opts ...googleapi.CallOption) (*LogMetric, error)
- func (c *ProjectsMetricsCreateCall) Fields(s ...googleapi.Field) *ProjectsMetricsCreateCall
- func (c *ProjectsMetricsCreateCall) Header() http.Header
- type ProjectsMetricsDeleteCall
- func (c *ProjectsMetricsDeleteCall) Context(ctx context.Context) *ProjectsMetricsDeleteCall
- func (c *ProjectsMetricsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsMetricsDeleteCall) Fields(s ...googleapi.Field) *ProjectsMetricsDeleteCall
- func (c *ProjectsMetricsDeleteCall) Header() http.Header
- type ProjectsMetricsGetCall
- func (c *ProjectsMetricsGetCall) Context(ctx context.Context) *ProjectsMetricsGetCall
- func (c *ProjectsMetricsGetCall) Do(opts ...googleapi.CallOption) (*LogMetric, error)
- func (c *ProjectsMetricsGetCall) Fields(s ...googleapi.Field) *ProjectsMetricsGetCall
- func (c *ProjectsMetricsGetCall) Header() http.Header
- func (c *ProjectsMetricsGetCall) IfNoneMatch(entityTag string) *ProjectsMetricsGetCall
- type ProjectsMetricsListCall
- func (c *ProjectsMetricsListCall) Context(ctx context.Context) *ProjectsMetricsListCall
- func (c *ProjectsMetricsListCall) Do(opts ...googleapi.CallOption) (*ListLogMetricsResponse, error)
- func (c *ProjectsMetricsListCall) Fields(s ...googleapi.Field) *ProjectsMetricsListCall
- func (c *ProjectsMetricsListCall) Header() http.Header
- func (c *ProjectsMetricsListCall) IfNoneMatch(entityTag string) *ProjectsMetricsListCall
- func (c *ProjectsMetricsListCall) PageSize(pageSize int64) *ProjectsMetricsListCall
- func (c *ProjectsMetricsListCall) PageToken(pageToken string) *ProjectsMetricsListCall
- func (c *ProjectsMetricsListCall) Pages(ctx context.Context, f func(*ListLogMetricsResponse) error) error
- type ProjectsMetricsService
- func (r *ProjectsMetricsService) Create(parent string, logmetric *LogMetric) *ProjectsMetricsCreateCall
- func (r *ProjectsMetricsService) Delete(metricName string) *ProjectsMetricsDeleteCall
- func (r *ProjectsMetricsService) Get(metricName string) *ProjectsMetricsGetCall
- func (r *ProjectsMetricsService) List(parent string) *ProjectsMetricsListCall
- func (r *ProjectsMetricsService) Update(metricName string, logmetric *LogMetric) *ProjectsMetricsUpdateCall
- type ProjectsMetricsUpdateCall
- func (c *ProjectsMetricsUpdateCall) Context(ctx context.Context) *ProjectsMetricsUpdateCall
- func (c *ProjectsMetricsUpdateCall) Do(opts ...googleapi.CallOption) (*LogMetric, error)
- func (c *ProjectsMetricsUpdateCall) Fields(s ...googleapi.Field) *ProjectsMetricsUpdateCall
- func (c *ProjectsMetricsUpdateCall) Header() http.Header
- type ProjectsService
- type ProjectsSinksCreateCall
- func (c *ProjectsSinksCreateCall) Context(ctx context.Context) *ProjectsSinksCreateCall
- func (c *ProjectsSinksCreateCall) Do(opts ...googleapi.CallOption) (*LogSink, error)
- func (c *ProjectsSinksCreateCall) Fields(s ...googleapi.Field) *ProjectsSinksCreateCall
- func (c *ProjectsSinksCreateCall) Header() http.Header
- func (c *ProjectsSinksCreateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *ProjectsSinksCreateCall
- type ProjectsSinksDeleteCall
- func (c *ProjectsSinksDeleteCall) Context(ctx context.Context) *ProjectsSinksDeleteCall
- func (c *ProjectsSinksDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsSinksDeleteCall) Fields(s ...googleapi.Field) *ProjectsSinksDeleteCall
- func (c *ProjectsSinksDeleteCall) Header() http.Header
- type ProjectsSinksGetCall
- func (c *ProjectsSinksGetCall) Context(ctx context.Context) *ProjectsSinksGetCall
- func (c *ProjectsSinksGetCall) Do(opts ...googleapi.CallOption) (*LogSink, error)
- func (c *ProjectsSinksGetCall) Fields(s ...googleapi.Field) *ProjectsSinksGetCall
- func (c *ProjectsSinksGetCall) Header() http.Header
- func (c *ProjectsSinksGetCall) IfNoneMatch(entityTag string) *ProjectsSinksGetCall
- type ProjectsSinksListCall
- func (c *ProjectsSinksListCall) Context(ctx context.Context) *ProjectsSinksListCall
- func (c *ProjectsSinksListCall) Do(opts ...googleapi.CallOption) (*ListSinksResponse, error)
- func (c *ProjectsSinksListCall) Fields(s ...googleapi.Field) *ProjectsSinksListCall
- func (c *ProjectsSinksListCall) Header() http.Header
- func (c *ProjectsSinksListCall) IfNoneMatch(entityTag string) *ProjectsSinksListCall
- func (c *ProjectsSinksListCall) PageSize(pageSize int64) *ProjectsSinksListCall
- func (c *ProjectsSinksListCall) PageToken(pageToken string) *ProjectsSinksListCall
- func (c *ProjectsSinksListCall) Pages(ctx context.Context, f func(*ListSinksResponse) error) error
- type ProjectsSinksService
- func (r *ProjectsSinksService) Create(parent string, logsink *LogSink) *ProjectsSinksCreateCall
- func (r *ProjectsSinksService) Delete(sinkNameid string) *ProjectsSinksDeleteCall
- func (r *ProjectsSinksService) Get(sinkName string) *ProjectsSinksGetCall
- func (r *ProjectsSinksService) List(parent string) *ProjectsSinksListCall
- func (r *ProjectsSinksService) Update(sinkNameid string, logsink *LogSink) *ProjectsSinksUpdateCall
- type ProjectsSinksUpdateCall
- func (c *ProjectsSinksUpdateCall) Context(ctx context.Context) *ProjectsSinksUpdateCall
- func (c *ProjectsSinksUpdateCall) Do(opts ...googleapi.CallOption) (*LogSink, error)
- func (c *ProjectsSinksUpdateCall) Fields(s ...googleapi.Field) *ProjectsSinksUpdateCall
- func (c *ProjectsSinksUpdateCall) Header() http.Header
- func (c *ProjectsSinksUpdateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *ProjectsSinksUpdateCall
- type RequestLog
- type Service
- type SourceLocation
- type SourceReference
- type WriteLogEntriesRequest
- type WriteLogEntriesResponse
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.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BillingAccountsLogsDeleteCall ¶
type BillingAccountsLogsDeleteCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsLogsDeleteCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
type BillingAccountsLogsListCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsLogsListCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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.
type BillingAccountsLogsService ¶
type BillingAccountsLogsService struct {
// contains filtered or unexported fields
}
func NewBillingAccountsLogsService ¶
func NewBillingAccountsLogsService(s *Service) *BillingAccountsLogsService
func (*BillingAccountsLogsService) Delete ¶
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 ¶
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 ¶
type BillingAccountsService struct { Logs *BillingAccountsLogsService Sinks *BillingAccountsSinksService // contains filtered or unexported fields }
func NewBillingAccountsService ¶
func NewBillingAccountsService(s *Service) *BillingAccountsService
type BillingAccountsSinksCreateCall ¶
type BillingAccountsSinksCreateCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsSinksCreateCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 Stackdriver Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only for exports from the new sink. For more information, see writer_identity in LogSink.
type BillingAccountsSinksDeleteCall ¶
type BillingAccountsSinksDeleteCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsSinksDeleteCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
type BillingAccountsSinksGetCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsSinksGetCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
type BillingAccountsSinksListCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsSinksListCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 BillingAccountsSinksService ¶
type BillingAccountsSinksService struct {
// contains filtered or unexported fields
}
func NewBillingAccountsSinksService ¶
func NewBillingAccountsSinksService(s *Service) *BillingAccountsSinksService
func (*BillingAccountsSinksService) Create ¶
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 current time is outside the sink's start and end times or 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 ¶
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 ¶
func (r *BillingAccountsSinksService) Get(sinkName string) *BillingAccountsSinksGetCall
Get: Gets a sink.
func (*BillingAccountsSinksService) List ¶
func (r *BillingAccountsSinksService) List(parent string) *BillingAccountsSinksListCall
List: Lists sinks.
func (*BillingAccountsSinksService) Update ¶
func (r *BillingAccountsSinksService) Update(sinkNameid string, logsink *LogSink) *BillingAccountsSinksUpdateCall
Update: Updates a sink. If the named sink doesn't exist, then this method is identical to sinks.create. If the named sink does exist, then this method replaces the following fields in the existing sink with values from the new sink: destination, filter, output_version_format, start_time, and end_time. The updated filter might also have a new writer_identity; see the unique_writer_identity field.
type BillingAccountsSinksUpdateCall ¶
type BillingAccountsSinksUpdateCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsSinksUpdateCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 false.
type Empty ¶
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 ¶
type EntriesListCall struct {
// contains filtered or unexported fields
}
func (*EntriesListCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
type EntriesService struct {
// contains filtered or unexported fields
}
func NewEntriesService ¶
func NewEntriesService(s *Service) *EntriesService
func (*EntriesService) List ¶
func (r *EntriesService) List(listlogentriesrequest *ListLogEntriesRequest) *EntriesListCall
List: Lists log entries. Use this method to retrieve log entries from Stackdriver Logging. For ways to export log entries, see Exporting Logs.
func (*EntriesService) Write ¶
func (r *EntriesService) Write(writelogentriesrequest *WriteLogEntriesRequest) *EntriesWriteCall
Write: Writes log entries to Stackdriver Logging. All log entries are written by this method.
type EntriesWriteCall ¶
type EntriesWriteCall struct {
// contains filtered or unexported fields
}
func (*EntriesWriteCall) Context ¶
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 ¶
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 ¶
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 ¶
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 FoldersLogsDeleteCall ¶
type FoldersLogsDeleteCall struct {
// contains filtered or unexported fields
}
func (*FoldersLogsDeleteCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
type FoldersLogsListCall struct {
// contains filtered or unexported fields
}
func (*FoldersLogsListCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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.
type FoldersLogsService ¶
type FoldersLogsService struct {
// contains filtered or unexported fields
}
func NewFoldersLogsService ¶
func NewFoldersLogsService(s *Service) *FoldersLogsService
func (*FoldersLogsService) Delete ¶
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 ¶
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 ¶
type FoldersService struct { Logs *FoldersLogsService Sinks *FoldersSinksService // contains filtered or unexported fields }
func NewFoldersService ¶
func NewFoldersService(s *Service) *FoldersService
type FoldersSinksCreateCall ¶
type FoldersSinksCreateCall struct {
// contains filtered or unexported fields
}
func (*FoldersSinksCreateCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 Stackdriver Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only for exports from the new sink. For more information, see writer_identity in LogSink.
type FoldersSinksDeleteCall ¶
type FoldersSinksDeleteCall struct {
// contains filtered or unexported fields
}
func (*FoldersSinksDeleteCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
type FoldersSinksGetCall struct {
// contains filtered or unexported fields
}
func (*FoldersSinksGetCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
type FoldersSinksListCall struct {
// contains filtered or unexported fields
}
func (*FoldersSinksListCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 FoldersSinksService ¶
type FoldersSinksService struct {
// contains filtered or unexported fields
}
func NewFoldersSinksService ¶
func NewFoldersSinksService(s *Service) *FoldersSinksService
func (*FoldersSinksService) Create ¶
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 current time is outside the sink's start and end times or 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 ¶
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 ¶
func (r *FoldersSinksService) Get(sinkName string) *FoldersSinksGetCall
Get: Gets a sink.
func (*FoldersSinksService) List ¶
func (r *FoldersSinksService) List(parent string) *FoldersSinksListCall
List: Lists sinks.
func (*FoldersSinksService) Update ¶
func (r *FoldersSinksService) Update(sinkNameid string, logsink *LogSink) *FoldersSinksUpdateCall
Update: Updates a sink. If the named sink doesn't exist, then this method is identical to sinks.create. If the named sink does exist, then this method replaces the following fields in the existing sink with values from the new sink: destination, filter, output_version_format, start_time, and end_time. The updated filter might also have a new writer_identity; see the unique_writer_identity field.
type FoldersSinksUpdateCall ¶
type FoldersSinksUpdateCall struct {
// contains filtered or unexported fields
}
func (*FoldersSinksUpdateCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 false.
type HttpRequest ¶
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"` // 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 ¶
func (s *HttpRequest) MarshalJSON() ([]byte, error)
type LabelDescriptor ¶
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 ¶
func (s *LabelDescriptor) MarshalJSON() ([]byte, error)
type ListLogEntriesRequest ¶
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 LogEntry.insertId. 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 // nextPageToken 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. pageToken must be the // value of nextPageToken from the previous response. The values of // other method parameters should be identical to those in the previous // call. PageToken string `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". If present, these project // identifiers are converted to resource name format and added to the // list of resources in resource_names. 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 ¶
func (s *ListLogEntriesRequest) MarshalJSON() ([]byte, error)
type ListLogEntriesResponse ¶
type ListLogEntriesResponse struct { // Entries: A list of log entries. 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 ¶
func (s *ListLogEntriesResponse) MarshalJSON() ([]byte, error)
type ListLogMetricsResponse ¶
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 ¶
func (s *ListLogMetricsResponse) MarshalJSON() ([]byte, error)
type ListLogsResponse ¶
type ListLogsResponse struct { // LogNames: A list of log names. For example, // "projects/my-project/syslog" or // "organizations/123/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 ¶
func (s *ListLogsResponse) MarshalJSON() ([]byte, error)
type ListMonitoredResourceDescriptorsResponse ¶
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 ¶
func (s *ListMonitoredResourceDescriptorsResponse) MarshalJSON() ([]byte, error)
type ListSinksResponse ¶
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 ¶
func (s *ListSinksResponse) MarshalJSON() ([]byte, error)
type LogEntry ¶
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 ID for the log entry. If you provide // this field, the logging service considers other log entries in the // same project with the same ID as duplicates which can be removed. If // omitted, Stackdriver Logging will generate a unique ID for this log // entry. 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]" // [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"` // 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. ProtoPayload googleapi.RawMessage `json:"protoPayload,omitempty"` // Resource: Required. The monitored resource associated with this log // entry. Example: a log entry that reports a database error would be // associated with the monitored resource designating the particular // database that reported the error. Resource *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"` // 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. If omitted, Stackdriver Logging will use the time the log // entry is received. 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"` // 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 ¶
type LogEntryOperation ¶
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 ¶
func (s *LogEntryOperation) MarshalJSON() ([]byte, error)
type LogEntrySourceLocation ¶
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 ¶
func (s *LogEntrySourceLocation) MarshalJSON() ([]byte, error)
type LogLine ¶
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 ¶
type LogMetric ¶
type LogMetric struct { // Description: Optional. A description of this metric, which is used in // documentation. 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"` // 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"` // Version: Output only. The API version that created or updated this // metric. The version also dictates the syntax of the filter // expression. When a value for this field is missing, the default value // of V2 should be assumed. // // Possible values: // "V2" - Stackdriver Logging API v2. // "V1" - Stackdriver 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. "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:"-"` }
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.
func (*LogMetric) MarshalJSON ¶
type LogSink ¶
type LogSink struct { // 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"` // EndTime: Optional. The time at which this sink will stop exporting // log entries. Log entries are exported only if their timestamp is // earlier than the end time. If this field is not supplied, there is no // end time. If both a start time and an end time are provided, then the // end time must be later than the start time. EndTime string `json:"endTime,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. The filter must use the log entry format specified // by the output_version_format parameter. For example, in the v2 // format: // logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR // Filter string `json:"filter,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: Optional. The log entry format to use for this // sink's exported log entries. The v2 format is used by default. The v1 // format is deprecated and should be used only as part of a migration // effort to v2. See Migration to the v2 API. // // 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"` // StartTime: Optional. The time at which this sink will begin exporting // log entries. Log entries are exported only if their timestamp is not // earlier than the start time. The default value of this field is the // time the sink is created or updated. StartTime string `json:"startTime,omitempty"` // WriterIdentity: Output only. An IAM identity—a service account // or group—under which Stackdriver Logging writes the exported // log entries to the sink's destination. This field is set by // sinks.create and sinks.update, based on the setting of // unique_writer_identity in those methods.Until you grant this identity // write-access to the destination, log entry exports from this sink // will fail. For more information, see Granting access for a resource. // 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. "Destination") 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. "Destination") 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 ¶
type MonitoredResource ¶
type MonitoredResource struct { // Labels: Required. Values for all of the labels listed in the // associated monitored resource descriptor. For example, Cloud SQL // databases use the labels "database_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 Cloud SQL database is "cloudsql_database". 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 ¶
func (s *MonitoredResource) MarshalJSON() ([]byte, error)
type MonitoredResourceDescriptor ¶
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"` // 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 ¶
func (s *MonitoredResourceDescriptor) MarshalJSON() ([]byte, error)
type MonitoredResourceDescriptorsListCall ¶
type MonitoredResourceDescriptorsListCall struct {
// contains filtered or unexported fields
}
func (*MonitoredResourceDescriptorsListCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
type MonitoredResourceDescriptorsService struct {
// contains filtered or unexported fields
}
func NewMonitoredResourceDescriptorsService ¶
func NewMonitoredResourceDescriptorsService(s *Service) *MonitoredResourceDescriptorsService
func (*MonitoredResourceDescriptorsService) List ¶
func (r *MonitoredResourceDescriptorsService) List() *MonitoredResourceDescriptorsListCall
List: Lists the descriptors for monitored resource types used by Stackdriver Logging.
type OrganizationsLogsDeleteCall ¶
type OrganizationsLogsDeleteCall struct {
// contains filtered or unexported fields
}
func (*OrganizationsLogsDeleteCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
type OrganizationsLogsListCall struct {
// contains filtered or unexported fields
}
func (*OrganizationsLogsListCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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.
type OrganizationsLogsService ¶
type OrganizationsLogsService struct {
// contains filtered or unexported fields
}
func NewOrganizationsLogsService ¶
func NewOrganizationsLogsService(s *Service) *OrganizationsLogsService
func (*OrganizationsLogsService) Delete ¶
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 ¶
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 ¶
type OrganizationsService struct { Logs *OrganizationsLogsService Sinks *OrganizationsSinksService // contains filtered or unexported fields }
func NewOrganizationsService ¶
func NewOrganizationsService(s *Service) *OrganizationsService
type OrganizationsSinksCreateCall ¶
type OrganizationsSinksCreateCall struct {
// contains filtered or unexported fields
}
func (*OrganizationsSinksCreateCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 Stackdriver Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only for exports from the new sink. For more information, see writer_identity in LogSink.
type OrganizationsSinksDeleteCall ¶
type OrganizationsSinksDeleteCall struct {
// contains filtered or unexported fields
}
func (*OrganizationsSinksDeleteCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
type OrganizationsSinksGetCall struct {
// contains filtered or unexported fields
}
func (*OrganizationsSinksGetCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
type OrganizationsSinksListCall struct {
// contains filtered or unexported fields
}
func (*OrganizationsSinksListCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 OrganizationsSinksService ¶
type OrganizationsSinksService struct {
// contains filtered or unexported fields
}
func NewOrganizationsSinksService ¶
func NewOrganizationsSinksService(s *Service) *OrganizationsSinksService
func (*OrganizationsSinksService) Create ¶
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 current time is outside the sink's start and end times or 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 ¶
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 ¶
func (r *OrganizationsSinksService) Get(sinkName string) *OrganizationsSinksGetCall
Get: Gets a sink.
func (*OrganizationsSinksService) List ¶
func (r *OrganizationsSinksService) List(parent string) *OrganizationsSinksListCall
List: Lists sinks.
func (*OrganizationsSinksService) Update ¶
func (r *OrganizationsSinksService) Update(sinkNameid string, logsink *LogSink) *OrganizationsSinksUpdateCall
Update: Updates a sink. If the named sink doesn't exist, then this method is identical to sinks.create. If the named sink does exist, then this method replaces the following fields in the existing sink with values from the new sink: destination, filter, output_version_format, start_time, and end_time. The updated filter might also have a new writer_identity; see the unique_writer_identity field.
type OrganizationsSinksUpdateCall ¶
type OrganizationsSinksUpdateCall struct {
// contains filtered or unexported fields
}
func (*OrganizationsSinksUpdateCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 false.
type ProjectsLogsDeleteCall ¶
type ProjectsLogsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLogsDeleteCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
type ProjectsLogsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLogsListCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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.
type ProjectsLogsService ¶
type ProjectsLogsService struct {
// contains filtered or unexported fields
}
func NewProjectsLogsService ¶
func NewProjectsLogsService(s *Service) *ProjectsLogsService
func (*ProjectsLogsService) Delete ¶
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 ¶
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 ¶
type ProjectsMetricsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsMetricsCreateCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
type ProjectsMetricsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsMetricsDeleteCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
type ProjectsMetricsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsMetricsGetCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
type ProjectsMetricsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsMetricsListCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
type ProjectsMetricsService struct {
// contains filtered or unexported fields
}
func NewProjectsMetricsService ¶
func NewProjectsMetricsService(s *Service) *ProjectsMetricsService
func (*ProjectsMetricsService) Create ¶
func (r *ProjectsMetricsService) Create(parent string, logmetric *LogMetric) *ProjectsMetricsCreateCall
Create: Creates a logs-based metric.
func (*ProjectsMetricsService) Delete ¶
func (r *ProjectsMetricsService) Delete(metricName string) *ProjectsMetricsDeleteCall
Delete: Deletes a logs-based metric.
func (*ProjectsMetricsService) Get ¶
func (r *ProjectsMetricsService) Get(metricName string) *ProjectsMetricsGetCall
Get: Gets a logs-based metric.
func (*ProjectsMetricsService) List ¶
func (r *ProjectsMetricsService) List(parent string) *ProjectsMetricsListCall
List: Lists logs-based metrics.
func (*ProjectsMetricsService) Update ¶
func (r *ProjectsMetricsService) Update(metricName string, logmetric *LogMetric) *ProjectsMetricsUpdateCall
Update: Creates or updates a logs-based metric.
type ProjectsMetricsUpdateCall ¶
type ProjectsMetricsUpdateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsMetricsUpdateCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
type ProjectsService struct { Logs *ProjectsLogsService Metrics *ProjectsMetricsService Sinks *ProjectsSinksService // contains filtered or unexported fields }
func NewProjectsService ¶
func NewProjectsService(s *Service) *ProjectsService
type ProjectsSinksCreateCall ¶
type ProjectsSinksCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSinksCreateCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 Stackdriver Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only for exports from the new sink. For more information, see writer_identity in LogSink.
type ProjectsSinksDeleteCall ¶
type ProjectsSinksDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSinksDeleteCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
type ProjectsSinksGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSinksGetCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
type ProjectsSinksListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSinksListCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ProjectsSinksService ¶
type ProjectsSinksService struct {
// contains filtered or unexported fields
}
func NewProjectsSinksService ¶
func NewProjectsSinksService(s *Service) *ProjectsSinksService
func (*ProjectsSinksService) Create ¶
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 current time is outside the sink's start and end times or 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 ¶
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 ¶
func (r *ProjectsSinksService) Get(sinkName string) *ProjectsSinksGetCall
Get: Gets a sink.
func (*ProjectsSinksService) List ¶
func (r *ProjectsSinksService) List(parent string) *ProjectsSinksListCall
List: Lists sinks.
func (*ProjectsSinksService) Update ¶
func (r *ProjectsSinksService) Update(sinkNameid string, logsink *LogSink) *ProjectsSinksUpdateCall
Update: Updates a sink. If the named sink doesn't exist, then this method is identical to sinks.create. If the named sink does exist, then this method replaces the following fields in the existing sink with values from the new sink: destination, filter, output_version_format, start_time, and end_time. The updated filter might also have a new writer_identity; see the unique_writer_identity field.
type ProjectsSinksUpdateCall ¶
type ProjectsSinksUpdateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSinksUpdateCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 false.
type RequestLog ¶
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"` // 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 ¶
func (s *RequestLog) MarshalJSON() ([]byte, error)
func (*RequestLog) UnmarshalJSON ¶
func (s *RequestLog) UnmarshalJSON(data []byte) error
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment GoogleClientHeaderElement string // client header fragment, for Google use only BillingAccounts *BillingAccountsService Entries *EntriesService Folders *FoldersService MonitoredResourceDescriptors *MonitoredResourceDescriptorsService Organizations *OrganizationsService Projects *ProjectsService // contains filtered or unexported fields }
type SourceLocation ¶
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 ¶
func (s *SourceLocation) MarshalJSON() ([]byte, error)
type SourceReference ¶
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 ¶
func (s *SourceReference) MarshalJSON() ([]byte, error)
type WriteLogEntriesRequest ¶
type WriteLogEntriesRequest struct { // Entries: Required. The log entries to write. Values supplied for the // fields log_name, resource, and labels in this entries.write request // are added to those log entries that do not provide their own values // for the fields.To improve throughput and to avoid exceeding the quota // limit for calls to entries.write, you should write multiple log // entries at once 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" or // "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Fa // ctivity". For more information about log names, see LogEntry. 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, the response // status will be the error associated with one of the failed entries // and include error details in the form of // WriteLogEntriesPartialErrors. 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. "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:"-"` }
WriteLogEntriesRequest: The parameters to WriteLogEntries.
func (*WriteLogEntriesRequest) MarshalJSON ¶
func (s *WriteLogEntriesRequest) MarshalJSON() ([]byte, error)
type WriteLogEntriesResponse ¶
type WriteLogEntriesResponse struct { // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` }
WriteLogEntriesResponse: Result returned from WriteLogEntries. empty