logging

package
v0.0.0-...-9b87225 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package logging provides access to the Stackdriver Logging API.

See https://cloud.google.com/logging/docs/

Usage example:

import "github.com/skelterjohn/gcloud_apis/clients/logging/v1beta3"
...
loggingService, err := logging.New(oauthHttpClient)

Index

Constants

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

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 ListLogEntriesRequest

type ListLogEntriesRequest struct {
	// Filter: An advanced logs filter. The response includes only entries
	// that match the filter. If filter is empty, then all entries in all
	// logs are retrieved. The maximum length of the filter is 20000
	// characters.
	Filter string `json:"filter,omitempty"`

	// OrderBy: Sort order of the results, consisting of a LogEntry field
	// optionally followed by a space and desc. Examples:
	// "metadata.timestamp", "metadata.timestamp desc". The only LogEntry
	// field supported for sorting is metadata.timestamp. The default sort
	// order is ascending (from older to newer entries) unless desc is
	// appended.
	OrderBy string `json:"orderBy,omitempty"`

	// PageSize: The maximum number of entries to return per request. Fewer
	// entries may be returned, but that is not an indication that there are
	// no more entries.
	PageSize int64 `json:"pageSize,omitempty"`

	// PageToken: An opaque token, returned as nextPageToken by a prior
	// ListLogEntries operation. If a page token is specified, other request
	// parameters must match the parameters from the request that generated
	// the page token.
	PageToken string `json:"pageToken,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:"-"`
}

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. Fewer than pageSize entries may be
	// returned, but that is not an indication that there are no more
	// entries.
	Entries []*LogEntry `json:"entries,omitempty"`

	// LastObservedEntryTimestamp: The timestamp of the last log entry that
	// was examined before returning this response. This can be used to
	// observe progress between successive queries, in particular when only
	// a page token is returned. Deprecated: use searched_through_timestamp.
	LastObservedEntryTimestamp string `json:"lastObservedEntryTimestamp,omitempty"`

	// NextPageToken: If there are more results, then nextPageToken is
	// returned in the response. To get the next batch of entries, use the
	// value of nextPageToken as pageToken in the next call of
	// ListLogEntries. If nextPageToken is empty, then there are no more
	// results.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SearchedThroughTimestamp: The furthest point in time through which
	// the search has progressed. All future entries returned using
	// next_page_token are guaranteed to have a timestamp at or past this
	// point in time in the direction of the search. This can be used to
	// observe progress between successive queries, in particular when only
	// a page token is returned.
	SearchedThroughTimestamp string `json:"searchedThroughTimestamp,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:"-"`
}

ListLogEntriesResponse: Result returned from ListLogEntries.

func (*ListLogEntriesResponse) MarshalJSON

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

type ListLogMetricsResponse

type ListLogMetricsResponse struct {
	// Metrics: The list of metrics that was requested.
	Metrics []*LogMetric `json:"metrics,omitempty"`

	// NextPageToken: If there are more results, then nextPageToken is
	// returned in the response. To get the next batch of entries, use the
	// value of nextPageToken as pageToken in the next call of
	// ListLogMetrics. If nextPageToken is empty, then there are no more
	// results.
	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:"-"`
}

ListLogMetricsResponse: Result returned from ListLogMetrics.

func (*ListLogMetricsResponse) MarshalJSON

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

type ListLogServiceIndexesResponse

type ListLogServiceIndexesResponse struct {
	// NextPageToken: If there are more results, then nextPageToken is
	// returned in the response. To get the next batch of indexes, use the
	// value of nextPageToken as pageToken in the next call of
	// ListLogServiceIndexes. If nextPageToken is empty, then there are no
	// more results.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// ServiceIndexPrefixes: A list of log service index values. Each index
	// value has the form "/value1/value2/...", where value1 is a value in
	// the primary index, value2 is a value in the secondary index, and so
	// forth.
	ServiceIndexPrefixes []string `json:"serviceIndexPrefixes,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:"-"`
}

ListLogServiceIndexesResponse: Result returned from ListLogServiceIndexesRequest.

func (*ListLogServiceIndexesResponse) MarshalJSON

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

type ListLogServiceSinksResponse

type ListLogServiceSinksResponse struct {
	// Sinks: The requested log service sinks. If a returned LogSink object
	// has an empty destination field, the client can retrieve the complete
	// LogSink object by calling logServices.sinks.get.
	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. "Sinks") 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:"-"`
}

ListLogServiceSinksResponse: Result returned from ListLogServiceSinks.

func (*ListLogServiceSinksResponse) MarshalJSON

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

type ListLogServicesResponse

type ListLogServicesResponse struct {
	// LogServices: A list of log services.
	LogServices []*LogService `json:"logServices,omitempty"`

	// NextPageToken: If there are more results, then nextPageToken is
	// returned in the response. To get the next batch of services, use the
	// value of nextPageToken as pageToken in the next call of
	// ListLogServices. If nextPageToken is empty, then there are no more
	// results.
	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. "LogServices") 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:"-"`
}

