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
- Variables
- func DCLLogBucketSchema() *dcl.Schema
- func DCLLogExclusionSchema() *dcl.Schema
- func DCLLogMetricSchema() *dcl.Schema
- func DCLLogViewSchema() *dcl.Schema
- type Client
- func (c *Client) ApplyLogBucket(ctx context.Context, rawDesired *LogBucket, opts ...dcl.ApplyOption) (*LogBucket, error)
- func (c *Client) ApplyLogExclusion(ctx context.Context, rawDesired *LogExclusion, opts ...dcl.ApplyOption) (*LogExclusion, error)
- func (c *Client) ApplyLogMetric(ctx context.Context, rawDesired *LogMetric, opts ...dcl.ApplyOption) (*LogMetric, error)
- func (c *Client) ApplyLogView(ctx context.Context, rawDesired *LogView, opts ...dcl.ApplyOption) (*LogView, error)
- func (c *Client) DeleteAllLogBucket(ctx context.Context, location, parent string, filter func(*LogBucket) bool) error
- func (c *Client) DeleteAllLogExclusion(ctx context.Context, parent string, filter func(*LogExclusion) bool) error
- func (c *Client) DeleteAllLogMetric(ctx context.Context, project string, filter func(*LogMetric) bool) error
- func (c *Client) DeleteAllLogView(ctx context.Context, location, bucket, parent string, ...) error
- func (c *Client) DeleteLogBucket(ctx context.Context, r *LogBucket) error
- func (c *Client) DeleteLogExclusion(ctx context.Context, r *LogExclusion) error
- func (c *Client) DeleteLogMetric(ctx context.Context, r *LogMetric) error
- func (c *Client) DeleteLogView(ctx context.Context, r *LogView) error
- func (c *Client) GetLogBucket(ctx context.Context, r *LogBucket) (*LogBucket, error)
- func (c *Client) GetLogExclusion(ctx context.Context, r *LogExclusion) (*LogExclusion, error)
- func (c *Client) GetLogMetric(ctx context.Context, r *LogMetric) (*LogMetric, error)
- func (c *Client) GetLogView(ctx context.Context, r *LogView) (*LogView, error)
- func (c *Client) ListLogBucket(ctx context.Context, location, parent string) (*LogBucketList, error)
- func (c *Client) ListLogBucketWithMaxResults(ctx context.Context, location, parent string, pageSize int32) (*LogBucketList, error)
- func (c *Client) ListLogExclusion(ctx context.Context, parent string) (*LogExclusionList, error)
- func (c *Client) ListLogExclusionWithMaxResults(ctx context.Context, parent string, pageSize int32) (*LogExclusionList, error)
- func (c *Client) ListLogMetric(ctx context.Context, project string) (*LogMetricList, error)
- func (c *Client) ListLogMetricWithMaxResults(ctx context.Context, project string, pageSize int32) (*LogMetricList, error)
- func (c *Client) ListLogView(ctx context.Context, location, bucket, parent string) (*LogViewList, error)
- func (c *Client) ListLogViewWithMaxResults(ctx context.Context, location, bucket, parent string, pageSize int32) (*LogViewList, error)
- type LogBucket
- type LogBucketLifecycleStateEnum
- type LogBucketList
- type LogExclusion
- type LogExclusionList
- type LogMetric
- type LogMetricBucketOptions
- type LogMetricBucketOptionsExplicitBuckets
- type LogMetricBucketOptionsExponentialBuckets
- type LogMetricBucketOptionsLinearBuckets
- type LogMetricList
- type LogMetricMetricDescriptor
- type LogMetricMetricDescriptorLabels
- type LogMetricMetricDescriptorLabelsValueTypeEnum
- type LogMetricMetricDescriptorLaunchStageEnum
- type LogMetricMetricDescriptorMetadata
- type LogMetricMetricDescriptorMetricKindEnum
- type LogMetricMetricDescriptorValueTypeEnum
- type LogView
- type LogViewList
Constants ¶
const LogBucketMaxPage = -1
const LogExclusionMaxPage = -1
const LogMetricMaxPage = -1
const LogViewMaxPage = -1
Variables ¶
var YAML_log_bucket []byte
var YAML_log_exclusion []byte
var YAML_log_metric []byte
var YAML_log_view []byte
Functions ¶
func DCLLogBucketSchema ¶ added in v1.10.3
func DCLLogExclusionSchema ¶ added in v1.10.3
func DCLLogMetricSchema ¶ added in v1.10.3
func DCLLogViewSchema ¶ added in v1.10.3
Types ¶
type Client ¶
The Client is the base struct of all operations. This will receive the Get, Delete, List, and Apply operations on all resources.
func (*Client) ApplyLogBucket ¶
func (*Client) ApplyLogExclusion ¶
func (c *Client) ApplyLogExclusion(ctx context.Context, rawDesired *LogExclusion, opts ...dcl.ApplyOption) (*LogExclusion, error)
func (*Client) ApplyLogMetric ¶
func (*Client) ApplyLogView ¶
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 (*Client) DeleteLogExclusion ¶
func (c *Client) DeleteLogExclusion(ctx context.Context, r *LogExclusion) error
func (*Client) DeleteLogMetric ¶
func (*Client) DeleteLogView ¶
func (*Client) GetLogBucket ¶
func (*Client) GetLogExclusion ¶
func (c *Client) GetLogExclusion(ctx context.Context, r *LogExclusion) (*LogExclusion, error)
func (*Client) GetLogMetric ¶
func (*Client) GetLogView ¶
func (*Client) ListLogBucket ¶
func (*Client) ListLogBucketWithMaxResults ¶
func (*Client) ListLogExclusion ¶
func (*Client) ListLogExclusionWithMaxResults ¶
func (*Client) ListLogMetric ¶
func (*Client) ListLogMetricWithMaxResults ¶
func (*Client) ListLogView ¶
func (*Client) ListLogViewWithMaxResults ¶
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.
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
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
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.
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 (r *LogMetricBucketOptionsExplicitBuckets) Empty() bool
func (*LogMetricBucketOptionsExplicitBuckets) HashCode ¶
func (r *LogMetricBucketOptionsExplicitBuckets) HashCode() string
func (*LogMetricBucketOptionsExplicitBuckets) String ¶
func (r *LogMetricBucketOptionsExplicitBuckets) String() 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 (r *LogMetricBucketOptionsExponentialBuckets) Empty() bool
func (*LogMetricBucketOptionsExponentialBuckets) HashCode ¶
func (r *LogMetricBucketOptionsExponentialBuckets) HashCode() string
func (*LogMetricBucketOptionsExponentialBuckets) String ¶
func (r *LogMetricBucketOptionsExponentialBuckets) String() 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 (r *LogMetricBucketOptionsLinearBuckets) Empty() bool
func (*LogMetricBucketOptionsLinearBuckets) HashCode ¶
func (r *LogMetricBucketOptionsLinearBuckets) HashCode() string
func (*LogMetricBucketOptionsLinearBuckets) String ¶
func (r *LogMetricBucketOptionsLinearBuckets) String() 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
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 (r *LogMetricMetricDescriptorLabels) Empty() bool
func (*LogMetricMetricDescriptorLabels) HashCode ¶
func (r *LogMetricMetricDescriptorLabels) HashCode() string
func (*LogMetricMetricDescriptorLabels) String ¶
func (r *LogMetricMetricDescriptorLabels) String() 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 ¶
func (v LogMetricMetricDescriptorLabelsValueTypeEnum) Validate() error
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 ¶
func (v LogMetricMetricDescriptorLaunchStageEnum) Validate() error
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 (r *LogMetricMetricDescriptorMetadata) Empty() bool
func (*LogMetricMetricDescriptorMetadata) HashCode ¶
func (r *LogMetricMetricDescriptorMetadata) HashCode() string
func (*LogMetricMetricDescriptorMetadata) String ¶
func (r *LogMetricMetricDescriptorMetadata) String() 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 ¶
func (v LogMetricMetricDescriptorMetricKindEnum) Validate() error
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 ¶
func (v LogMetricMetricDescriptorValueTypeEnum) Validate() error
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.
type LogViewList ¶
type LogViewList struct {
Items []*LogView
// contains filtered or unexported fields
}
func (*LogViewList) HasNext ¶
func (l *LogViewList) HasNext() bool
Source Files
¶
- client.go
- log_bucket.go
- log_bucket_internal.go
- log_bucket_schema.go
- log_bucket_yaml_embed.go
- log_exclusion.go
- log_exclusion_internal.go
- log_exclusion_schema.go
- log_exclusion_yaml_embed.go
- log_metric.go
- log_metric_internal.go
- log_metric_schema.go
- log_metric_yaml_embed.go
- log_view.go
- log_view_internal.go
- log_view_schema.go
- log_view_yaml_embed.go
- logging_utils.go