logging

package
v1.84.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Overview

Copyright 2026 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Package logging defines operations in the declarative SDK.

Copyright 2026 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2026 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2026 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2026 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2026 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2026 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2026 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2026 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2026 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2026 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2026 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2026 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2026 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2026 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2026 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2026 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2026 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Package logging provides types and functiosn for handling logging GCP resources.

Index

Constants

View Source
const LogBucketMaxPage = -1
View Source
const LogExclusionMaxPage = -1
View Source
const LogMetricMaxPage = -1
View Source
const LogViewMaxPage = -1

Variables

View Source
var YAML_log_bucket []byte
View Source
var YAML_log_exclusion []byte
View Source
var YAML_log_metric []byte
View Source
var YAML_log_view []byte

Functions

func DCLLogBucketSchema added in v1.10.3

func DCLLogBucketSchema() *dcl.Schema

func DCLLogExclusionSchema added in v1.10.3

func DCLLogExclusionSchema() *dcl.Schema

func DCLLogMetricSchema added in v1.10.3

func DCLLogMetricSchema() *dcl.Schema

func DCLLogViewSchema added in v1.10.3

func DCLLogViewSchema() *dcl.Schema

Types

type Client

type Client struct {
	Config *dcl.Config
}

The Client is the base struct of all operations. This will receive the Get, Delete, List, and Apply operations on all resources.

func NewClient

func NewClient(c *dcl.Config) *Client

NewClient creates a client that retries all operations a few times each.

func (*Client) ApplyLogBucket

func (c *Client) ApplyLogBucket(ctx context.Context, rawDesired *LogBucket, opts ...dcl.ApplyOption) (*LogBucket, error)

func (*Client) ApplyLogExclusion

func (c *Client) ApplyLogExclusion(ctx context.Context, rawDesired *LogExclusion, opts ...dcl.ApplyOption) (*LogExclusion, error)

func (*Client) ApplyLogMetric

func (c *Client) ApplyLogMetric(ctx context.Context, rawDesired *LogMetric, opts ...dcl.ApplyOption) (*LogMetric, error)

func (*Client) ApplyLogView

func (c *Client) ApplyLogView(ctx context.Context, rawDesired *LogView, opts ...dcl.ApplyOption) (*LogView, error)

func (*Client) DeleteAllLogBucket

func (c *Client) DeleteAllLogBucket(ctx context.Context, location, parent string, filter func(*LogBucket) bool) error

DeleteAllLogBucket deletes all resources that the filter functions returns true on.

func (*Client) DeleteAllLogExclusion

func (c *Client) DeleteAllLogExclusion(ctx context.Context, parent string, filter func(*LogExclusion) bool) error

DeleteAllLogExclusion deletes all resources that the filter functions returns true on.

func (*Client) DeleteAllLogMetric

func (c *Client) DeleteAllLogMetric(ctx context.Context, project string, filter func(*LogMetric) bool) error

DeleteAllLogMetric deletes all resources that the filter functions returns true on.

func (*Client) DeleteAllLogView

func (c *Client) DeleteAllLogView(ctx context.Context, location, bucket, parent string, filter func(*LogView) bool) error

DeleteAllLogView deletes all resources that the filter functions returns true on.

func (*Client) DeleteLogBucket

func (c *Client) DeleteLogBucket(ctx context.Context, r *LogBucket) error

func (*Client) DeleteLogExclusion

func (c *Client) DeleteLogExclusion(ctx context.Context, r *LogExclusion) error

func (*Client) DeleteLogMetric

func (c *Client) DeleteLogMetric(ctx context.Context, r *LogMetric) error

func (*Client) DeleteLogView

func (c *Client) DeleteLogView(ctx context.Context, r *LogView) error

func (*Client) GetLogBucket

func (c *Client) GetLogBucket(ctx context.Context, r *LogBucket) (*LogBucket, error)

func (*Client) GetLogExclusion

func (c *Client) GetLogExclusion(ctx context.Context, r *LogExclusion) (*LogExclusion, error)

func (*Client) GetLogMetric

func (c *Client) GetLogMetric(ctx context.Context, r *LogMetric) (*LogMetric, error)