ListLogServicesResponse: Result returned from ListLogServicesRequest.

func (*ListLogServicesResponse) MarshalJSON

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

type ListLogSinksResponse

type ListLogSinksResponse struct {
	// Sinks: The requested log sinks. If a returned LogSink object has an
	// empty destination field, the client can retrieve the complete LogSink
	// object by calling log.sinks.get.
	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. "Sinks") 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:"-"`
}

ListLogSinksResponse: Result returned from ListLogSinks.

func (*ListLogSinksResponse) MarshalJSON

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

type ListLogsResponse

type ListLogsResponse struct {
	// Logs: A list of log descriptions matching the criteria.
	Logs []*Log `json:"logs,omitempty"`

	// NextPageToken: If there are more results, then nextPageToken is
	// returned in the response. To get the next batch of logs, use the
	// value of nextPageToken as pageToken in the next call of ListLogs. If
	// nextPageToken is empty, then there are no more results.
	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. "Logs") 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:"-"`
}

ListLogsResponse: Result returned from ListLogs.

func (*ListLogsResponse) MarshalJSON

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

type ListSinksResponse

type ListSinksResponse struct {
	// Sinks: The requested sinks. If a returned LogSink object has an empty
	// destination field, the client can retrieve the complete LogSink
	// object by calling projects.sinks.get.
	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. "Sinks") 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:"-"`
}

ListSinksResponse: Result returned from ListSinks.

func (*ListSinksResponse) MarshalJSON

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

type Log

type Log struct {
	// DisplayName: Optional. The common name of the log. Example:
	// "request_log".
	DisplayName string `json:"displayName,omitempty"`

	// Name: The resource name of the log. Example:
	// "/projects/my-gcp-project-id/logs/LOG_NAME", where LOG_NAME is the
	// URL-encoded given name of the log. The log includes those log entries
	// whose LogEntry.log field contains this given name. To avoid name
	// collisions, it is a best practice to prefix the given log name with
	// the service name, but this is not required. Examples of log given
	// names: "appengine.googleapis.com/request_log", "apache-access".
	Name string `json:"name,omitempty"`

	// PayloadType: Optional. A URI representing the expected payload type
	// for log entries.
	PayloadType string `json:"payloadType,omitempty"`

	// ForceSendFields is a list of field names (e.g. "DisplayName") 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:"-"`
}

Log: Output only. Describes a log, which is a named stream of log entries.

func (*Log) MarshalJSON

func (s *Log) 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"`

	// Log: Optional. The log to which this entry belongs. When a log entry
	// is written, the value of this field is set by the logging system.
	Log string `json:"log,omitempty"`

	// Metadata: Required. Information about the log entry.
	Metadata *LogEntryMetadata `json:"metadata,omitempty"`

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

	// ProtoPayload: The log entry payload, represented as a protocol buffer
	// that is expressed as a JSON object. Some Google Cloud Platform
	// services use this field for their log entry payloads.
	ProtoPayload LogEntryProtoPayload `json:"protoPayload,omitempty"`

	// StructPayload: The log entry payload, represented as a structure that
	// is expressed as a JSON object.
	StructPayload LogEntryStructPayload `json:"structPayload,omitempty"`

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

	// WriterEmailAddress: Optional. The email address of the role that
	// wrote the entry on behalf of a user. Not populated for entries
	// written by a user.
	WriterEmailAddress string `json:"writerEmailAddress,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:"-"`
}

LogEntry: An individual entry in a log.

func (*LogEntry) MarshalJSON

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

type LogEntryMetadata

