Versions in this module Expand all Collapse all v0 v0.37.1 Dec 15, 2020 Changes in this version + const CloudPlatformReadOnlyScope + const CloudPlatformScope + const LoggingAdminScope + const LoggingReadScope + const LoggingWriteScope + type BucketOptions struct + ExplicitBuckets *Explicit + ExponentialBuckets *Exponential + ForceSendFields []string + LinearBuckets *Linear + NullFields []string + func (s *BucketOptions) MarshalJSON() ([]byte, error) + type Empty struct + type EntriesListCall struct + func (c *EntriesListCall) Context(ctx context.Context) *EntriesListCall + func (c *EntriesListCall) Do(opts ...googleapi.CallOption) (*ListLogEntriesResponse, error) + func (c *EntriesListCall) Fields(s ...googleapi.Field) *EntriesListCall + func (c *EntriesListCall) Header() http.Header + func (c *EntriesListCall) Pages(ctx context.Context, f func(*ListLogEntriesResponse) error) error + type EntriesService struct + func NewEntriesService(s *Service) *EntriesService + func (r *EntriesService) List(listlogentriesrequest *ListLogEntriesRequest) *EntriesListCall + func (r *EntriesService) Write(writelogentriesrequest *WriteLogEntriesRequest) *EntriesWriteCall + type EntriesWriteCall struct + func (c *EntriesWriteCall) Context(ctx context.Context) *EntriesWriteCall + func (c *EntriesWriteCall) Do(opts ...googleapi.CallOption) (*WriteLogEntriesResponse, error) + func (c *EntriesWriteCall) Fields(s ...googleapi.Field) *EntriesWriteCall + func (c *EntriesWriteCall) Header() http.Header + type Explicit struct + Bounds []float64 + ForceSendFields []string + NullFields []string + func (s *Explicit) MarshalJSON() ([]byte, error) + type Exponential struct + ForceSendFields []string + GrowthFactor float64 + NullFields []string + NumFiniteBuckets int64 + Scale float64 + func (s *Exponential) MarshalJSON() ([]byte, error) + func (s *Exponential) UnmarshalJSON(data []byte) error + type HttpRequest struct + CacheFillBytes int64 + CacheHit bool + CacheLookup bool + CacheValidatedWithOriginServer bool + ForceSendFields []string + Latency string + NullFields []string + Protocol string + Referer string + RemoteIp string + RequestMethod string + RequestSize int64 + RequestUrl string + ResponseSize int64 + ServerIp string + Status int64 + UserAgent string + func (s *HttpRequest) MarshalJSON() ([]byte, error) + type LabelDescriptor struct + Description string + ForceSendFields []string + Key string + NullFields []string + ValueType string + func (s *LabelDescriptor) MarshalJSON() ([]byte, error) + type Linear struct + ForceSendFields []string + NullFields []string + NumFiniteBuckets int64 + Offset float64 + Width float64 + func (s *Linear) MarshalJSON() ([]byte, error) + func (s *Linear) UnmarshalJSON(data []byte) error + type ListLogEntriesRequest struct + Filter string + ForceSendFields []string + NullFields []string + OrderBy string + PageSize int64 + PageToken string + ProjectIds []string + ResourceNames []string + func (s *ListLogEntriesRequest) MarshalJSON() ([]byte, error) + type ListLogEntriesResponse struct + Entries []*LogEntry + ForceSendFields []string + NextPageToken string + NullFields []string + func (s *ListLogEntriesResponse) MarshalJSON() ([]byte, error) + type ListLogMetricsResponse struct + ForceSendFields []string + Metrics []*LogMetric + NextPageToken string + NullFields []string + func (s *ListLogMetricsResponse) MarshalJSON() ([]byte, error) + type ListMonitoredResourceDescriptorsResponse struct + ForceSendFields []string + NextPageToken string + NullFields []string + ResourceDescriptors []*MonitoredResourceDescriptor + func (s *ListMonitoredResourceDescriptorsResponse) MarshalJSON() ([]byte, error) + type ListSinksResponse struct + ForceSendFields []string + NextPageToken string + NullFields []string + Sinks []*LogSink + func (s *ListSinksResponse) MarshalJSON() ([]byte, error) + type LogEntry struct + ForceSendFields []string + HttpRequest *HttpRequest + InsertId string + JsonPayload googleapi.RawMessage + Labels map[string]string + LogName string + Metadata *MonitoredResourceMetadata + NullFields []string + Operation *LogEntryOperation + ProtoPayload googleapi.RawMessage + ReceiveTimestamp string + Resource *MonitoredResource + Severity string + SourceLocation *LogEntrySourceLocation + SpanId string + TextPayload string + Timestamp string + Trace string + TraceSampled bool + func (s *LogEntry) MarshalJSON() ([]byte, error) + type LogEntryOperation struct + First bool + ForceSendFields []string + Id string + Last bool + NullFields []string + Producer string + func (s *LogEntryOperation) MarshalJSON() ([]byte, error) + type LogEntrySourceLocation struct + File string + ForceSendFields []string + Function string + Line int64 + NullFields []string + func (s *LogEntrySourceLocation) MarshalJSON() ([]byte, error) + type LogLine struct + ForceSendFields []string + LogMessage string + NullFields []string + Severity string + SourceLocation *SourceLocation + Time string + func (s *LogLine) MarshalJSON() ([]byte, error) + type LogMetric struct + BucketOptions *BucketOptions + CreateTime string + Description string + Filter string + ForceSendFields []string + LabelExtractors map[string]string + MetricDescriptor *MetricDescriptor + Name string + NullFields []string + UpdateTime string + ValueExtractor string + Version string + func (s *LogMetric) MarshalJSON() ([]byte, error) + type LogSink struct + CreateTime string + Destination string + Filter string + ForceSendFields []string + IncludeChildren bool + Name string + NullFields []string + OutputVersionFormat string + UpdateTime string + WriterIdentity string + func (s *LogSink) MarshalJSON() ([]byte, error) + type MetricDescriptor struct + Description string + DisplayName string + ForceSendFields []string + Labels []*LabelDescriptor + Metadata *MetricDescriptorMetadata + MetricKind string + Name string + NullFields []string + Type string + Unit string + ValueType string + func (s *MetricDescriptor) MarshalJSON() ([]byte, error) + type MetricDescriptorMetadata struct + ForceSendFields []string + IngestDelay string + LaunchStage string + NullFields []string + SamplePeriod string + func (s *MetricDescriptorMetadata) MarshalJSON() ([]byte, error) + type MonitoredResource struct + ForceSendFields []string + Labels map[string]string + NullFields []string + Type string + func (s *MonitoredResource) MarshalJSON() ([]byte, error) + type MonitoredResourceDescriptor struct + Description string + DisplayName string + ForceSendFields []string + Labels []*LabelDescriptor + Name string + NullFields []string + Type string + func (s *MonitoredResourceDescriptor) MarshalJSON() ([]byte, error) + type MonitoredResourceDescriptorsListCall struct + func (c *MonitoredResourceDescriptorsListCall) Context(ctx context.Context) *MonitoredResourceDescriptorsListCall + func (c *MonitoredResourceDescriptorsListCall) Do(opts ...googleapi.CallOption) (*ListMonitoredResourceDescriptorsResponse, error) + func (c *MonitoredResourceDescriptorsListCall) Fields(s ...googleapi.Field) *MonitoredResourceDescriptorsListCall + func (c *MonitoredResourceDescriptorsListCall) Header() http.Header + func (c *MonitoredResourceDescriptorsListCall) IfNoneMatch(entityTag string) *MonitoredResourceDescriptorsListCall + func (c *MonitoredResourceDescriptorsListCall) PageSize(pageSize int64) *MonitoredResourceDescriptorsListCall + func (c *MonitoredResourceDescriptorsListCall) PageToken(pageToken string) *MonitoredResourceDescriptorsListCall + func (c *MonitoredResourceDescriptorsListCall) Pages(ctx context.Context, f func(*ListMonitoredResourceDescriptorsResponse) error) error + type MonitoredResourceDescriptorsService struct + func NewMonitoredResourceDescriptorsService(s *Service) *MonitoredResourceDescriptorsService + func (r *MonitoredResourceDescriptorsService) List() *MonitoredResourceDescriptorsListCall + type MonitoredResourceMetadata struct + ForceSendFields []string + NullFields []string + SystemLabels googleapi.RawMessage + UserLabels map[string]string + func (s *MonitoredResourceMetadata) MarshalJSON() ([]byte, error) + type ProjectsMetricsCreateCall struct + func (c *ProjectsMetricsCreateCall) Context(ctx context.Context) *ProjectsMetricsCreateCall + func (c *ProjectsMetricsCreateCall) Do(opts ...googleapi.CallOption) (*LogMetric, error) + func (c *ProjectsMetricsCreateCall) Fields(s ...googleapi.Field) *ProjectsMetricsCreateCall + func (c *ProjectsMetricsCreateCall) Header() http.Header + type ProjectsMetricsDeleteCall struct + func (c *ProjectsMetricsDeleteCall) Context(ctx context.Context) *ProjectsMetricsDeleteCall + func (c *ProjectsMetricsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) + func (c *ProjectsMetricsDeleteCall) Fields(s ...googleapi.Field) *ProjectsMetricsDeleteCall + func (c *ProjectsMetricsDeleteCall) Header() http.Header + type ProjectsMetricsGetCall struct + func (c *ProjectsMetricsGetCall) Context(ctx context.Context) *ProjectsMetricsGetCall + func (c *ProjectsMetricsGetCall) Do(opts ...googleapi.CallOption) (*LogMetric, error) + func (c *ProjectsMetricsGetCall) Fields(s ...googleapi.Field) *ProjectsMetricsGetCall + func (c *ProjectsMetricsGetCall) Header() http.Header + func (c *ProjectsMetricsGetCall) IfNoneMatch(entityTag string) *ProjectsMetricsGetCall + type ProjectsMetricsListCall struct + func (c *ProjectsMetricsListCall) Context(ctx context.Context) *ProjectsMetricsListCall + func (c *ProjectsMetricsListCall) Do(opts ...googleapi.CallOption) (*ListLogMetricsResponse, error) + func (c *ProjectsMetricsListCall) Fields(s ...googleapi.Field) *ProjectsMetricsListCall + func (c *ProjectsMetricsListCall) Header() http.Header + func (c *ProjectsMetricsListCall) IfNoneMatch(entityTag string) *ProjectsMetricsListCall + func (c *ProjectsMetricsListCall) PageSize(pageSize int64) *ProjectsMetricsListCall + func (c *ProjectsMetricsListCall) PageToken(pageToken string) *ProjectsMetricsListCall + func (c *ProjectsMetricsListCall) Pages(ctx context.Context, f func(*ListLogMetricsResponse) error) error + type ProjectsMetricsService struct + func NewProjectsMetricsService(s *Service) *ProjectsMetricsService + func (r *ProjectsMetricsService) Create(parent string, logmetric *LogMetric) *ProjectsMetricsCreateCall + func (r *ProjectsMetricsService) Delete(metricName string) *ProjectsMetricsDeleteCall + func (r *ProjectsMetricsService) Get(metricName string) *ProjectsMetricsGetCall + func (r *ProjectsMetricsService) List(parent string) *ProjectsMetricsListCall + func (r *ProjectsMetricsService) Update(metricName string, logmetric *LogMetric) *ProjectsMetricsUpdateCall + type ProjectsMetricsUpdateCall struct + func (c *ProjectsMetricsUpdateCall) Context(ctx context.Context) *ProjectsMetricsUpdateCall + func (c *ProjectsMetricsUpdateCall) Do(opts ...googleapi.CallOption) (*LogMetric, error) + func (c *ProjectsMetricsUpdateCall) Fields(s ...googleapi.Field) *ProjectsMetricsUpdateCall + func (c *ProjectsMetricsUpdateCall) Header() http.Header + type ProjectsService struct + Metrics *ProjectsMetricsService + Sinks *ProjectsSinksService + func NewProjectsService(s *Service) *ProjectsService + type ProjectsSinksCreateCall struct + func (c *ProjectsSinksCreateCall) Context(ctx context.Context) *ProjectsSinksCreateCall + func (c *ProjectsSinksCreateCall) Do(opts ...googleapi.CallOption) (*LogSink, error) + func (c *ProjectsSinksCreateCall) Fields(s ...googleapi.Field) *ProjectsSinksCreateCall + func (c *ProjectsSinksCreateCall) Header() http.Header + func (c *ProjectsSinksCreateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *ProjectsSinksCreateCall + type ProjectsSinksDeleteCall struct + func (c *ProjectsSinksDeleteCall) Context(ctx context.Context) *ProjectsSinksDeleteCall + func (c *ProjectsSinksDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) + func (c *ProjectsSinksDeleteCall) Fields(s ...googleapi.Field) *ProjectsSinksDeleteCall + func (c *ProjectsSinksDeleteCall) Header() http.Header + type ProjectsSinksGetCall struct + func (c *ProjectsSinksGetCall) Context(ctx context.Context) *ProjectsSinksGetCall + func (c *ProjectsSinksGetCall) Do(opts ...googleapi.CallOption) (*LogSink, error) + func (c *ProjectsSinksGetCall) Fields(s ...googleapi.Field) *ProjectsSinksGetCall + func (c *ProjectsSinksGetCall) Header() http.Header + func (c *ProjectsSinksGetCall) IfNoneMatch(entityTag string) *ProjectsSinksGetCall + type ProjectsSinksListCall struct + func (c *ProjectsSinksListCall) Context(ctx context.Context) *ProjectsSinksListCall + func (c *ProjectsSinksListCall) Do(opts ...googleapi.CallOption) (*ListSinksResponse, error) + func (c *ProjectsSinksListCall) Fields(s ...googleapi.Field) *ProjectsSinksListCall + func (c *ProjectsSinksListCall) Header() http.Header + func (c *ProjectsSinksListCall) IfNoneMatch(entityTag string) *ProjectsSinksListCall + func (c *ProjectsSinksListCall) PageSize(pageSize int64) *ProjectsSinksListCall + func (c *ProjectsSinksListCall) PageToken(pageToken string) *ProjectsSinksListCall + func (c *ProjectsSinksListCall) Pages(ctx context.Context, f func(*ListSinksResponse) error) error + type ProjectsSinksService struct + func NewProjectsSinksService(s *Service) *ProjectsSinksService + func (r *ProjectsSinksService) Create(parent string, logsink *LogSink) *ProjectsSinksCreateCall + func (r *ProjectsSinksService) Delete(sinkNameid string) *ProjectsSinksDeleteCall + func (r *ProjectsSinksService) Get(sinkName string) *ProjectsSinksGetCall + func (r *ProjectsSinksService) List(parent string) *ProjectsSinksListCall + func (r *ProjectsSinksService) Update(sinkNameid string, logsink *LogSink) *ProjectsSinksUpdateCall + type ProjectsSinksUpdateCall struct + func (c *ProjectsSinksUpdateCall) Context(ctx context.Context) *ProjectsSinksUpdateCall + func (c *ProjectsSinksUpdateCall) Do(opts ...googleapi.CallOption) (*LogSink, error) + func (c *ProjectsSinksUpdateCall) Fields(s ...googleapi.Field) *ProjectsSinksUpdateCall + func (c *ProjectsSinksUpdateCall) Header() http.Header + func (c *ProjectsSinksUpdateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *ProjectsSinksUpdateCall + func (c *ProjectsSinksUpdateCall) UpdateMask(updateMask string) *ProjectsSinksUpdateCall + type RequestLog struct + AppEngineRelease string + AppId string + Cost float64 + EndTime string + Finished bool + First bool + ForceSendFields []string + Host string + HttpVersion string + InstanceId string + InstanceIndex int64 + Ip string + Latency string + Line []*LogLine + MegaCycles int64 + Method string + ModuleId string + Nickname string + NullFields []string + PendingTime string + Referrer string + RequestId string + Resource string + ResponseSize int64 + SourceReference []*SourceReference + StartTime string + Status int64 + TaskName string + TaskQueueName string + TraceId string + TraceSampled bool + UrlMapEntry string + UserAgent string + VersionId string + WasLoadingRequest bool + func (s *RequestLog) MarshalJSON() ([]byte, error) + func (s *RequestLog) UnmarshalJSON(data []byte) error + type Service struct + BasePath string + Entries *EntriesService + MonitoredResourceDescriptors *MonitoredResourceDescriptorsService + Projects *ProjectsService + UserAgent string + func New(client *http.Client) (*Service, error) + func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) + type SourceLocation struct + File string + ForceSendFields []string + FunctionName string + Line int64 + NullFields []string + func (s *SourceLocation) MarshalJSON() ([]byte, error) + type SourceReference struct + ForceSendFields []string + NullFields []string + Repository string + RevisionId string + func (s *SourceReference) MarshalJSON() ([]byte, error) + type WriteLogEntriesRequest struct + DryRun bool + Entries []*LogEntry + ForceSendFields []string + Labels map[string]string + LogName string + NullFields []string + PartialSuccess bool + Resource *MonitoredResource + func (s *WriteLogEntriesRequest) MarshalJSON() ([]byte, error) + type WriteLogEntriesResponse struct