func (*Client) GetLogView

func (c *Client) GetLogView(ctx context.Context, r *LogView) (*LogView, error)

func (*Client) ListLogBucket

func (c *Client) ListLogBucket(ctx context.Context, location, parent string) (*LogBucketList, error)

func (*Client) ListLogBucketWithMaxResults

func (c *Client) ListLogBucketWithMaxResults(ctx context.Context, location, parent string, pageSize int32) (*LogBucketList, error)

func (*Client) ListLogExclusion

func (c *Client) ListLogExclusion(ctx context.Context, parent string) (*LogExclusionList, error)

func (*Client) ListLogExclusionWithMaxResults

func (c *Client) ListLogExclusionWithMaxResults(ctx context.Context, parent string, pageSize int32) (*LogExclusionList, error)

func (*Client) ListLogMetric

func (c *Client) ListLogMetric(ctx context.Context, project string) (*LogMetricList, error)

func (*Client) ListLogMetricWithMaxResults

func (c *Client) ListLogMetricWithMaxResults(ctx context.Context, project string, pageSize int32) (*LogMetricList, error)

func (*Client) ListLogView

func (c *Client) ListLogView(ctx context.Context, location, bucket, parent string) (*LogViewList, error)

func (*Client) ListLogViewWithMaxResults

func (c *Client) ListLogViewWithMaxResults(ctx context.Context, location, bucket, parent string, pageSize int32) (*LogViewList, error)

type LogBucket

type LogBucket struct {
	Name            *string                      `json:"name"`
	Description     *string                      `json:"description"`
	CreateTime      *string                      `json:"createTime"`
	UpdateTime      *string                      `json:"updateTime"`
	RetentionDays   *int64                       `json:"retentionDays"`
	Locked          *bool                        `json:"locked"`
	LifecycleState  *LogBucketLifecycleStateEnum `json:"lifecycleState"`
	Parent          *string                      `json:"parent"`
	Location        *string                      `json:"location"`
	EnableAnalytics *bool                        `json:"enableAnalytics"`
}

func (*LogBucket) Describe

func (r *LogBucket) Describe() dcl.ServiceTypeVersion

Describe returns a simple description of this resource to ensure that automated tools can identify it.

func (*LogBucket) ID

func (r *LogBucket) ID() (string, error)

func (*LogBucket) String

func (r *LogBucket) String() string

type LogBucketLifecycleStateEnum

type LogBucketLifecycleStateEnum string

The enum LogBucketLifecycleStateEnum.

func LogBucketLifecycleStateEnumRef

func LogBucketLifecycleStateEnumRef(s string) *LogBucketLifecycleStateEnum

LogBucketLifecycleStateEnumRef returns a *LogBucketLifecycleStateEnum with the value of string s If the empty string is provided, nil is returned.

func (LogBucketLifecycleStateEnum) Validate

func (v LogBucketLifecycleStateEnum) Validate() error

type LogBucketList

type LogBucketList struct {
	Items []*LogBucket
	// contains filtered or unexported fields
}

func (*LogBucketList) HasNext

func (l *LogBucketList) HasNext() bool

func (*LogBucketList) Next

func (l *LogBucketList) Next(ctx context.Context, c *Client) error

type LogExclusion

type LogExclusion struct {
	Name        *string `json:"name"`
	Description *string `json:"description"`
	Filter      *string `json:"filter"`
	Disabled    *bool   `json:"disabled"`
	CreateTime  *string `json:"createTime"`
	UpdateTime  *string `json:"updateTime"`
	Parent      *string `json:"parent"`
}

func (*LogExclusion) Describe

func (r *LogExclusion) Describe() dcl.ServiceTypeVersion

Describe returns a simple description of this resource to ensure that automated tools can identify it.

func (*LogExclusion) ID

func (r *LogExclusion) ID() (string, error)

func (*LogExclusion) String

func (r *LogExclusion) String() string

type LogExclusionList

type LogExclusionList struct {
	Items []*LogExclusion
	// contains filtered or unexported fields
}

func (*LogExclusionList) HasNext

func (l *LogExclusionList) HasNext() bool