type LogEntryMetadata struct {
	// Labels: Optional. A set of (key, value) data that provides additional
	// information about the log entry. If the log entry is from one of the
	// Google Cloud Platform sources listed below, the indicated (key,
	// value) information must be provided:Google App Engine, service_name
	// appengine.googleapis.com:
	//   "appengine.googleapis.com/module_id", <module ID>
	//   "appengine.googleapis.com/version_id", <version ID>
	//       and one of:
	//   "appengine.googleapis.com/replica_index", <instance index>
	//   "appengine.googleapis.com/clone_id", <instance ID>
	//
	// or else provide the following Compute Engine labels:
	// Google Compute Engine, service_name compute.googleapis.com:
	//    "compute.googleapis.com/resource_type", "instance"
	//    "compute.googleapis.com/resource_id", <instance ID>
	//
	Labels map[string]string `json:"labels,omitempty"`

	// ProjectId: Optional. The project ID of the Google Cloud Platform
	// service that created the log entry.
	ProjectId string `json:"projectId,omitempty"`

	// ProjectNumber: Optional. This field is supplied by the API at when
	// the entry is written.
	ProjectNumber int64 `json:"projectNumber,omitempty,string"`

	// Region: Optional. The region name of the Google Cloud Platform
	// service that created the log entry. For example, "us-central1".
	Region string `json:"region,omitempty"`

	// ServiceName: Required. The API name of the Google Cloud Platform
	// service that created the log entry. For example,
	// "compute.googleapis.com".
	ServiceName string `json:"serviceName,omitempty"`

	// Severity: Optional. The severity of the log entry. If omitted,
	// LogSeverity.DEFAULT is used.
	//
	// 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"`

	// Timestamp: Optional. The time the event described by the log entry
	// occurred. Timestamps must be later than January 1, 1970. If omitted,
	// Stackdriver Logging will use the time the log entry is received.
	Timestamp string `json:"timestamp,omitempty"`

	// UserId: Optional. This field is not used and its value is discarded.
	UserId string `json:"userId,omitempty"`

	// Zone: Optional. The zone of the Google Cloud Platform service that
	// created the log entry. For example, "us-central1-a".
	Zone string `json:"zone,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:"-"`
}

LogEntryMetadata: Additional data that is associated with a log entry, set by the service creating the log entry.

func (*LogEntryMetadata) MarshalJSON

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

type LogEntryOperation

type LogEntryOperation struct {
	// First: Optional. True for the first entry associated with id.
	First bool `json:"first,omitempty"`

	// Id: Optional. An opaque identifier. A producer of log entries should
	// ensure that id is only reused for entries related to one operation.
	Id string `json:"id,omitempty"`

	// Last: Optional. True for the last entry associated with id.
	Last bool `json:"last,omitempty"`

	// Producer: Optional. Ensures the operation can be uniquely identified.
	// The combination of id and producer should be made globally unique by
	// filling producer with a value that disambiguates the service that
	// created id.
	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:"-"`
}

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 LogEntryProtoPayload

type LogEntryProtoPayload interface{}

type LogEntryStructPayload

type LogEntryStructPayload interface{}

type LogError

type LogError struct {
	// Resource: A resource name associated with this error. For example,
	// the name of a Cloud Storage bucket that has insufficient permissions
	// to be a destination for log entries.
	Resource string `json:"resource,omitempty"`

	// Status: The error description, including a classification code, an
	// error message, and other details.
	Status *Status `json:"status,omitempty"`

	// TimeNanos: The time the error was observed, in nanoseconds since the
	// Unix epoch.
	TimeNanos int64 `json:"timeNanos,omitempty,string"`

	// ForceSendFields is a list of field names (e.g. "Resource") 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:"-"`
}

LogError: Describes a problem with a logging resource or operation.

func (*LogError) MarshalJSON

func (s *LogError) 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:"-"`
}

LogLine: Application log line emitted while processing a request.

func (*LogLine) MarshalJSON

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

type LogMetric

type LogMetric struct {
	// Description: Optional. A description of this metric.
	Description string `json:"description,omitempty"`

	// Filter: Required. An advanced logs filter. Example: "log=syslog AND
	// metadata.severity>=ERROR". The maximum length of the filter is 20000
	// characters.
	Filter string `json:"filter,omitempty"`

	// Name: Required. The client-assigned name for this metric, such as
	// "severe_errors". Metric names are limited to 1000 characters and can
	// include only the following characters: A-Z, a-z, 0-9, and the special
	// characters _-.,+!*',()%/\. The slash character (/) denotes a
	// hierarchy of name pieces, and it cannot be the first character of the
	// name.
	Name string `json:"name,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:"-"`
}

LogMetric: Describes a logs-based metric. The value of the metric is the number of log entries in your project that match a logs filter.

func (*LogMetric) MarshalJSON

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

type LogService

