Documentation ¶
Overview ¶
Package logging provides access to the Google Cloud Logging API.
See https://cloud.google.com/logging/docs/
Usage example:
import "google.golang.org/api/logging/v1beta3" ... loggingService, err := logging.New(oauthHttpClient)
Index ¶
- Constants
- type AuditData
- type AuditLog
- type AuditLogServiceData
- type AuthenticationInfo
- type AuthorizationInfo
- type BigQueryAcl
- type Dataset
- type DatasetInfo
- type DatasetInsertRequest
- type DatasetInsertResponse
- type DatasetListRequest
- type DatasetName
- type DatasetUpdateRequest
- type DatasetUpdateResponse
- type Empty
- type Entry
- type Extract
- type FieldSchema
- type HttpRequest
- type Job
- type JobConfiguration
- type JobGetQueryResultsRequest
- type JobGetQueryResultsResponse
- type JobInsertRequest
- type JobName
- type JobQueryDoneResponse
- type JobQueryRequest
- type JobQueryResponse
- type JobStatistics
- type JobStatus
- type ListLogServiceIndexesResponse
- type ListLogServiceSinksResponse
- type ListLogServicesResponse
- type ListLogSinksResponse
- type ListLogsResponse
- type ListSinksResponse
- type Load
- type Log
- type LogEntry
- type LogEntryMetadata
- type LogEntryProtoPayload
- type LogEntryStructPayload
- type LogError
- type LogLine
- type LogService
- type LogSink
- type Money
- type ProjectsLogServicesIndexesListCall
- func (c *ProjectsLogServicesIndexesListCall) Depth(depth int64) *ProjectsLogServicesIndexesListCall
- func (c *ProjectsLogServicesIndexesListCall) Do() (*ListLogServiceIndexesResponse, error)
- func (c *ProjectsLogServicesIndexesListCall) Fields(s ...googleapi.Field) *ProjectsLogServicesIndexesListCall
- func (c *ProjectsLogServicesIndexesListCall) IndexPrefix(indexPrefix string) *ProjectsLogServicesIndexesListCall
- func (c *ProjectsLogServicesIndexesListCall) Log(log string) *ProjectsLogServicesIndexesListCall
- func (c *ProjectsLogServicesIndexesListCall) PageSize(pageSize int64) *ProjectsLogServicesIndexesListCall
- func (c *ProjectsLogServicesIndexesListCall) PageToken(pageToken string) *ProjectsLogServicesIndexesListCall
- type ProjectsLogServicesIndexesService
- type ProjectsLogServicesListCall
- func (c *ProjectsLogServicesListCall) Do() (*ListLogServicesResponse, error)
- func (c *ProjectsLogServicesListCall) Fields(s ...googleapi.Field) *ProjectsLogServicesListCall
- func (c *ProjectsLogServicesListCall) Log(log string) *ProjectsLogServicesListCall
- func (c *ProjectsLogServicesListCall) PageSize(pageSize int64) *ProjectsLogServicesListCall
- func (c *ProjectsLogServicesListCall) PageToken(pageToken string) *ProjectsLogServicesListCall
- type ProjectsLogServicesService
- type ProjectsLogServicesSinksCreateCall
- type ProjectsLogServicesSinksDeleteCall
- type ProjectsLogServicesSinksGetCall
- type ProjectsLogServicesSinksListCall
- type ProjectsLogServicesSinksService
- func (r *ProjectsLogServicesSinksService) Create(projectsId string, logServicesId string, logsink *LogSink) *ProjectsLogServicesSinksCreateCall
- func (r *ProjectsLogServicesSinksService) Delete(projectsId string, logServicesId string, sinksId string) *ProjectsLogServicesSinksDeleteCall
- func (r *ProjectsLogServicesSinksService) Get(projectsId string, logServicesId string, sinksId string) *ProjectsLogServicesSinksGetCall
- func (r *ProjectsLogServicesSinksService) List(projectsId string, logServicesId string) *ProjectsLogServicesSinksListCall
- func (r *ProjectsLogServicesSinksService) Update(projectsId string, logServicesId string, sinksId string, logsink *LogSink) *ProjectsLogServicesSinksUpdateCall
- type ProjectsLogServicesSinksUpdateCall
- type ProjectsLogsDeleteCall
- type ProjectsLogsEntriesService
- type ProjectsLogsEntriesWriteCall
- type ProjectsLogsListCall
- func (c *ProjectsLogsListCall) Do() (*ListLogsResponse, error)
- func (c *ProjectsLogsListCall) Fields(s ...googleapi.Field) *ProjectsLogsListCall
- func (c *ProjectsLogsListCall) PageSize(pageSize int64) *ProjectsLogsListCall
- func (c *ProjectsLogsListCall) PageToken(pageToken string) *ProjectsLogsListCall
- func (c *ProjectsLogsListCall) ServiceIndexPrefix(serviceIndexPrefix string) *ProjectsLogsListCall
- func (c *ProjectsLogsListCall) ServiceName(serviceName string) *ProjectsLogsListCall
- type ProjectsLogsService
- type ProjectsLogsSinksCreateCall
- type ProjectsLogsSinksDeleteCall
- type ProjectsLogsSinksGetCall
- type ProjectsLogsSinksListCall
- type ProjectsLogsSinksService
- func (r *ProjectsLogsSinksService) Create(projectsId string, logsId string, logsink *LogSink) *ProjectsLogsSinksCreateCall
- func (r *ProjectsLogsSinksService) Delete(projectsId string, logsId string, sinksId string) *ProjectsLogsSinksDeleteCall
- func (r *ProjectsLogsSinksService) Get(projectsId string, logsId string, sinksId string) *ProjectsLogsSinksGetCall
- func (r *ProjectsLogsSinksService) List(projectsId string, logsId string) *ProjectsLogsSinksListCall
- func (r *ProjectsLogsSinksService) Update(projectsId string, logsId string, sinksId string, logsink *LogSink) *ProjectsLogsSinksUpdateCall
- type ProjectsLogsSinksUpdateCall
- type ProjectsService
- type ProjectsSinksCreateCall
- type ProjectsSinksDeleteCall
- type ProjectsSinksGetCall
- type ProjectsSinksListCall
- type ProjectsSinksService
- func (r *ProjectsSinksService) Create(projectsId string, logsink *LogSink) *ProjectsSinksCreateCall
- func (r *ProjectsSinksService) Delete(projectsId string, sinksId string) *ProjectsSinksDeleteCall
- func (r *ProjectsSinksService) Get(projectsId string, sinksId string) *ProjectsSinksGetCall
- func (r *ProjectsSinksService) List(projectsId string) *ProjectsSinksListCall
- func (r *ProjectsSinksService) Update(projectsId string, sinksId string, logsink *LogSink) *ProjectsSinksUpdateCall
- type ProjectsSinksUpdateCall
- type Query
- type RequestLog
- type RequestMetadata
- type Service
- type SourceLocation
- type SourceReference
- type Status
- type StatusDetails
- type Table
- type TableCopy
- type TableDataListRequest
- type TableDefinition
- type TableInfo
- type TableInsertRequest
- type TableInsertResponse
- type TableName
- type TableSchema
- type TableUpdateRequest
- type TableUpdateResponse
- type TableViewDefinition
- type WriteLogEntriesRequest
- type WriteLogEntriesResponse
Constants ¶
const ( // View and manage your data across Google Cloud Platform services CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" // 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 AuditData ¶
type AuditData struct { // DatasetInsertRequest: Dataset insert request. DatasetInsertRequest *DatasetInsertRequest `json:"datasetInsertRequest,omitempty"` // DatasetInsertResponse: Dataset insert response. DatasetInsertResponse *DatasetInsertResponse `json:"datasetInsertResponse,omitempty"` // DatasetListRequest: Dataset list request. DatasetListRequest *DatasetListRequest `json:"datasetListRequest,omitempty"` // DatasetUpdateRequest: Dataset update request. DatasetUpdateRequest *DatasetUpdateRequest `json:"datasetUpdateRequest,omitempty"` // DatasetUpdateResponse: Dataset update response. DatasetUpdateResponse *DatasetUpdateResponse `json:"datasetUpdateResponse,omitempty"` // JobGetQueryResultsRequest: Job get query results request. JobGetQueryResultsRequest *JobGetQueryResultsRequest `json:"jobGetQueryResultsRequest,omitempty"` // JobGetQueryResultsResponse: Job get query results response. JobGetQueryResultsResponse *JobGetQueryResultsResponse `json:"jobGetQueryResultsResponse,omitempty"` // JobInsertRequest: Job insert request. JobInsertRequest *JobInsertRequest `json:"jobInsertRequest,omitempty"` // JobQueryDoneResponse: Job query-done response. Use this information // for usage analysis. JobQueryDoneResponse *JobQueryDoneResponse `json:"jobQueryDoneResponse,omitempty"` // JobQueryRequest: Job query request. JobQueryRequest *JobQueryRequest `json:"jobQueryRequest,omitempty"` // JobQueryResponse: Job query response. JobQueryResponse *JobQueryResponse `json:"jobQueryResponse,omitempty"` // TableDataListRequest: Table data-list request. TableDataListRequest *TableDataListRequest `json:"tableDataListRequest,omitempty"` // TableInsertRequest: Table insert request. TableInsertRequest *TableInsertRequest `json:"tableInsertRequest,omitempty"` // TableInsertResponse: Table insert response. TableInsertResponse *TableInsertResponse `json:"tableInsertResponse,omitempty"` // TableUpdateRequest: Table update request. TableUpdateRequest *TableUpdateRequest `json:"tableUpdateRequest,omitempty"` // TableUpdateResponse: Table update response. TableUpdateResponse *TableUpdateResponse `json:"tableUpdateResponse,omitempty"` }
AuditData: BigQuery request and response messages for audit log.
type AuditLog ¶
type AuditLog struct { // AuthenticationInfo: Authentication information about the call. AuthenticationInfo *AuthenticationInfo `json:"authenticationInfo,omitempty"` // AuthorizationInfo: Authorization information about the call. If there // are multiple resources or permissions involved in authorizing the // request, there will be one AuthorizationInfo element for each // {resource, permission} tuple. AuthorizationInfo []*AuthorizationInfo `json:"authorizationInfo,omitempty"` // BigqueryData: Service-specific data for BigQuery. BigqueryData *AuditData `json:"bigqueryData,omitempty"` // MethodName: Name of the service method or operation. Defined by the // service. For API call events, should match the name of the API // method. For example, `google.datastore.v1.Datastore.RunQuery` // `google.logging.v1.LoggingService.DeleteLog` MethodName string `json:"methodName,omitempty"` // NumResponseItems: If applicable, the number of items returned from a // List or Query API method. NumResponseItems int64 `json:"numResponseItems,omitempty,string"` // RequestMetadata: Metadata about the request. RequestMetadata *RequestMetadata `json:"requestMetadata,omitempty"` // ResourceName: Resource name of the resource or collection that is the // target of this request, as a scheme-less URI, not including the API // service name. For example: shelves/shelf_id/books // shelves/shelf_id/books/book_id ResourceName string `json:"resourceName,omitempty"` // ServiceData: Service specific data about the request, response, and // other event data. This should include all request parameters or // response elements, except for parameters that are large or // privacy-sensitive. It should never contain user-generated data (such // as file contents). ServiceData AuditLogServiceData `json:"serviceData,omitempty"` // ServiceName: Name of the API service for the request. e.g., // datastore.googleapis.com ServiceName string `json:"serviceName,omitempty"` // Status: The status of the overall API call. Status *Status `json:"status,omitempty"` }
AuditLog: Common audit log format for Google Cloud Platform API calls.
type AuditLogServiceData ¶
type AuditLogServiceData interface{}
type AuthenticationInfo ¶
type AuthenticationInfo struct { // PrincipalEmail: Email address of the authenticated user making the // request PrincipalEmail string `json:"principalEmail,omitempty"` }
AuthenticationInfo: Authentication information for the call.
type AuthorizationInfo ¶
type AuthorizationInfo struct { // Granted: Whether or not authorization for this resource and // permission was granted. Granted bool `json:"granted,omitempty"` // Permission: The required IAM permission. Permission string `json:"permission,omitempty"` // Resource: The resource being accessed, as a REST-style string. For // example: // `bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID` Resource string `json:"resource,omitempty"` }
AuthorizationInfo: Authorization information for the call.
type BigQueryAcl ¶
type BigQueryAcl struct { // Entries: Access control entry list. Entries []*Entry `json:"entries,omitempty"` }
BigQueryAcl: Access control list.
type Dataset ¶
type Dataset struct { // Acl: Access contol list for this dataset. Acl *BigQueryAcl `json:"acl,omitempty"` // CreateTime: The creation time for this dataset. CreateTime string `json:"createTime,omitempty"` // DatasetName: The name of this dataset. DatasetName *DatasetName `json:"datasetName,omitempty"` // DefaultTableExpireDuration: The number of milliseconds which should // be added to the creation time to determine the expiration time for // newly created tables. If this value is null then no expiration time // will be set for new tables. DefaultTableExpireDuration string `json:"defaultTableExpireDuration,omitempty"` // Info: User-modifiable metadata for this dataset. Info *DatasetInfo `json:"info,omitempty"` // UpdateTime: The last modified time for this dataset. UpdateTime string `json:"updateTime,omitempty"` }
Dataset: BigQuery dataset information.
type DatasetInfo ¶
type DatasetInfo struct { // Description: The description of a dataset. This can be several // sentences or paragraphs describing the dataset contents in detail. Description string `json:"description,omitempty"` // FriendlyName: The human-readable name of a dataset. This should be a // short phrase identifying the dataset (e.g., "Analytics Data 2011"). FriendlyName string `json:"friendlyName,omitempty"` }
DatasetInfo: User-provided metadata for a dataset, primarily for display in the UI.
type DatasetInsertRequest ¶
type DatasetInsertRequest struct { // Resource: Dataset insert payload. Resource *Dataset `json:"resource,omitempty"` }
DatasetInsertRequest: Dataset insert request.
type DatasetInsertResponse ¶
type DatasetInsertResponse struct { // Resource: Final state of inserted dataset. Resource *Dataset `json:"resource,omitempty"` }
DatasetInsertResponse: Dataset insert response.
type DatasetListRequest ¶
type DatasetListRequest struct { // ListAll: Whether to list all datasets, including hidden ones. ListAll bool `json:"listAll,omitempty"` }
DatasetListRequest: Dataset list request.
type DatasetName ¶
type DatasetName struct { // DatasetId: The ID of the dataset (scoped to the project above). DatasetId string `json:"datasetId,omitempty"` // ProjectId: A string containing the id of this project. The id may be // the alphanumeric project ID, or the project number. ProjectId string `json:"projectId,omitempty"` }
DatasetName: Fully qualified name for a dataset.
type DatasetUpdateRequest ¶
type DatasetUpdateRequest struct { // Resource: Dataset update payload. Resource *Dataset `json:"resource,omitempty"` }
DatasetUpdateRequest: Dataset update request.
type DatasetUpdateResponse ¶
type DatasetUpdateResponse struct { // Resource: Final state of updated dataset. Resource *Dataset `json:"resource,omitempty"` }
DatasetUpdateResponse: Dataset update response.
type Empty ¶
type Empty struct { }
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 Entry ¶
type Entry struct { // Domain: Grants access to all members of a domain. Domain string `json:"domain,omitempty"` // GroupEmail: Grants access to a group, by e-mail. GroupEmail string `json:"groupEmail,omitempty"` // Role: Granted role. Valid roles are READER, WRITER, OWNER. Role string `json:"role,omitempty"` // SpecialGroup: Grants access to special groups. Valid groups are // PROJECT_OWNERS, PROJECT_READERS, PROJECT_WRITERS and // ALL_AUTHENTICATED_USERS. SpecialGroup string `json:"specialGroup,omitempty"` // UserEmail: Grants access to a user, by e-mail. UserEmail string `json:"userEmail,omitempty"` // ViewName: Grants access to a BigQuery View. ViewName *TableName `json:"viewName,omitempty"` }
Entry: Access control entry.
type Extract ¶
type Extract struct { // DestinationUris: URI or URIs where extracted data should be written. // Currently, only Bigstore URIs are supported (e.g., // "gs://bucket/object"). If more than one URI given, output will be // divided into 'partitions' of data, with each partition containing one // or more files. If more than one URI is given, each URI must contain // exactly one '*' which will be replaced with the file number (within // the partition) padded out to 9 digits. DestinationUris []string `json:"destinationUris,omitempty"` // SourceTable: Source table. SourceTable *TableName `json:"sourceTable,omitempty"` }
Extract: Describes an extract job, which exports data to an external source via the export pipeline.
type FieldSchema ¶
type FieldSchema struct { // Mode: Column mode Mode string `json:"mode,omitempty"` // Name: Column name Matches: [A-Za-z_][A-Za-z_0-9]{0,127} Name string `json:"name,omitempty"` // Schema: Present iff type == RECORD. Schema *TableSchema `json:"schema,omitempty"` // Type: Column type Type string `json:"type,omitempty"` }
FieldSchema: BigQuery field schema.
type HttpRequest ¶
type HttpRequest struct { // Referer: Referer (a.k.a. referrer) URL of request, as defined in // http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html. Referer string `json:"referer,omitempty"` // RemoteIp: IP address of the client who issues the HTTP request. Could // be either IPv4 or IPv6. RemoteIp string `json:"remoteIp,omitempty"` // RequestMethod: Request method, such as `GET`, `HEAD`, `PUT` or // `POST`. RequestMethod string `json:"requestMethod,omitempty"` // RequestSize: Size of the HTTP request message in bytes, including // request headers and the request body. RequestSize int64 `json:"requestSize,omitempty,string"` // RequestUrl: Contains the scheme (http|https), the host name, the path // and the query portion of the URL that was requested. RequestUrl string `json:"requestUrl,omitempty"` // ResponseSize: Size of the HTTP response message in bytes sent back to // the client, including response headers and response body. ResponseSize int64 `json:"responseSize,omitempty,string"` // Status: A response code indicates the status of response, e.g., 200. Status int64 `json:"status,omitempty"` // UserAgent: User agent sent by the client, e.g., "Mozilla/4.0 // (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)". UserAgent string `json:"userAgent,omitempty"` }
HttpRequest: A common proto for logging HTTP requests.
type Job ¶
type Job struct { // JobConfiguration: Job configuration. JobConfiguration *JobConfiguration `json:"jobConfiguration,omitempty"` // JobName: Job name. JobName *JobName `json:"jobName,omitempty"` // JobStatistics: Job statistics. JobStatistics *JobStatistics `json:"jobStatistics,omitempty"` // JobStatus: Job status. JobStatus *JobStatus `json:"jobStatus,omitempty"` }
Job: Combines all of the information about a job.
type JobConfiguration ¶
type JobConfiguration struct { // DryRun: If set, don't actually run the job. Just check that it would // run. DryRun bool `json:"dryRun,omitempty"` // Extract: Extract job information. Extract *Extract `json:"extract,omitempty"` // Load: Load job information. Load *Load `json:"load,omitempty"` // Query: Query job information. Query *Query `json:"query,omitempty"` // TableCopy: TableCopy job information. TableCopy *TableCopy `json:"tableCopy,omitempty"` }
JobConfiguration: Job configuration information.
type JobGetQueryResultsRequest ¶
type JobGetQueryResultsRequest struct { // MaxResults: Maximum number of results to return. MaxResults int64 `json:"maxResults,omitempty"` // StartRow: Row number to start returning results from. StartRow uint64 `json:"startRow,omitempty,string"` }
JobGetQueryResultsRequest: Job get-query-results request.
type JobGetQueryResultsResponse ¶
type JobGetQueryResultsResponse struct { // Job: Job that was created to run the query. Includes job state, job // statistics, and job errors (if any). To determine whether the job has // completed, check that job.status.state == DONE. If // job.status.error_result is set, then the job failed. If the job has // not yet completed, call GetQueryResults again. Job *Job `json:"job,omitempty"` // TotalResults: Total number of results in query results. TotalResults uint64 `json:"totalResults,omitempty,string"` }
JobGetQueryResultsResponse: Job get-query-results response.
type JobInsertRequest ¶
type JobInsertRequest struct { // Resource: Job insert payload. Resource *Job `json:"resource,omitempty"` }
JobInsertRequest: Job insert request.
type JobName ¶
type JobName struct { // JobId: The ID of the job (scoped to the project above). JobId string `json:"jobId,omitempty"` // ProjectId: A string containing the id of this project. ProjectId string `json:"projectId,omitempty"` }
JobName: Fully-qualified name for a job.
type JobQueryDoneResponse ¶
type JobQueryDoneResponse struct { // Job: Usage information about completed job. Job *Job `json:"job,omitempty"` }
JobQueryDoneResponse: Job get query-done response.
type JobQueryRequest ¶
type JobQueryRequest struct { // DefaultDataset: Default dataset to use when tables in a query do not // have a dataset specified. DefaultDataset *DatasetName `json:"defaultDataset,omitempty"` // DryRun: If set, don't actually run the query. DryRun bool `json:"dryRun,omitempty"` // MaxResults: Maximum number of results to return. MaxResults int64 `json:"maxResults,omitempty"` // ProjectId: Project that the query should be charged to. ProjectId string `json:"projectId,omitempty"` // Query: The query to execute. Query string `json:"query,omitempty"` }
JobQueryRequest: Job query request.
type JobQueryResponse ¶
type JobQueryResponse struct { // Job: Information about queried job. Job *Job `json:"job,omitempty"` // TotalResults: The total number of rows in the complete query result // set. TotalResults uint64 `json:"totalResults,omitempty,string"` }
JobQueryResponse: Job query response.
type JobStatistics ¶
type JobStatistics struct { // CreateTime: Time when the job was created (in milliseconds since the // POSIX epoch). CreateTime string `json:"createTime,omitempty"` // EndTime: Time when the job ended. EndTime string `json:"endTime,omitempty"` // StartTime: Time when the job started. StartTime string `json:"startTime,omitempty"` // TotalProcessedBytes: Total bytes processed for a job. TotalProcessedBytes int64 `json:"totalProcessedBytes,omitempty,string"` }
JobStatistics: Job statistics that may change after a job starts.
type JobStatus ¶
type JobStatus struct { // Error: If the job did not complete successfully, this will contain an // error. Error *Status `json:"error,omitempty"` // State: State of a job: PENDING, RUNNING, DONE. Includes no // information about whether the job was successful or not. State string `json:"state,omitempty"` }
JobStatus: Running state of a job (whether it is running, failed, etc).
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 prefixes. ServiceIndexPrefixes []string `json:"serviceIndexPrefixes,omitempty"` }
ListLogServiceIndexesResponse: Result returned from ListLogServiceIndexesRequest.
type ListLogServiceSinksResponse ¶
type ListLogServiceSinksResponse struct { // Sinks: The requested log service sinks. If any of the returned // `LogSink` objects have an empty `destination` field, then call // `logServices.sinks.get` to retrieve the complete `LogSink` object. Sinks []*LogSink `json:"sinks,omitempty"` }
ListLogServiceSinksResponse: Result returned from `ListLogServiceSinks`.
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"` }
ListLogServicesResponse: Result returned from `ListLogServicesRequest`.
type ListLogSinksResponse ¶
type ListLogSinksResponse struct { // Sinks: The requested log sinks. If any of the returned `LogSink` // objects have an empty `destination` field, then call // `logServices.sinks.get` to retrieve the complete `LogSink` object. Sinks []*LogSink `json:"sinks,omitempty"` }
ListLogSinksResponse: Result returned from `ListLogSinks`.
type ListLogsResponse ¶
type ListLogsResponse struct { // Logs: A list of log resources. 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"` }
ListLogsResponse: Result returned from ListLogs.
type ListSinksResponse ¶
type ListSinksResponse struct { // Sinks: The requested sinks. Sinks []*LogSink `json:"sinks,omitempty"` }
ListSinksResponse: Result returned from `ListSinks`.
type Load ¶
type Load struct { // CreateDisposition: Describes when a job should create a table. CreateDisposition string `json:"createDisposition,omitempty"` // DestinationTable: table where the imported data should be written. DestinationTable *TableName `json:"destinationTable,omitempty"` // Schema: Schema for the data to be imported. Schema *TableSchema `json:"schema,omitempty"` // SourceUris: URIs for the data to be imported. Only Bigstore URIs are // supported (e.g., "gs://bucket/object"). SourceUris []string `json:"sourceUris,omitempty"` // WriteDisposition: Describes how writes should affect the table // associated with the job. WriteDisposition string `json:"writeDisposition,omitempty"` }
Load: Describes a load job, which loads data from an external source via the import pipeline.
type Log ¶
type Log struct { // DisplayName: Name used when displaying the log to the user (for // example, in a UI). Example: "activity_log" DisplayName string `json:"displayName,omitempty"` // Name: REQUIRED: The log's name. Example: // "compute.googleapis.com/activity_log". Name string `json:"name,omitempty"` // PayloadType: Type URL describing the expected payload type for the // log. PayloadType string `json:"payloadType,omitempty"` }
Log: A log object.
type LogEntry ¶
type LogEntry struct { // HttpRequest: Information about the HTTP request associated with this // log entry, if applicable. HttpRequest *HttpRequest `json:"httpRequest,omitempty"` // InsertId: A unique ID for the log entry. If you provide this field, // the logging service considers other log entries in the same log with // the same ID as duplicates which can be removed. InsertId string `json:"insertId,omitempty"` // Log: The log to which this entry belongs. When a log entry is // ingested, the value of this field is set by the logging system. Log string `json:"log,omitempty"` // Metadata: Information about the log entry. Metadata *LogEntryMetadata `json:"metadata,omitempty"` // ProtoPayload: The log entry payload, represented as a protocol buffer // that is expressed as a JSON object. You can only pass `protoPayload` // values that belong to a set of approved types. 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 text string. TextPayload string `json:"textPayload,omitempty"` }
LogEntry: An individual entry in a log.
type LogEntryMetadata ¶
type LogEntryMetadata struct { // Labels: 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", // "appengine.googleapis.com/version_id", and one of: // "appengine.googleapis.com/replica_index", // "appengine.googleapis.com/clone_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", Labels map[string]string `json:"labels,omitempty"` // ProjectId: The project ID of the Google Cloud Platform service that // created the log entry. ProjectId string `json:"projectId,omitempty"` // Region: The region name of the Google Cloud Platform service that // created the log entry. For example, "us-central1". Region string `json:"region,omitempty"` // ServiceName: 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: The severity of the log entry. // // Possible values: // "DEFAULT" // "DEBUG" // "INFO" // "NOTICE" // "WARNING" // "ERROR" // "CRITICAL" // "ALERT" // "EMERGENCY" Severity string `json:"severity,omitempty"` // Timestamp: The time the event described by the log entry occurred. // Timestamps must be later than January 1, 1970. Timestamp string `json:"timestamp,omitempty"` // UserId: The fully-qualified email address of the authenticated user // that performed or requested the action represented by the log entry. // If the log entry does not apply to an action taken by an // authenticated user, then the field should be empty. UserId string `json:"userId,omitempty"` // Zone: The zone of the Google Cloud Platform service that created the // log entry. For example, "us-central1-a". Zone string `json:"zone,omitempty"` }
LogEntryMetadata: Additional data that is associated with a log entry, set by the service creating the log entry.
type LogEntryProtoPayload ¶
type LogEntryProtoPayload interface{}
type LogEntryStructPayload ¶
type LogEntryStructPayload interface{}
type LogError ¶
type LogError struct { // Resource: The resource associated with the error. It may be different // from the sink destination. For example, the sink may point to a // BigQuery dataset, but the error may refer to a table resource inside // the dataset. Resource string `json:"resource,omitempty"` // Status: The description of the last error observed. Status *Status `json:"status,omitempty"` // TimeNanos: The last time the error was observed, in nanoseconds since // the Unix epoch. TimeNanos int64 `json:"timeNanos,omitempty,string"` }
LogError: A problem in a sink or the sink's configuration.
type LogLine ¶
type LogLine struct { // LogMessage: App provided log message. LogMessage string `json:"logMessage,omitempty"` // Severity: Severity of log. // // Possible values: // "DEFAULT" // "DEBUG" // "INFO" // "NOTICE" // "WARNING" // "ERROR" // "CRITICAL" // "ALERT" // "EMERGENCY" Severity string `json:"severity,omitempty"` // SourceLocation: Line of code that generated this log message. SourceLocation *SourceLocation `json:"sourceLocation,omitempty"` // Time: Time when log entry was made. May be inaccurate. Time string `json:"time,omitempty"` }
LogLine: Application log line emitted while processing a request.
type LogService ¶
type LogService struct { // IndexKeys: Label keys used when labeling log entries for this // service. The order of the keys is significant, with higher priority // keys coming earlier in the list. IndexKeys []string `json:"indexKeys,omitempty"` // Name: The service's name. Name string `json:"name,omitempty"` }
LogService: A log service object.
type LogSink ¶
type LogSink struct { // Destination: The resource to send log entries to. The supported sink // resource types are: + Google Cloud Storage: // `storage.googleapis.com/BUCKET` or `BUCKET.storage.googleapis.com/` + // Google BigQuery: // `bigquery.googleapis.com/projects/PROJECT/datasets/DATASET` Currently // the Cloud Logging API supports at most one sink for each resource // type per log or log service resource. Destination string `json:"destination,omitempty"` // Errors: _Output only._ All active errors found for this sink. Errors []*LogError `json:"errors,omitempty"` // Filter: One Platform filter expression. If provided, only the // messages matching the filter will be published. Filter string `json:"filter,omitempty"` // Name: The name of this sink. This is a client-assigned identifier for // the resource. This is ignored by UpdateLogSink and // UpdateLogServicesSink. Name string `json:"name,omitempty"` }
LogSink: An object that describes where a log may be written.
type Money ¶
type Money struct { // CurrencyCode: The 3-letter currency code defined in ISO 4217. CurrencyCode string `json:"currencyCode,omitempty"` // Nanos: Number of nano (10^-9) units of the amount. The value must be // between -999,999,999 and +999,999,999 inclusive. If `units` is // positive, `nanos` must be positive or zero. If `units` is zero, // `nanos` can be positive, zero, or negative. If `units` is negative, // `nanos` must be negative or zero. For example $-1.75 is represented // as `units`=-1 and `nanos`=-750,000,000. Nanos int64 `json:"nanos,omitempty"` // Units: The whole units of the amount. For example if `currencyCode` // is "USD", then 1 unit is one US dollar. Units int64 `json:"units,omitempty,string"` }
Money: Represents an amount of money with its currency type.
type ProjectsLogServicesIndexesListCall ¶
type ProjectsLogServicesIndexesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLogServicesIndexesListCall) Depth ¶
func (c *ProjectsLogServicesIndexesListCall) Depth(depth int64) *ProjectsLogServicesIndexesListCall
Depth sets the optional parameter "depth": A limit to the number of levels of the index hierarchy that are expanded. If `depth` is 0, it defaults to the level specified by the prefix field (the number of slash separators). The default empty prefix implies a `depth` of 1. It is an error for `depth` to be any non-zero value less than the number of components in `indexPrefix`.
func (*ProjectsLogServicesIndexesListCall) Do ¶
func (c *ProjectsLogServicesIndexesListCall) Do() (*ListLogServiceIndexesResponse, error)
func (*ProjectsLogServicesIndexesListCall) Fields ¶
func (c *ProjectsLogServicesIndexesListCall) Fields(s ...googleapi.Field) *ProjectsLogServicesIndexesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLogServicesIndexesListCall) IndexPrefix ¶
func (c *ProjectsLogServicesIndexesListCall) IndexPrefix(indexPrefix string) *ProjectsLogServicesIndexesListCall
IndexPrefix sets the optional parameter "indexPrefix": Restricts the indexes returned to be those with a specified prefix. The prefix has the form "/label_value/label_value/...", in order corresponding to the [`LogService indexKeys`][google.logging.v1.LogService.index_keys]. Non-empty prefixes must begin with `/` . Example prefixes: + "/myModule/" retrieves App Engine versions associated with `myModule`. The trailing slash terminates the value. + "/myModule" retrieves App Engine modules with names beginning with `myModule`. + "" retrieves all indexes.
func (*ProjectsLogServicesIndexesListCall) Log ¶
func (c *ProjectsLogServicesIndexesListCall) Log(log string) *ProjectsLogServicesIndexesListCall
Log sets the optional parameter "log": A log resource like `/projects/project_id/logs/log_name`, identifying the log for which to list service indexes.
func (*ProjectsLogServicesIndexesListCall) PageSize ¶
func (c *ProjectsLogServicesIndexesListCall) PageSize(pageSize int64) *ProjectsLogServicesIndexesListCall
PageSize sets the optional parameter "pageSize": The maximum number of log service index resources to return in one operation.
func (*ProjectsLogServicesIndexesListCall) PageToken ¶
func (c *ProjectsLogServicesIndexesListCall) PageToken(pageToken string) *ProjectsLogServicesIndexesListCall
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.
type ProjectsLogServicesIndexesService ¶
type ProjectsLogServicesIndexesService struct {
// contains filtered or unexported fields
}
func NewProjectsLogServicesIndexesService ¶
func NewProjectsLogServicesIndexesService(s *Service) *ProjectsLogServicesIndexesService
func (*ProjectsLogServicesIndexesService) List ¶
func (r *ProjectsLogServicesIndexesService) List(projectsId string, logServicesId string) *ProjectsLogServicesIndexesListCall
List: Lists log service indexes associated with a log service.
type ProjectsLogServicesListCall ¶
type ProjectsLogServicesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLogServicesListCall) Do ¶
func (c *ProjectsLogServicesListCall) Do() (*ListLogServicesResponse, error)
func (*ProjectsLogServicesListCall) Fields ¶
func (c *ProjectsLogServicesListCall) Fields(s ...googleapi.Field) *ProjectsLogServicesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLogServicesListCall) Log ¶
func (c *ProjectsLogServicesListCall) Log(log string) *ProjectsLogServicesListCall
Log sets the optional parameter "log": The name of the log resource whose services are to be listed. log for which to list services. When empty, all services are listed.
func (*ProjectsLogServicesListCall) PageSize ¶
func (c *ProjectsLogServicesListCall) PageSize(pageSize int64) *ProjectsLogServicesListCall
PageSize sets the optional parameter "pageSize": The maximum number of `LogService` objects to return in one operation.
func (*ProjectsLogServicesListCall) PageToken ¶
func (c *ProjectsLogServicesListCall) PageToken(pageToken string) *ProjectsLogServicesListCall
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.
type ProjectsLogServicesService ¶
type ProjectsLogServicesService struct { Indexes *ProjectsLogServicesIndexesService Sinks *ProjectsLogServicesSinksService // contains filtered or unexported fields }
func NewProjectsLogServicesService ¶
func NewProjectsLogServicesService(s *Service) *ProjectsLogServicesService
func (*ProjectsLogServicesService) List ¶
func (r *ProjectsLogServicesService) List(projectsId string) *ProjectsLogServicesListCall
List: Lists log services associated with log entries ingested for a project.
type ProjectsLogServicesSinksCreateCall ¶
type ProjectsLogServicesSinksCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLogServicesSinksCreateCall) Do ¶
func (c *ProjectsLogServicesSinksCreateCall) Do() (*LogSink, error)
func (*ProjectsLogServicesSinksCreateCall) Fields ¶
func (c *ProjectsLogServicesSinksCreateCall) Fields(s ...googleapi.Field) *ProjectsLogServicesSinksCreateCall
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) Do ¶
func (c *ProjectsLogServicesSinksDeleteCall) Do() (*Empty, error)
func (*ProjectsLogServicesSinksDeleteCall) Fields ¶
func (c *ProjectsLogServicesSinksDeleteCall) Fields(s ...googleapi.Field) *ProjectsLogServicesSinksDeleteCall
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) Do ¶
func (c *ProjectsLogServicesSinksGetCall) Do() (*LogSink, error)
func (*ProjectsLogServicesSinksGetCall) Fields ¶
func (c *ProjectsLogServicesSinksGetCall) Fields(s ...googleapi.Field) *ProjectsLogServicesSinksGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ProjectsLogServicesSinksListCall ¶
type ProjectsLogServicesSinksListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLogServicesSinksListCall) Do ¶
func (c *ProjectsLogServicesSinksListCall) Do() (*ListLogServiceSinksResponse, error)
func (*ProjectsLogServicesSinksListCall) Fields ¶
func (c *ProjectsLogServicesSinksListCall) Fields(s ...googleapi.Field) *ProjectsLogServicesSinksListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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 the specified log service sink resource.
func (*ProjectsLogServicesSinksService) Delete ¶
func (r *ProjectsLogServicesSinksService) Delete(projectsId string, logServicesId string, sinksId string) *ProjectsLogServicesSinksDeleteCall
Delete: Deletes the specified log service sink.
func (*ProjectsLogServicesSinksService) Get ¶
func (r *ProjectsLogServicesSinksService) Get(projectsId string, logServicesId string, sinksId string) *ProjectsLogServicesSinksGetCall
Get: Gets the specified log service sink resource.
func (*ProjectsLogServicesSinksService) List ¶
func (r *ProjectsLogServicesSinksService) List(projectsId string, logServicesId string) *ProjectsLogServicesSinksListCall
List: Lists log service sinks associated with the specified service.
func (*ProjectsLogServicesSinksService) Update ¶
func (r *ProjectsLogServicesSinksService) Update(projectsId string, logServicesId string, sinksId string, logsink *LogSink) *ProjectsLogServicesSinksUpdateCall
Update: Creates or update the specified log service sink resource.
type ProjectsLogServicesSinksUpdateCall ¶
type ProjectsLogServicesSinksUpdateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLogServicesSinksUpdateCall) Do ¶
func (c *ProjectsLogServicesSinksUpdateCall) Do() (*LogSink, error)
func (*ProjectsLogServicesSinksUpdateCall) Fields ¶
func (c *ProjectsLogServicesSinksUpdateCall) Fields(s ...googleapi.Field) *ProjectsLogServicesSinksUpdateCall
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) Do ¶
func (c *ProjectsLogsDeleteCall) Do() (*Empty, error)
func (*ProjectsLogsDeleteCall) Fields ¶
func (c *ProjectsLogsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLogsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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: Creates one or more log entries in a log. You must supply a list of `LogEntry` objects, named `entries`. Each `LogEntry` object must contain a payload object and a `LogEntryMetadata` object that describes the entry. You must fill in all the fields of the entry, metadata, and payload. You can also supply a map, `commonLabels`, that supplies default (key, value) data for the `entries[].metadata.labels` maps, saving you the trouble of creating identical copies for each entry.
type ProjectsLogsEntriesWriteCall ¶
type ProjectsLogsEntriesWriteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLogsEntriesWriteCall) Do ¶
func (c *ProjectsLogsEntriesWriteCall) Do() (*WriteLogEntriesResponse, error)
func (*ProjectsLogsEntriesWriteCall) Fields ¶
func (c *ProjectsLogsEntriesWriteCall) Fields(s ...googleapi.Field) *ProjectsLogsEntriesWriteCall
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) Do ¶
func (c *ProjectsLogsListCall) Do() (*ListLogsResponse, error)
func (*ProjectsLogsListCall) Fields ¶
func (c *ProjectsLogsListCall) Fields(s ...googleapi.Field) *ProjectsLogsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLogsListCall) 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) ServiceIndexPrefix ¶
func (c *ProjectsLogsListCall) ServiceIndexPrefix(serviceIndexPrefix string) *ProjectsLogsListCall
ServiceIndexPrefix sets the optional parameter "serviceIndexPrefix": A log service index prefix for which to list logs. Only logs containing entries whose metadata that includes these label values (associated with index keys) are returned. The prefix is a slash separated list of values, and need not specify all index labels. An empty index (or a single slash) matches all log service indexes.
func (*ProjectsLogsListCall) ServiceName ¶
func (c *ProjectsLogsListCall) ServiceName(serviceName string) *ProjectsLogsListCall
ServiceName sets the optional parameter "serviceName": A service name for which to list logs. Only logs containing entries whose metadata includes this service name are returned. If `serviceName` and `serviceIndexPrefix` are both empty, then all log names are returned. To list all log names, regardless of service, leave both the `serviceName` and `serviceIndexPrefix` empty. To list log names containing entries with a particular service name (or explicitly empty service name) set `serviceName` to the desired value and `serviceIndexPrefix` to "/".
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 the specified log resource and all log entries contained in it.
func (*ProjectsLogsService) List ¶
func (r *ProjectsLogsService) List(projectsId string) *ProjectsLogsListCall
List: Lists log resources belonging to the specified project.
type ProjectsLogsSinksCreateCall ¶
type ProjectsLogsSinksCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLogsSinksCreateCall) Do ¶
func (c *ProjectsLogsSinksCreateCall) Do() (*LogSink, error)
func (*ProjectsLogsSinksCreateCall) Fields ¶
func (c *ProjectsLogsSinksCreateCall) Fields(s ...googleapi.Field) *ProjectsLogsSinksCreateCall
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) Do ¶
func (c *ProjectsLogsSinksDeleteCall) Do() (*Empty, error)
func (*ProjectsLogsSinksDeleteCall) Fields ¶
func (c *ProjectsLogsSinksDeleteCall) Fields(s ...googleapi.Field) *ProjectsLogsSinksDeleteCall
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) Do ¶
func (c *ProjectsLogsSinksGetCall) Do() (*LogSink, error)
func (*ProjectsLogsSinksGetCall) Fields ¶
func (c *ProjectsLogsSinksGetCall) Fields(s ...googleapi.Field) *ProjectsLogsSinksGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ProjectsLogsSinksListCall ¶
type ProjectsLogsSinksListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLogsSinksListCall) Do ¶
func (c *ProjectsLogsSinksListCall) Do() (*ListLogSinksResponse, error)
func (*ProjectsLogsSinksListCall) Fields ¶
func (c *ProjectsLogsSinksListCall) Fields(s ...googleapi.Field) *ProjectsLogsSinksListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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 the specified log sink resource.
func (*ProjectsLogsSinksService) Delete ¶
func (r *ProjectsLogsSinksService) Delete(projectsId string, logsId string, sinksId string) *ProjectsLogsSinksDeleteCall
Delete: Deletes the specified log sink resource.
func (*ProjectsLogsSinksService) Get ¶
func (r *ProjectsLogsSinksService) Get(projectsId string, logsId string, sinksId string) *ProjectsLogsSinksGetCall
Get: Gets the specified log sink resource.
func (*ProjectsLogsSinksService) List ¶
func (r *ProjectsLogsSinksService) List(projectsId string, logsId string) *ProjectsLogsSinksListCall
List: Lists log sinks associated with the specified log.
func (*ProjectsLogsSinksService) Update ¶
func (r *ProjectsLogsSinksService) Update(projectsId string, logsId string, sinksId string, logsink *LogSink) *ProjectsLogsSinksUpdateCall
Update: Creates or updates the specified log sink resource.
type ProjectsLogsSinksUpdateCall ¶
type ProjectsLogsSinksUpdateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLogsSinksUpdateCall) Do ¶
func (c *ProjectsLogsSinksUpdateCall) Do() (*LogSink, error)
func (*ProjectsLogsSinksUpdateCall) Fields ¶
func (c *ProjectsLogsSinksUpdateCall) Fields(s ...googleapi.Field) *ProjectsLogsSinksUpdateCall
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 { LogServices *ProjectsLogServicesService Logs *ProjectsLogsService 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) Do ¶
func (c *ProjectsSinksCreateCall) Do() (*LogSink, error)
func (*ProjectsSinksCreateCall) Fields ¶
func (c *ProjectsSinksCreateCall) Fields(s ...googleapi.Field) *ProjectsSinksCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ProjectsSinksDeleteCall ¶
type ProjectsSinksDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSinksDeleteCall) Do ¶
func (c *ProjectsSinksDeleteCall) Do() (*Empty, error)
func (*ProjectsSinksDeleteCall) Fields ¶
func (c *ProjectsSinksDeleteCall) Fields(s ...googleapi.Field) *ProjectsSinksDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ProjectsSinksGetCall ¶
type ProjectsSinksGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSinksGetCall) Do ¶
func (c *ProjectsSinksGetCall) Do() (*LogSink, error)
func (*ProjectsSinksGetCall) Fields ¶
func (c *ProjectsSinksGetCall) Fields(s ...googleapi.Field) *ProjectsSinksGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ProjectsSinksListCall ¶
type ProjectsSinksListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSinksListCall) Do ¶
func (c *ProjectsSinksListCall) Do() (*ListSinksResponse, error)
func (*ProjectsSinksListCall) Fields ¶
func (c *ProjectsSinksListCall) Fields(s ...googleapi.Field) *ProjectsSinksListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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 the specified sink resource.
func (*ProjectsSinksService) Delete ¶
func (r *ProjectsSinksService) Delete(projectsId string, sinksId string) *ProjectsSinksDeleteCall
Delete: Deletes the specified sink.
func (*ProjectsSinksService) Get ¶
func (r *ProjectsSinksService) Get(projectsId string, sinksId string) *ProjectsSinksGetCall
Get: Gets the specified sink resource.
func (*ProjectsSinksService) List ¶
func (r *ProjectsSinksService) List(projectsId string) *ProjectsSinksListCall
List: Lists sinks associated with the specified project.
func (*ProjectsSinksService) Update ¶
func (r *ProjectsSinksService) Update(projectsId string, sinksId string, logsink *LogSink) *ProjectsSinksUpdateCall
Update: Creates or update the specified sink resource.
type ProjectsSinksUpdateCall ¶
type ProjectsSinksUpdateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSinksUpdateCall) Do ¶
func (c *ProjectsSinksUpdateCall) Do() (*LogSink, error)
func (*ProjectsSinksUpdateCall) Fields ¶
func (c *ProjectsSinksUpdateCall) Fields(s ...googleapi.Field) *ProjectsSinksUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type Query ¶
type Query struct { // CreateDisposition: Describe when a job should create a table. CreateDisposition string `json:"createDisposition,omitempty"` // DefaultDataset: If a table name is specified without a dataset in a // query, this dataset will be added to table name. DefaultDataset *DatasetName `json:"defaultDataset,omitempty"` // DestinationTable: table where results should be written. DestinationTable *TableName `json:"destinationTable,omitempty"` // Query: SQL query to run. Query string `json:"query,omitempty"` // TableDefinitions: Additional tables that this query might reference // beyond the tables already defined in BigQuery. This is typically used // to provide external data references for this query. TableDefinitions []*TableDefinition `json:"tableDefinitions,omitempty"` // WriteDisposition: Describes how writes should affect the table // associated with the job. WriteDisposition string `json:"writeDisposition,omitempty"` }
Query: Describes a query job, which executes a SQL-like query.
type RequestLog ¶
type RequestLog struct { // AppEngineRelease: App Engine release version string. AppEngineRelease string `json:"appEngineRelease,omitempty"` // AppId: Identifies the 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 at which request was known to end processing. EndTime string `json:"endTime,omitempty"` // Finished: If true, represents a finished request. Otherwise, the // request is active. Finished bool `json:"finished,omitempty"` // Host: The Internet host and port number of the resource being // requested. Host string `json:"host,omitempty"` // HttpVersion: HTTP version of request. HttpVersion string `json:"httpVersion,omitempty"` // InstanceId: An opaque identifier for the instance that handled the // request. InstanceId string `json:"instanceId,omitempty"` // InstanceIndex: If the instance that processed this request was // individually addressable (i.e. belongs to a manually scaled module), // this is the index of the instance. 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: List of log lines emitted by the application while serving this // request, if requested. Line []*LogLine `json:"line,omitempty"` // MegaCycles: Number of CPU megacycles used to process request. MegaCycles int64 `json:"megaCycles,omitempty,string"` // Method: Request method, such as `GET`, `HEAD`, `PUT`, `POST`, or // `DELETE`. Method string `json:"method,omitempty"` // ModuleId: Identifies the module of the application that handled this // request. ModuleId string `json:"moduleId,omitempty"` // Nickname: A string that identifies a logged-in user who made this // request, or empty if the user is not logged in. 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 may have a similar name. This information is also available to // the application via 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, if // it was pending at all. PendingTime string `json:"pendingTime,omitempty"` // Referrer: Referrer URL of request. Referrer string `json:"referrer,omitempty"` // RequestId: Globally unique identifier for a request, based on request // start time. Request IDs for requests which started later will compare // greater as binary 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". Any trailing fragment (separated by a '#' character) // will not be 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 at which request was known to have begun processing. StartTime string `json:"startTime,omitempty"` // Status: Response status of request. Status int64 `json:"status,omitempty"` // TaskName: Task name of the request (for an offline request). TaskName string `json:"taskName,omitempty"` // TaskQueueName: Queue name of the request (for an offline request). TaskQueueName string `json:"taskQueueName,omitempty"` // TraceId: Cloud Trace identifier of the trace for this request. TraceId string `json:"traceId,omitempty"` // UrlMapEntry: File or class within URL mapping used for request. // Useful for tracking down the source code which was responsible for // managing request. Especially for multiply mapped handlers. UrlMapEntry string `json:"urlMapEntry,omitempty"` // UserAgent: User agent used for making request. UserAgent string `json:"userAgent,omitempty"` // VersionId: Version of the application that handled this request. VersionId string `json:"versionId,omitempty"` // WasLoadingRequest: Was this request a loading request for this // instance? WasLoadingRequest bool `json:"wasLoadingRequest,omitempty"` }
RequestLog: Complete log information about a single request to an application.
type RequestMetadata ¶
type RequestMetadata struct { // CallerIp: IP address of the caller CallerIp string `json:"callerIp,omitempty"` // CallerSuppliedUserAgent: User-Agent of the caller. This is not // authenticated, so a malicious caller could provide a misleading // value. For example: `google-api-python-client/1.4.0` The request was // made by the Google API client for Python. `Cloud SDK Command Line // Tool apitools-client/1.0 gcloud/0.9.62` The request was made by the // Google Cloud SDK CLI (gcloud). `AppEngine-Google; // (+http://code.google.com/appengine; appid: s~my-project` The request // was made from the `my-project` App Engine app. CallerSuppliedUserAgent string `json:"callerSuppliedUserAgent,omitempty"` }
RequestMetadata: Metadata about the request.
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 }
type SourceLocation ¶
type SourceLocation struct { // File: Source file name. May or may not be a fully qualified name, // depending on the runtime environment. 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, for // use in contexts such as the logs viewer where file:line number is // less meaningful. This may vary by language, for example: in Java: // qual.if.ied.Class.method in Go: dir/package.func in Python: function // ... FunctionName string `json:"functionName,omitempty"` // Line: Line within the source file. Line int64 `json:"line,omitempty,string"` }
SourceLocation: Specifies a location in a source file.
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"` }
SourceReference: A reference to a particular snapshot of the source tree used to build and deploy an application.
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][google.rpc.Status.details] field, // or localized by the client. Message string `json:"message,omitempty"` }
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 needs # Overview The `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 mapping The `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 uses The 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.
type StatusDetails ¶
type StatusDetails interface{}
type Table ¶
type Table struct { // CreateTime: The creation time for this table. CreateTime string `json:"createTime,omitempty"` // ExpireTime: The expiration date for this table. After this time, the // table will not be externally visible and all storage associated with // the table may be garbage collected. If this field is not present, the // HelixDataset.default_table_expiration_ms value will be used to // calculate the expiration time. Otherwise, the table will live until // explicitly deleted. ExpireTime string `json:"expireTime,omitempty"` // Info: User-modifiable metadata for this table. Info *TableInfo `json:"info,omitempty"` // Schema: The table schema. Schema *TableSchema `json:"schema,omitempty"` // TableName: The table and dataset IDs uniquely describing this table. TableName *TableName `json:"tableName,omitempty"` // TruncateTime: The last truncation time for this table. This will only // be updated when operation specified with WRITE_TRUNCATE. TruncateTime string `json:"truncateTime,omitempty"` // View: The table provides a Database View behavior and functionality // based on a query. View *TableViewDefinition `json:"view,omitempty"` }
Table: Message containing BigQuery table information.
type TableCopy ¶
type TableCopy struct { // CreateDisposition: Describe when a job should create a table. CreateDisposition string `json:"createDisposition,omitempty"` // DestinationTable: Destination table. DestinationTable *TableName `json:"destinationTable,omitempty"` // SourceTables: Source tables. SourceTables []*TableName `json:"sourceTables,omitempty"` // WriteDisposition: Describe whether the copy operation should append // or not. WriteDisposition string `json:"writeDisposition,omitempty"` }
TableCopy: Describes a copy job, which copies an existing table to another table.
type TableDataListRequest ¶
type TableDataListRequest struct { // MaxResults: Maximum number of results to return. MaxResults int64 `json:"maxResults,omitempty"` // StartRow: Starting row offset. StartRow uint64 `json:"startRow,omitempty,string"` }
TableDataListRequest: Table data-list request.
type TableDefinition ¶
type TableDefinition struct { // Name: Name of the table. This will be used to reference this table in // the query. Name string `json:"name,omitempty"` // SourceUris: URIs for the data to be imported. SourceUris []string `json:"sourceUris,omitempty"` }
TableDefinition: Per Query external tables. These tables can be referenced with 'name' in the query and can be read just like any other table.
type TableInfo ¶
type TableInfo struct { // Description: The description of a table. This can be several // sentences or paragraphs describing the table contents in detail. Description string `json:"description,omitempty"` // FriendlyName: The human-readable name of a table. This should be a // short phrase identifying the table (e.g., "Analytics Data - Jan // 2011"). FriendlyName string `json:"friendlyName,omitempty"` }
TableInfo: User-provided metadata for a table, primarily for display in the UI.
type TableInsertRequest ¶
type TableInsertRequest struct { // Resource: Table insert payload. Resource *Table `json:"resource,omitempty"` }
TableInsertRequest: ==== Table =======// Table insert request.
type TableInsertResponse ¶
type TableInsertResponse struct { // Resource: Final state of inserted table. Resource *Table `json:"resource,omitempty"` }
TableInsertResponse: Table insert response.
type TableName ¶
type TableName struct { // DatasetId: The ID of the dataset (scoped to the project above). DatasetId string `json:"datasetId,omitempty"` // ProjectId: A string containing the id of this project. The id be the // alphanumeric project ID, or the project number. ProjectId string `json:"projectId,omitempty"` // TableId: The ID of the table (scoped to the dataset above). TableId string `json:"tableId,omitempty"` }
TableName: Fully-qualified name for a table -- referenced through a dataset.
type TableSchema ¶
type TableSchema struct { // Fields: One field per column in the table Fields []*FieldSchema `json:"fields,omitempty"` }
TableSchema: BigQuery table schema.
type TableUpdateRequest ¶
type TableUpdateRequest struct { // Resource: Table update payload. Resource *Table `json:"resource,omitempty"` }
TableUpdateRequest: Table update request.
type TableUpdateResponse ¶
type TableUpdateResponse struct { // Resource: Final state of updated table. Resource *Table `json:"resource,omitempty"` }
TableUpdateResponse: Table update response.
type TableViewDefinition ¶
type TableViewDefinition struct { // Query: Sql query to run. Query string `json:"query,omitempty"` }
TableViewDefinition: Metadata for a table to become like a Database View based on a SQL-like query.
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 insert. Entries []*LogEntry `json:"entries,omitempty"` }
WriteLogEntriesRequest: The parameters to WriteLogEntries.
type WriteLogEntriesResponse ¶
type WriteLogEntriesResponse struct { }
WriteLogEntriesResponse: Result returned from WriteLogEntries. empty