func (*LogExclusionList) Next

func (l *LogExclusionList) Next(ctx context.Context, c *Client) error

type LogMetric

type LogMetric struct {
	Name             *string                    `json:"name"`
	Description      *string                    `json:"description"`
	Filter           *string                    `json:"filter"`
	Disabled         *bool                      `json:"disabled"`
	MetricDescriptor *LogMetricMetricDescriptor `json:"metricDescriptor"`
	ValueExtractor   *string                    `json:"valueExtractor"`
	LabelExtractors  map[string]string          `json:"labelExtractors"`
	BucketOptions    *LogMetricBucketOptions    `json:"bucketOptions"`
	CreateTime       *string                    `json:"createTime"`
	UpdateTime       *string                    `json:"updateTime"`
	Project          *string                    `json:"project"`
}

func (*LogMetric) Describe

func (r *LogMetric) Describe() dcl.ServiceTypeVersion

Describe returns a simple description of this resource to ensure that automated tools can identify it.

func (*LogMetric) ID

func (r *LogMetric) ID() (string, error)

func (*LogMetric) String

func (r *LogMetric) String() string

type LogMetricBucketOptions

type LogMetricBucketOptions struct {
	LinearBuckets      *LogMetricBucketOptionsLinearBuckets      `json:"linearBuckets"`
	ExponentialBuckets *LogMetricBucketOptionsExponentialBuckets `json:"exponentialBuckets"`
	ExplicitBuckets    *LogMetricBucketOptionsExplicitBuckets    `json:"explicitBuckets"`
	// contains filtered or unexported fields
}
var EmptyLogMetricBucketOptions *LogMetricBucketOptions = &LogMetricBucketOptions{empty: true}

This object is used to assert a desired state where this LogMetricBucketOptions is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*LogMetricBucketOptions) Empty

func (r *LogMetricBucketOptions) Empty() bool

func (*LogMetricBucketOptions) HashCode

func (r *LogMetricBucketOptions) HashCode() string

func (*LogMetricBucketOptions) String

func (r *LogMetricBucketOptions) String() string

func (*LogMetricBucketOptions) UnmarshalJSON

func (r *LogMetricBucketOptions) UnmarshalJSON(data []byte) error

type LogMetricBucketOptionsExplicitBuckets

type LogMetricBucketOptionsExplicitBuckets struct {
	Bounds []float64 `json:"bounds"`
	// contains filtered or unexported fields
}
var EmptyLogMetricBucketOptionsExplicitBuckets *LogMetricBucketOptionsExplicitBuckets = &LogMetricBucketOptionsExplicitBuckets{empty: true}

This object is used to assert a desired state where this LogMetricBucketOptionsExplicitBuckets is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*LogMetricBucketOptionsExplicitBuckets) Empty

func (*LogMetricBucketOptionsExplicitBuckets) HashCode

func (*LogMetricBucketOptionsExplicitBuckets) String

func (*LogMetricBucketOptionsExplicitBuckets) UnmarshalJSON

func (r *LogMetricBucketOptionsExplicitBuckets) UnmarshalJSON(data []byte) error

type LogMetricBucketOptionsExponentialBuckets

type LogMetricBucketOptionsExponentialBuckets struct {
	NumFiniteBuckets *int64   `json:"numFiniteBuckets"`
	GrowthFactor     *float64 `json:"growthFactor"`
	Scale            *float64 `json:"scale"`
	// contains filtered or unexported fields
}
var EmptyLogMetricBucketOptionsExponentialBuckets *LogMetricBucketOptionsExponentialBuckets = &LogMetricBucketOptionsExponentialBuckets{empty: true}

This object is used to assert a desired state where this LogMetricBucketOptionsExponentialBuckets is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*LogMetricBucketOptionsExponentialBuckets) Empty

func (*LogMetricBucketOptionsExponentialBuckets) HashCode

func (*LogMetricBucketOptionsExponentialBuckets) String

func (*LogMetricBucketOptionsExponentialBuckets) UnmarshalJSON

func (r *LogMetricBucketOptionsExponentialBuckets) UnmarshalJSON(data []byte) error