type LogService struct {
	// IndexKeys: A list of the names of the keys used to index and label
	// individual log entries from this service. The first two keys are used
	// as the primary and secondary index, respectively. Additional keys may
	// be used to label the entries. For example, App Engine indexes its
	// entries by module and by version, so its indexKeys field is the
	// following:
	// [ "appengine.googleapis.com/module_id",
	//   "appengine.googleapis.com/version_id" ]
	//
	IndexKeys []string `json:"indexKeys,omitempty"`

	// Name: The service's name. Example: "appengine.googleapis.com". Log
	// names beginning with this string are reserved for this service. This
	// value can appear in the LogEntry.metadata.serviceName field of log
	// entries associated with this log service.
	Name string `json:"name,omitempty"`

	// ForceSendFields is a list of field names (e.g. "IndexKeys") 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:"-"`
}

LogService: Output only. Describes a service that writes log entries.

func (*LogService) MarshalJSON

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

type LogSink

type LogSink struct {
	// Destination: Required. The resource name of the destination.
	// Stackdriver Logging writes designated log entries to this
	// destination. For example, "storage.googleapis.com/my-output-bucket".
	Destination string `json:"destination,omitempty"`

	// EndTime: Optional. Time at which this sink expires.
	EndTime string `json:"endTime,omitempty"`

	// Errors: Output only. If any errors occur when invoking a sink method,
	// then this field contains descriptions of the errors.
	Errors []*LogError `json:"errors,omitempty"`

	// Filter: Optional. An advanced logs filter. If present, only log
	// entries matching the filter are written. Only project sinks use this
	// field; log sinks and log service sinks must not include a filter. The
	// maximum length of the filter is 20000 characters.
	Filter string `json:"filter,omitempty"`

	// Name: Required. The client-assigned name of this sink. For example,
	// "my-syslog-sink". The name must be unique among the sinks of a
	// similar kind in the project.
	Name string `json:"name,omitempty"`

	// StartTime: Optional. Time range for which this sink is active. Logs
	// are exported only if start_time <= entry.timestamp < end_time Both
	// start_time and end_time may be omitted to specify (half) infinite
	// ranges. The start_time must be less than the end_time.
	StartTime string `json:"startTime,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:"-"`
}

LogSink: Describes where log entries are written outside of Stackdriver Logging.

func (*LogSink) MarshalJSON

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

type ProjectsEntriesListCall

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

func (*ProjectsEntriesListCall) Context

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 (*ProjectsEntriesListCall) Do

Do executes the "logging.projects.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 (*ProjectsEntriesListCall) Fields

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

type ProjectsEntriesService

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

func NewProjectsEntriesService

func NewProjectsEntriesService(s *Service) *ProjectsEntriesService

func (*ProjectsEntriesService) List

func (r *ProjectsEntriesService) List(projectsId string, listlogentriesrequest *ListLogEntriesRequest) *ProjectsEntriesListCall

List: Lists log entries in the specified project.

type ProjectsLogEntriesListCall

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

func (*ProjectsLogEntriesListCall) Context

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 (*ProjectsLogEntriesListCall) Do

Do executes the "logging.projects.logEntries.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 (*ProjectsLogEntriesListCall) Fields

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

func (*ProjectsLogEntriesListCall) Filter

Filter sets the optional parameter "filter": An advanced logs filter. The response includes only entries that match the filter. If filter is empty, then all entries in all logs are retrieved. The maximum length of the filter is 20000 characters.

func (*ProjectsLogEntriesListCall) IfNoneMatch

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 (*ProjectsLogEntriesListCall) OrderBy

OrderBy sets the optional parameter "orderBy": Sort order of the results, consisting of a LogEntry field optionally followed by a space and desc. Examples: "metadata.timestamp", "metadata.timestamp desc". The only LogEntry field supported for sorting is metadata.timestamp. The default sort order is ascending (from older to newer entries) unless desc is appended.

func (*ProjectsLogEntriesListCall) PageSize

PageSize sets the optional parameter "pageSize": The maximum number of entries to return per request. Fewer entries may be returned, but that is not an indication that there are no more entries.

func (*ProjectsLogEntriesListCall) PageToken

PageToken sets the optional parameter "pageToken": An opaque token, returned as nextPageToken by a prior ListLogEntries operation. If a page token is specified, other request parameters must match the parameters from the request that generated the page token.

func (*ProjectsLogEntriesListCall) Pages

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 ProjectsLogEntriesService

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

func NewProjectsLogEntriesService

func NewProjectsLogEntriesService(s *Service) *ProjectsLogEntriesService

func (*ProjectsLogEntriesService) List

List: Lists log entries in the specified project.

type ProjectsLogServicesIndexesListCall

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

func (*ProjectsLogServicesIndexesListCall) Context

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 (*ProjectsLogServicesIndexesListCall) Depth

Depth sets the optional parameter "depth": A non-negative integer that limits the number of levels of the index hierarchy that are returned. If depth is 1 (default), only the first index key value is returned. If depth is 2, both primary and secondary key values are returned. If depth is 0, the depth is the number of slash-separators in the indexPrefix field, not counting a slash appearing as the last character of the prefix. If the indexPrefix field is empty, the default depth is 1. It is an error for depth to be any positive value less than the number of components in indexPrefix.

func (*ProjectsLogServicesIndexesListCall) Do

Do executes the "logging.projects.logServices.indexes.list" call. Exactly one of *ListLogServiceIndexesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListLogServiceIndexesResponse.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 (*ProjectsLogServicesIndexesListCall) Fields

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

func (*ProjectsLogServicesIndexesListCall) IfNoneMatch

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 (*ProjectsLogServicesIndexesListCall) IndexPrefix

IndexPrefix sets the optional parameter "indexPrefix": Restricts the index values returned to be those with a specified prefix for each index key. This field has the form "/prefix1/prefix2/...", in order corresponding to the LogService indexKeys. Non-empty prefixes must begin with /. For example, App Engine's two keys are the module ID and the version ID. Following is the effect of using various values for indexPrefix: "/Mod/" retrieves /Mod/10 and /Mod/11 but not /ModA/10. "/Mod retrieves /Mod/10, /Mod/11 and /ModA/10 but not /XXX/33. "/Mod/1" retrieves /Mod/10 and /Mod/11 but not /ModA/10. "/Mod/10/" retrieves /Mod/10 only. An empty prefix or "/" retrieves all values.

func (*ProjectsLogServicesIndexesListCall) PageSize

PageSize sets the optional parameter "pageSize": The maximum number of log service index resources to return in one operation.

func (*ProjectsLogServicesIndexesListCall) PageToken

PageToken sets the optional parameter "pageToken": An opaque token, returned as nextPageToken by a prior ListLogServiceIndexes operation. If pageToken is supplied, then the other fields of this request are ignored, and instead the previous ListLogServiceIndexes operation is continued.

func (*ProjectsLogServicesIndexesListCall) Pages

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 ProjectsLogServicesIndexesService

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

func NewProjectsLogServicesIndexesService

func NewProjectsLogServicesIndexesService(s *Service) *ProjectsLogServicesIndexesService

func (*ProjectsLogServicesIndexesService) List

List: Lists the current index values for a log service.

type ProjectsLogServicesListCall

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

func (*ProjectsLogServicesListCall) Context

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 (*ProjectsLogServicesListCall) Do

Do executes the "logging.projects.logServices.list" call. Exactly one of *ListLogServicesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListLogServicesResponse.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 (*ProjectsLogServicesListCall) Fields

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

func (*ProjectsLogServicesListCall) IfNoneMatch

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 (*ProjectsLogServicesListCall) PageSize

PageSize sets the optional parameter "pageSize": The maximum number of LogService objects to return in one operation.

func (*ProjectsLogServicesListCall) PageToken

PageToken sets the optional parameter "pageToken": An opaque token, returned as nextPageToken by a prior ListLogServices operation. If pageToken is supplied, then the other fields of this request are ignored, and instead the previous ListLogServices operation is continued.

func (*ProjectsLogServicesListCall) Pages

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 ProjectsLogServicesService

type ProjectsLogServicesService struct {
	Indexes *ProjectsLogServicesIndexesService

	Sinks *ProjectsLogServicesSinksService
	// contains filtered or unexported fields
}

func NewProjectsLogServicesService

func NewProjectsLogServicesService(s *Service) *ProjectsLogServicesService

func (*ProjectsLogServicesService) List

List: Lists the log services that have log entries in this project.

type ProjectsLogServicesSinksCreateCall

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

func (*ProjectsLogServicesSinksCreateCall) Context

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 (*ProjectsLogServicesSinksCreateCall) Do

Do executes the "logging.projects.logServices.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 (*ProjectsLogServicesSinksCreateCall) Fields

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

type ProjectsLogServicesSinksDeleteCall

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

func (*ProjectsLogServicesSinksDeleteCall) Context

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 (*ProjectsLogServicesSinksDeleteCall) Do

Do executes the "logging.projects.logServices.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 (*ProjectsLogServicesSinksDeleteCall) Fields

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

type ProjectsLogServicesSinksGetCall

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

func (*ProjectsLogServicesSinksGetCall) Context

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 (*ProjectsLogServicesSinksGetCall) Do

Do executes the "logging.projects.logServices.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 (*ProjectsLogServicesSinksGetCall) Fields

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

func (*ProjectsLogServicesSinksGetCall) IfNoneMatch

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 ProjectsLogServicesSinksListCall

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