type LogMetricBucketOptionsLinearBuckets

type LogMetricBucketOptionsLinearBuckets struct {
	NumFiniteBuckets *int64   `json:"numFiniteBuckets"`
	Width            *float64 `json:"width"`
	Offset           *float64 `json:"offset"`
	// contains filtered or unexported fields
}
var EmptyLogMetricBucketOptionsLinearBuckets *LogMetricBucketOptionsLinearBuckets = &LogMetricBucketOptionsLinearBuckets{empty: true}

This object is used to assert a desired state where this LogMetricBucketOptionsLinearBuckets is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*LogMetricBucketOptionsLinearBuckets) Empty

func (*LogMetricBucketOptionsLinearBuckets) HashCode

func (*LogMetricBucketOptionsLinearBuckets) String

func (*LogMetricBucketOptionsLinearBuckets) UnmarshalJSON

func (r *LogMetricBucketOptionsLinearBuckets) UnmarshalJSON(data []byte) error

type LogMetricList

type LogMetricList struct {
	Items []*LogMetric
	// contains filtered or unexported fields
}

func (*LogMetricList) HasNext

func (l *LogMetricList) HasNext() bool

func (*LogMetricList) Next

func (l *LogMetricList) Next(ctx context.Context, c *Client) error

type LogMetricMetricDescriptor

type LogMetricMetricDescriptor struct {
	Name                   *string                                   `json:"name"`
	Type                   *string                                   `json:"type"`
	Labels                 []LogMetricMetricDescriptorLabels         `json:"labels"`
	MetricKind             *LogMetricMetricDescriptorMetricKindEnum  `json:"metricKind"`
	ValueType              *LogMetricMetricDescriptorValueTypeEnum   `json:"valueType"`
	Unit                   *string                                   `json:"unit"`
	Description            *string                                   `json:"description"`
	DisplayName            *string                                   `json:"displayName"`
	Metadata               *LogMetricMetricDescriptorMetadata        `json:"metadata"`
	LaunchStage            *LogMetricMetricDescriptorLaunchStageEnum `json:"launchStage"`
	MonitoredResourceTypes []string                                  `json:"monitoredResourceTypes"`
	// contains filtered or unexported fields
}
var EmptyLogMetricMetricDescriptor *LogMetricMetricDescriptor = &LogMetricMetricDescriptor{empty: true}

This object is used to assert a desired state where this LogMetricMetricDescriptor is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*LogMetricMetricDescriptor) Empty

func (r *LogMetricMetricDescriptor) Empty() bool

func (*LogMetricMetricDescriptor) HashCode

func (r *LogMetricMetricDescriptor) HashCode() string

func (*LogMetricMetricDescriptor) String

func (r *LogMetricMetricDescriptor) String() string

func (*LogMetricMetricDescriptor) UnmarshalJSON

func (r *LogMetricMetricDescriptor) UnmarshalJSON(data []byte) error

type LogMetricMetricDescriptorLabels

type LogMetricMetricDescriptorLabels struct {
	Key         *string                                       `json:"key"`
	ValueType   *LogMetricMetricDescriptorLabelsValueTypeEnum `json:"valueType"`
	Description *string                                       `json:"description"`
	// contains filtered or unexported fields
}
var EmptyLogMetricMetricDescriptorLabels *LogMetricMetricDescriptorLabels = &LogMetricMetricDescriptorLabels{empty: true}

This object is used to assert a desired state where this LogMetricMetricDescriptorLabels is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*LogMetricMetricDescriptorLabels) Empty

func (*LogMetricMetricDescriptorLabels) HashCode

func (*LogMetricMetricDescriptorLabels) String

func (*LogMetricMetricDescriptorLabels) UnmarshalJSON

func (r *LogMetricMetricDescriptorLabels) UnmarshalJSON(data []byte) error

type LogMetricMetricDescriptorLabelsValueTypeEnum

type LogMetricMetricDescriptorLabelsValueTypeEnum string

The enum LogMetricMetricDescriptorLabelsValueTypeEnum.

func LogMetricMetricDescriptorLabelsValueTypeEnumRef