func (*ProjectsLogServicesSinksListCall) Context

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 (*ProjectsLogServicesSinksListCall) Do

Do executes the "logging.projects.logServices.sinks.list" call. Exactly one of *ListLogServiceSinksResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListLogServiceSinksResponse.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 (*ProjectsLogServicesSinksListCall) Fields

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

func (*ProjectsLogServicesSinksListCall) IfNoneMatch

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 ProjectsLogServicesSinksService

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

func NewProjectsLogServicesSinksService

func NewProjectsLogServicesSinksService(s *Service) *ProjectsLogServicesSinksService

func (*ProjectsLogServicesSinksService) Create

func (r *ProjectsLogServicesSinksService) Create(projectsId string, logServicesId string, logsink *LogSink) *ProjectsLogServicesSinksCreateCall

Create: Creates a log service sink. All log entries from a specified log service are written to the destination.

func (*ProjectsLogServicesSinksService) Delete

func (r *ProjectsLogServicesSinksService) Delete(projectsId string, logServicesId string, sinksId string) *ProjectsLogServicesSinksDeleteCall

Delete: Deletes a log service sink. After deletion, no new log entries are written to the destination.

func (*ProjectsLogServicesSinksService) Get

func (r *ProjectsLogServicesSinksService) Get(projectsId string, logServicesId string, sinksId string) *ProjectsLogServicesSinksGetCall

Get: Gets a log service sink.

func (*ProjectsLogServicesSinksService) List

List: Lists log service sinks associated with a log service.

func (*ProjectsLogServicesSinksService) Update

func (r *ProjectsLogServicesSinksService) Update(projectsId string, logServicesId string, sinksId string, logsink *LogSink) *ProjectsLogServicesSinksUpdateCall

Update: Updates a log service sink. If the sink does not exist, it is created.

type ProjectsLogServicesSinksUpdateCall

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

func (*ProjectsLogServicesSinksUpdateCall) Context

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 (*ProjectsLogServicesSinksUpdateCall) Do

Do executes the "logging.projects.logServices.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 (*ProjectsLogServicesSinksUpdateCall) Fields

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

type ProjectsLogsDeleteCall

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

func (*ProjectsLogsDeleteCall) Context

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

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

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

type ProjectsLogsEntriesService

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

func NewProjectsLogsEntriesService

func NewProjectsLogsEntriesService(s *Service) *ProjectsLogsEntriesService

func (*ProjectsLogsEntriesService) Write

func (r *ProjectsLogsEntriesService) Write(projectsId string, logsId string, writelogentriesrequest *WriteLogEntriesRequest) *ProjectsLogsEntriesWriteCall

Write: Writes log entries to Stackdriver Logging. Each entry consists of a LogEntry object. You must fill in the required fields of the object. You can supply a map, commonLabels, that holds default (key, value) data for the entries[].metadata.labels map in each entry, saving you the trouble of creating identical copies for each entry.

type ProjectsLogsEntriesWriteCall

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

func (*ProjectsLogsEntriesWriteCall) Context

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 (*ProjectsLogsEntriesWriteCall) Do

Do executes the "logging.projects.logs.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 (*ProjectsLogsEntriesWriteCall) Fields

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

type ProjectsLogsListCall

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

func (*ProjectsLogsListCall) Context

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

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

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

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.

func (*ProjectsLogsListCall) PageToken

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

PageToken sets the optional parameter "pageToken": An opaque token, returned as nextPageToken by a prior ListLogs operation. If pageToken is supplied, then the other fields of this request are ignored, and instead the previous ListLogs operation is continued.

func (*ProjectsLogsListCall) Pages

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

func (*ProjectsLogsListCall) ServiceIndexPrefix

func (c *ProjectsLogsListCall) ServiceIndexPrefix(serviceIndexPrefix string) *ProjectsLogsListCall

ServiceIndexPrefix sets the optional parameter "serviceIndexPrefix": The purpose of this field is to restrict the listed logs to those with entries of a certain kind. If serviceName is the name of a log service, then this field may contain values for the log service's indexes. Only logs that have entries whose indexes include the values are listed. The format for this field is "/val1/val2.../valN", where val1 is a value for the first index, val2 for the second index, etc. An empty value (a single slash) for an index matches all values, and you can omit values for later indexes entirely.

func (*ProjectsLogsListCall) ServiceName

func (c *ProjectsLogsListCall) ServiceName(serviceName string) *ProjectsLogsListCall

ServiceName sets the optional parameter "serviceName": If not empty, this field must be a log service name such as "compute.googleapis.com". Only logs associated with that that log service are listed.