func LogMetricMetricDescriptorLabelsValueTypeEnumRef(s string) *LogMetricMetricDescriptorLabelsValueTypeEnum

LogMetricMetricDescriptorLabelsValueTypeEnumRef returns a *LogMetricMetricDescriptorLabelsValueTypeEnum with the value of string s If the empty string is provided, nil is returned.

func (LogMetricMetricDescriptorLabelsValueTypeEnum) Validate

type LogMetricMetricDescriptorLaunchStageEnum

type LogMetricMetricDescriptorLaunchStageEnum string

The enum LogMetricMetricDescriptorLaunchStageEnum.

func LogMetricMetricDescriptorLaunchStageEnumRef

func LogMetricMetricDescriptorLaunchStageEnumRef(s string) *LogMetricMetricDescriptorLaunchStageEnum

LogMetricMetricDescriptorLaunchStageEnumRef returns a *LogMetricMetricDescriptorLaunchStageEnum with the value of string s If the empty string is provided, nil is returned.

func (LogMetricMetricDescriptorLaunchStageEnum) Validate

type LogMetricMetricDescriptorMetadata

type LogMetricMetricDescriptorMetadata struct {
	SamplePeriod *string `json:"samplePeriod"`
	IngestDelay  *string `json:"ingestDelay"`
	// contains filtered or unexported fields
}
var EmptyLogMetricMetricDescriptorMetadata *LogMetricMetricDescriptorMetadata = &LogMetricMetricDescriptorMetadata{empty: true}

This object is used to assert a desired state where this LogMetricMetricDescriptorMetadata is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*LogMetricMetricDescriptorMetadata) Empty

func (*LogMetricMetricDescriptorMetadata) HashCode

func (*LogMetricMetricDescriptorMetadata) String

func (*LogMetricMetricDescriptorMetadata) UnmarshalJSON

func (r *LogMetricMetricDescriptorMetadata) UnmarshalJSON(data []byte) error

type LogMetricMetricDescriptorMetricKindEnum

type LogMetricMetricDescriptorMetricKindEnum string

The enum LogMetricMetricDescriptorMetricKindEnum.

func LogMetricMetricDescriptorMetricKindEnumRef

func LogMetricMetricDescriptorMetricKindEnumRef(s string) *LogMetricMetricDescriptorMetricKindEnum

LogMetricMetricDescriptorMetricKindEnumRef returns a *LogMetricMetricDescriptorMetricKindEnum with the value of string s If the empty string is provided, nil is returned.

func (LogMetricMetricDescriptorMetricKindEnum) Validate

type LogMetricMetricDescriptorValueTypeEnum

type LogMetricMetricDescriptorValueTypeEnum string

The enum LogMetricMetricDescriptorValueTypeEnum.

func LogMetricMetricDescriptorValueTypeEnumRef

func LogMetricMetricDescriptorValueTypeEnumRef(s string) *LogMetricMetricDescriptorValueTypeEnum

LogMetricMetricDescriptorValueTypeEnumRef returns a *LogMetricMetricDescriptorValueTypeEnum with the value of string s If the empty string is provided, nil is returned.

func (LogMetricMetricDescriptorValueTypeEnum) Validate

type LogView

type LogView struct {
	Name        *string `json:"name"`
	Description *string `json:"description"`
	CreateTime  *string `json:"createTime"`
	UpdateTime  *string `json:"updateTime"`
	Filter      *string `json:"filter"`
	Parent      *string `json:"parent"`
	Location    *string `json:"location"`
	Bucket      *string `json:"bucket"`
}

func (*LogView) Describe

func (r *LogView) Describe() dcl.ServiceTypeVersion

Describe returns a simple description of this resource to ensure that automated tools can identify it.

func (*LogView) ID

func (r *LogView) ID() (string, error)

func (*LogView) String

func (r *LogView) String() string

type LogViewList

type LogViewList struct {
	Items []*LogView
	// contains filtered or unexported fields
}

func (*LogViewList) HasNext

func (l *LogViewList) HasNext() bool

func (*LogViewList) Next

func (l *LogViewList) Next(ctx context.Context, c *Client) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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