type ProjectsLogsService

type ProjectsLogsService struct {
	Entries *ProjectsLogsEntriesService

	Sinks *ProjectsLogsSinksService
	// contains filtered or unexported fields
}

func NewProjectsLogsService

func NewProjectsLogsService(s *Service) *ProjectsLogsService

func (*ProjectsLogsService) Delete

func (r *ProjectsLogsService) Delete(projectsId string, logsId string) *ProjectsLogsDeleteCall

Delete: Deletes a log and all its log entries. The log will reappear if it receives new entries.

func (*ProjectsLogsService) List

func (r *ProjectsLogsService) List(projectsId string) *ProjectsLogsListCall

List: Lists the logs in the project. Only logs that have entries are listed.

type ProjectsLogsSinksCreateCall

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

func (*ProjectsLogsSinksCreateCall) Context

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 (*ProjectsLogsSinksCreateCall) Do

Do executes the "logging.projects.logs.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 (*ProjectsLogsSinksCreateCall) Fields

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

type ProjectsLogsSinksDeleteCall

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

func (*ProjectsLogsSinksDeleteCall) Context

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 (*ProjectsLogsSinksDeleteCall) Do

Do executes the "logging.projects.logs.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 (*ProjectsLogsSinksDeleteCall) Fields

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

type ProjectsLogsSinksGetCall

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

func (*ProjectsLogsSinksGetCall) Context

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 (*ProjectsLogsSinksGetCall) Do

Do executes the "logging.projects.logs.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 (*ProjectsLogsSinksGetCall) Fields

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

func (*ProjectsLogsSinksGetCall) IfNoneMatch

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

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 ProjectsLogsSinksListCall

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

func (*ProjectsLogsSinksListCall) Context

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 (*ProjectsLogsSinksListCall) Do

Do executes the "logging.projects.logs.sinks.list" call. Exactly one of *ListLogSinksResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListLogSinksResponse.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 (*ProjectsLogsSinksListCall) Fields

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

func (*ProjectsLogsSinksListCall) IfNoneMatch

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

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 ProjectsLogsSinksService

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

func NewProjectsLogsSinksService

func NewProjectsLogsSinksService(s *Service) *ProjectsLogsSinksService

func (*ProjectsLogsSinksService) Create

func (r *ProjectsLogsSinksService) Create(projectsId string, logsId string, logsink *LogSink) *ProjectsLogsSinksCreateCall

Create: Creates a log sink. All log entries for a specified log are written to the destination.

func (*ProjectsLogsSinksService) Delete

func (r *ProjectsLogsSinksService) Delete(projectsId string, logsId string, sinksId string) *ProjectsLogsSinksDeleteCall

Delete: Deletes a log sink. After deletion, no new log entries are written to the destination.

func (*ProjectsLogsSinksService) Get

func (r *ProjectsLogsSinksService) Get(projectsId string, logsId string, sinksId string) *ProjectsLogsSinksGetCall

Get: Gets a log sink.

func (*ProjectsLogsSinksService) List

func (r *ProjectsLogsSinksService) List(projectsId string, logsId string) *ProjectsLogsSinksListCall

List: Lists log sinks associated with a log.

func (*ProjectsLogsSinksService) Update

func (r *ProjectsLogsSinksService) Update(projectsId string, logsId string, sinksId string, logsink *LogSink) *ProjectsLogsSinksUpdateCall

Update: Updates a log sink. If the sink does not exist, it is created.

type ProjectsLogsSinksUpdateCall

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

func (*ProjectsLogsSinksUpdateCall) Context

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 (*ProjectsLogsSinksUpdateCall) Do

Do executes the "logging.projects.logs.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 (*ProjectsLogsSinksUpdateCall) Fields

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

type ProjectsMetricsCreateCall

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

func (*ProjectsMetricsCreateCall) Context

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

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

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

type ProjectsMetricsDeleteCall

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

func (*ProjectsMetricsDeleteCall) Context

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

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

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

type ProjectsMetricsGetCall

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

func (*ProjectsMetricsGetCall) Context

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

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

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

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

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

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

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

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

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(projectsId string, logmetric *LogMetric) *ProjectsMetricsCreateCall

Create: Creates a logs-based metric.

func (*ProjectsMetricsService) Delete

func (r *ProjectsMetricsService) Delete(projectsId string, metricsId string) *ProjectsMetricsDeleteCall

Delete: Deletes a logs-based metric.

func (*ProjectsMetricsService) Get

func (r *ProjectsMetricsService) Get(projectsId string, metricsId string) *ProjectsMetricsGetCall

Get: Gets a logs-based metric.

func (*ProjectsMetricsService) List

List: Lists the logs-based metrics associated with a project.

func (*ProjectsMetricsService) Update

func (r *ProjectsMetricsService) Update(projectsId string, metricsId 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

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

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

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

type ProjectsService

type ProjectsService struct {
	Entries *ProjectsEntriesService

	LogEntries *ProjectsLogEntriesService

	LogServices *ProjectsLogServicesService

	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

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

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

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

type ProjectsSinksDeleteCall

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

func (*ProjectsSinksDeleteCall) Context

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

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

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

type ProjectsSinksGetCall

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

func (*ProjectsSinksGetCall) Context

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

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

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

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

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

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

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

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.

type ProjectsSinksService

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

func NewProjectsSinksService

func NewProjectsSinksService(s *Service) *ProjectsSinksService

func (*ProjectsSinksService) Create

func (r *ProjectsSinksService) Create(projectsId string, logsink *LogSink) *ProjectsSinksCreateCall

Create: Creates a project sink. A logs filter determines which log entries are written to the destination.

func (*ProjectsSinksService) Delete

func (r *ProjectsSinksService) Delete(projectsId string, sinksId string) *ProjectsSinksDeleteCall

Delete: Deletes a project sink. After deletion, no new log entries are written to the destination.

func (*ProjectsSinksService) Get

func (r *ProjectsSinksService) Get(projectsId string, sinksId string) *ProjectsSinksGetCall

Get: Gets a project sink.

func (*ProjectsSinksService) List

func (r *ProjectsSinksService) List(projectsId string) *ProjectsSinksListCall

List: Lists project sinks associated with a project.

func (*ProjectsSinksService) Update

func (r *ProjectsSinksService) Update(projectsId string, sinksId string, logsink *LogSink) *ProjectsSinksUpdateCall

Update: Updates a project sink. If the sink does not exist, it is created. The destination, filter, or both may be updated.

type ProjectsSinksUpdateCall

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

func (*ProjectsSinksUpdateCall) Context

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

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

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

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

RequestLog: Complete log information about a single HTTP request to an App Engine application.

func (*RequestLog) MarshalJSON

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

type Service

type Service struct {
	BasePath  string // API endpoint base URL
	UserAgent string // optional additional User-Agent fragment

	Projects *ProjectsService
	// contains filtered or unexported fields
}

func New

func New(client *http.Client) (*Service, error)

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

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

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 Status

type Status struct {
	// Code: The status code, which should be an enum value of
	// google.rpc.Code.
	Code int64 `json:"code,omitempty"`

	// Details: A list of messages that carry the error details. There will
	// be a common set of message types for APIs to use.
	Details []StatusDetails `json:"details,omitempty"`

	// Message: A developer-facing error message, which should be in
	// English. Any user-facing error message should be localized and sent
	// in the google.rpc.Status.details field, or localized by the client.
	Message string `json:"message,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Code") 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:"-"`
}

Status: The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). The error model is designed to be: Simple to use and understand for most users Flexible enough to meet unexpected needsOverviewThe Status message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers understand and resolve the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package google.rpc which can be used for common error conditions.Language mappingThe Status message is the logical representation of the error model, but it is not necessarily the actual wire format. When the Status message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C.Other usesThe error model and the Status message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments.Example uses of this error model include: Partial errors. If a service needs to return partial errors to the client, it may embed the Status in the normal response to indicate the partial errors. Workflow errors. A typical workflow has multiple steps. Each step may have a Status message for error reporting purpose. Batch operations. If a client uses batch request and batch response, the Status message should be used directly inside batch response, one for each error sub-response. Asynchronous operations. If an API call embeds asynchronous operation results in its response, the status of those operations should be represented directly using the Status message. Logging. If some API errors are stored in logs, the message Status could be used directly after any stripping needed for security/privacy reasons.

func (*Status) MarshalJSON

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

type StatusDetails

type StatusDetails interface{}

type WriteLogEntriesRequest

type WriteLogEntriesRequest struct {
	// CommonLabels: Metadata labels that apply to all log entries in this
	// request, so that you don't have to repeat them in each log entry's
	// metadata.labels field. If any of the log entries contains a (key,
	// value) with the same key that is in commonLabels, then the entry's
	// (key, value) overrides the one in commonLabels.
	CommonLabels map[string]string `json:"commonLabels,omitempty"`

	// Entries: Log entries to write.
	Entries []*LogEntry `json:"entries,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"`

	// ForceSendFields is a list of field names (e.g. "CommonLabels") 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:"-"`
}

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

Jump to

Keyboard shortcuts

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