Documentation ¶
Overview ¶
Copyright 2022 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 2022 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 2022 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 2022 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 2022 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 2022 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 2022 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 2022 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 2022 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 2022 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 2022 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 2022 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 2022 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 2022 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("info:\n title: Logging/LogBucket\n description: The Logging LogBucket resource\n x-dcl-struct-name: LogBucket\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a LogBucket\n parameters:\n - name: logBucket\n required: true\n description: A full instance of a LogBucket\n apply:\n description: The function used to apply information about a LogBucket\n parameters:\n - name: logBucket\n required: true\n description: A full instance of a LogBucket\n delete:\n description: The function used to delete a LogBucket\n parameters:\n - name: logBucket\n required: true\n description: A full instance of a LogBucket\n deleteAll:\n description: The function used to delete all LogBucket\n parameters:\n - name: location\n required: true\n schema:\n type: string\n - name: parent\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many LogBucket\n parameters:\n - name: location\n required: true\n schema:\n type: string\n - name: parent\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n LogBucket:\n title: LogBucket\n x-dcl-id: '{{parent}}/locations/{{location}}/buckets/{{name}}'\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - parent\n - location\n properties:\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The creation timestamp of the bucket. This is\n not set for any of the default buckets.\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: Describes this bucket.\n lifecycleState:\n type: string\n x-dcl-go-name: LifecycleState\n x-dcl-go-type: LogBucketLifecycleStateEnum\n readOnly: true\n description: 'Output only. The bucket lifecycle state. Possible values:\n LIFECYCLE_STATE_UNSPECIFIED, ACTIVE, DELETE_REQUESTED'\n x-kubernetes-immutable: true\n enum:\n - LIFECYCLE_STATE_UNSPECIFIED\n - ACTIVE\n - DELETE_REQUESTED\n location:\n type: string\n x-dcl-go-name: Location\n description: 'The location of the resource. The supported locations are:\n global, us-central1, us-east1, us-west1, asia-east1, europe-west1.'\n x-kubernetes-immutable: true\n locked:\n type: boolean\n x-dcl-go-name: Locked\n description: Whether the bucket has been locked. The retention period on\n a locked bucket may not be changed. Locked buckets may only be deleted\n if they are empty.\n name:\n type: string\n x-dcl-go-name: Name\n description: 'The resource name of the bucket. For example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id\"\n The supported locations are: `global`, `us-central1`, `us-east1`, `us-west1`,\n `asia-east1`, `europe-west1`. For the location of `global` it is unspecified\n where logs are actually stored. Once a bucket has been created, the location\n can not be changed.'\n x-kubernetes-immutable: true\n parent:\n type: string\n x-dcl-go-name: Parent\n description: The parent of the resource.\n x-kubernetes-immutable: true\n x-dcl-forward-slash-allowed: true\n x-dcl-references:\n - resource: Cloudresourcemanager/BillingAccount\n field: name\n parent: true\n - resource: Cloudresourcemanager/Folder\n field: name\n parent: true\n - resource: Cloudresourcemanager/Organization\n field: name\n parent: true\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n retentionDays:\n type: integer\n format: int64\n x-dcl-go-name: RetentionDays\n description: Logs will be retained by default for this amount of time, after\n which they will automatically be deleted. The minimum retention period\n is 1 day. If this value is set to zero at bucket creation time, the default\n time of 30 days will be used.\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The last update timestamp of the bucket.\n x-kubernetes-immutable: true\n")
blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/logging/log_bucket.yaml
var YAML_log_exclusion = []byte("info:\n title: Logging/LogExclusion\n description: The Logging LogExclusion resource\n x-dcl-struct-name: LogExclusion\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a LogExclusion\n parameters:\n - name: logExclusion\n required: true\n description: A full instance of a LogExclusion\n apply:\n description: The function used to apply information about a LogExclusion\n parameters:\n - name: logExclusion\n required: true\n description: A full instance of a LogExclusion\n delete:\n description: The function used to delete a LogExclusion\n parameters:\n - name: logExclusion\n required: true\n description: A full instance of a LogExclusion\n deleteAll:\n description: The function used to delete all LogExclusion\n parameters:\n - name: parent\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many LogExclusion\n parameters:\n - name: parent\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n LogExclusion:\n title: LogExclusion\n x-dcl-id: '{{parent}}/exclusions/{{name}}'\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - filter\n properties:\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The creation timestamp of the exclusion. This\n field may not be present for older exclusions.\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. A description of this exclusion.\n disabled:\n type: boolean\n x-dcl-go-name: Disabled\n description: Optional. If set to True, then this exclusion is disabled and\n it does not exclude any log entries. You can update an exclusion to change\n the value of this field.\n filter:\n type: string\n x-dcl-go-name: Filter\n description: 'Required. An (https://cloud.google.com/logging/docs/view/advanced-queries#sample),\n you can exclude less than 100% of the matching log entries. For example,\n the following query matches 99% of low-severity log entries from Google\n Cloud Storage buckets: `\"resource.type=gcs_bucket severity'\n name:\n type: string\n x-dcl-go-name: Name\n description: Required. A client-assigned identifier, such as `\"load-balancer-exclusion\"`.\n Identifiers are limited to 100 characters and can include only letters,\n digits, underscores, hyphens, and periods. First character has to be alphanumeric.\n x-kubernetes-immutable: true\n parent:\n type: string\n x-dcl-go-name: Parent\n description: 'The parent resource in which to create the exclusion: \"projects/[PROJECT_ID]\"\n \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\"\n \"folders/[FOLDER_ID]\" Examples: \"projects/my-logging-project\", \"organizations/123456789\".\n Authorization requires the following IAM permission on the specified resource\n parent: logging.exclusions.create'\n x-kubernetes-immutable: true\n x-dcl-forward-slash-allowed: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n - resource: Cloudresourcemanager/Folder\n field: name\n parent: true\n - resource: Cloudresourcemanager/Organization\n field: name\n parent: true\n - resource: Cloudresourcemanager/BillingAccount\n field: name\n parent: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The last update timestamp of the exclusion. This\n field may not be present for older exclusions.\n x-kubernetes-immutable: true\n")
blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/logging/log_exclusion.yaml
var YAML_log_metric = []byte("info:\n title: Logging/LogMetric\n description: The Logging LogMetric resource\n x-dcl-struct-name: LogMetric\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a LogMetric\n parameters:\n - name: logMetric\n required: true\n description: A full instance of a LogMetric\n apply:\n description: The function used to apply information about a LogMetric\n parameters:\n - name: logMetric\n required: true\n description: A full instance of a LogMetric\n delete:\n description: The function used to delete a LogMetric\n parameters:\n - name: logMetric\n required: true\n description: A full instance of a LogMetric\n deleteAll:\n description: The function used to delete all LogMetric\n parameters:\n - name: project\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many LogMetric\n parameters:\n - name: project\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n LogMetric:\n title: LogMetric\n x-dcl-id: projects/{{project}}/metrics/{{name}}\n x-dcl-uses-state-hint: true\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - filter\n - project\n properties:\n bucketOptions:\n type: object\n x-dcl-go-name: BucketOptions\n x-dcl-go-type: LogMetricBucketOptions\n description: Optional. The `bucket_options` are required when the logs-based\n metric is using a DISTRIBUTION value type and it describes the bucket\n boundaries used to create a histogram of the extracted values.\n properties:\n explicitBuckets:\n type: object\n x-dcl-go-name: ExplicitBuckets\n x-dcl-go-type: LogMetricBucketOptionsExplicitBuckets\n description: The explicit buckets.\n x-dcl-conflicts:\n - linearBuckets\n - exponentialBuckets\n properties:\n bounds:\n type: array\n x-dcl-go-name: Bounds\n description: The values must be monotonically increasing.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: number\n format: double\n x-dcl-go-type: float64\n exponentialBuckets:\n type: object\n x-dcl-go-name: ExponentialBuckets\n x-dcl-go-type: LogMetricBucketOptionsExponentialBuckets\n description: The exponential buckets.\n x-dcl-conflicts:\n - linearBuckets\n - explicitBuckets\n properties:\n growthFactor:\n type: number\n format: double\n x-dcl-go-name: GrowthFactor\n description: Must be greater than 1.\n numFiniteBuckets:\n type: integer\n format: int64\n x-dcl-go-name: NumFiniteBuckets\n description: Must be greater than 0.\n scale:\n type: number\n format: double\n x-dcl-go-name: Scale\n description: Must be greater than 0.\n linearBuckets:\n type: object\n x-dcl-go-name: LinearBuckets\n x-dcl-go-type: LogMetricBucketOptionsLinearBuckets\n description: The linear bucket.\n x-dcl-conflicts:\n - exponentialBuckets\n - explicitBuckets\n properties:\n numFiniteBuckets:\n type: integer\n format: int64\n x-dcl-go-name: NumFiniteBuckets\n description: Must be greater than 0.\n offset:\n type: number\n format: double\n x-dcl-go-name: Offset\n description: Lower bound of the first bucket.\n width:\n type: number\n format: double\n x-dcl-go-name: Width\n description: Must be greater than 0.\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The creation timestamp of the metric. This field\n may not be present for older metrics.\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. A description of this metric, which is used in documentation.\n The maximum length of the description is 8000 characters.\n disabled:\n type: boolean\n x-dcl-go-name: Disabled\n description: Optional. If set to True, then this metric is disabled and\n it does not generate any points.\n filter:\n type: string\n x-dcl-go-name: Filter\n description: 'Required. An [advanced logs filter](https://cloud.google.com/logging/docs/view/advanced_filters)\n which is used to match log entries. Example: \"resource.type=gae_app AND\n severity>=ERROR\" The maximum length of the filter is 20000 characters.'\n labelExtractors:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: LabelExtractors\n description: Optional. A map from a label key string to an extractor expression\n which is used to extract data from a log entry field and assign as the\n label value. Each label key specified in the LabelDescriptor must have\n an associated extractor expression in this map. The syntax of the extractor\n expression is the same as for the `value_extractor` field. The extracted\n value is converted to the type defined in the label descriptor. If the\n either the extraction or the type conversion fails, the label will have\n a default value. The default value for a string label is an empty string,\n for an integer label its 0, and for a boolean label its `false`. Note\n that there are upper bounds on the maximum number of labels and the number\n of active time series that are allowed in a project.\n metricDescriptor:\n type: object\n x-dcl-go-name: MetricDescriptor\n x-dcl-go-type: LogMetricMetricDescriptor\n description: Optional. The metric descriptor associated with the logs-based\n metric. If unspecified, it uses a default metric descriptor with a DELTA\n metric kind, INT64 value type, with no labels and a unit of \"1\". Such\n a metric counts the number of log entries matching the `filter` expression.\n The `name`, `type`, and `description` fields in the `metric_descriptor`\n are output only, and is constructed using the `name` and `description`\n field in the LogMetric. To create a logs-based metric that records a distribution\n of log values, a DELTA metric kind with a DISTRIBUTION value type must\n be used along with a `value_extractor` expression in the LogMetric. Each\n label in the metric descriptor must have a matching label name as the\n key and an extractor expression as the value in the `label_extractors`\n map. The `metric_kind` and `value_type` fields in the `metric_descriptor`\n cannot be updated once initially configured. New labels can be added in\n the `metric_descriptor`, but existing labels cannot be modified except\n for their description.\n properties:\n description:\n type: string\n x-dcl-go-name: Description\n readOnly: true\n description: A detailed description of the metric, which can be used\n in documentation.\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: A concise name for the metric, which can be displayed in\n user interfaces. Use sentence case without an ending period, for example\n \"Request count\". This field is optional but it is recommended to be\n set for any metrics associated with user-visible concepts, such as\n Quota.\n labels:\n type: array\n x-dcl-go-name: Labels\n description: The set of labels that can be used to describe a specific\n instance of this metric type. For example, the `appengine.googleapis.com/http/server/response_latencies`\n metric type has a label for the HTTP response code, `response_code`,\n so you can look at latencies for successful responses or just for\n responses that failed.\n x-dcl-send-empty: true\n x-dcl-list-type: set\n items:\n type: object\n x-dcl-go-type: LogMetricMetricDescriptorLabels\n properties:\n description:\n type: string\n x-dcl-go-name: Description\n description: A human-readable description for the label.\n x-kubernetes-immutable: true\n key:\n type: string\n x-dcl-go-name: Key\n description: The label key.\n x-kubernetes-immutable: true\n valueType:\n type: string\n x-dcl-go-name: ValueType\n x-dcl-go-type: LogMetricMetricDescriptorLabelsValueTypeEnum\n description: 'The type of data that can be assigned to the label.\n Possible values: STRING, BOOL, INT64, DOUBLE, DISTRIBUTION,\n MONEY'\n x-kubernetes-immutable: true\n enum:\n - STRING\n - BOOL\n - INT64\n - DOUBLE\n - DISTRIBUTION\n - MONEY\n launchStage:\n type: string\n x-dcl-go-name: LaunchStage\n x-dcl-go-type: LogMetricMetricDescriptorLaunchStageEnum\n description: 'Optional. The launch stage of the metric definition. Possible\n values: UNIMPLEMENTED, PRELAUNCH, EARLY_ACCESS, ALPHA, BETA, GA, DEPRECATED'\n enum:\n - UNIMPLEMENTED\n - PRELAUNCH\n - EARLY_ACCESS\n - ALPHA\n - BETA\n - GA\n - DEPRECATED\n x-dcl-mutable-unreadable: true\n metadata:\n type: object\n x-dcl-go-name: Metadata\n x-dcl-go-type: LogMetricMetricDescriptorMetadata\n description: Optional. Metadata which can be used to guide usage of\n the metric.\n x-dcl-mutable-unreadable: true\n properties:\n ingestDelay:\n type: string\n x-dcl-go-name: IngestDelay\n description: The delay of data points caused by ingestion. Data\n points older than this age are guaranteed to be ingested and available\n to be read, excluding data loss due to errors.\n samplePeriod:\n type: string\n x-dcl-go-name: SamplePeriod\n description: The sampling period of metric data points. For metrics\n which are written periodically, consecutive data points are stored\n at this time interval, excluding data loss due to errors. Metrics\n with a higher granularity have a smaller sampling period.\n metricKind:\n type: string\n x-dcl-go-name: MetricKind\n x-dcl-go-type: LogMetricMetricDescriptorMetricKindEnum\n description: 'Whether the metric records instantaneous values, changes\n to a value, etc. Some combinations of `metric_kind` and `value_type`\n might not be supported. Possible values: GAUGE, DELTA, CUMULATIVE'\n x-kubernetes-immutable: true\n enum:\n - GAUGE\n - DELTA\n - CUMULATIVE\n monitoredResourceTypes:\n type: array\n x-dcl-go-name: MonitoredResourceTypes\n readOnly: true\n description: Read-only. If present, then a time series, which is identified\n partially by a metric type and a MonitoredResourceDescriptor, that\n is associated with this metric type can only be associated with one\n of the monitored resource types listed here.\n x-kubernetes-immutable: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n name:\n type: string\n x-dcl-go-name: Name\n readOnly: true\n description: The resource name of the metric descriptor.\n x-kubernetes-immutable: true\n type:\n type: string\n x-dcl-go-name: Type\n readOnly: true\n description: 'The metric type, including its DNS name prefix. The type\n is not URL-encoded. All user-defined metric types have the DNS name\n `custom.googleapis.com` or `external.googleapis.com`. Metric types\n should use a natural hierarchical grouping. For example: \"custom.googleapis.com/invoice/paid/amount\"\n \"external.googleapis.com/prometheus/up\" \"appengine.googleapis.com/http/server/response_latencies\"'\n x-kubernetes-immutable: true\n unit:\n type: string\n x-dcl-go-name: Unit\n description: 'The units in which the metric value is reported. It is\n only applicable if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`.\n The `unit` defines the representation of the stored metric values.\n Different systems might scale the values to be more easily displayed\n (so a value of `0.02kBy` _might_ be displayed as `20By`, and a value\n of `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit`\n is `kBy`, then the value of the metric is always in thousands of bytes,\n no matter how it might be displayed. If you want a custom metric to\n record the exact number of CPU-seconds used by a job, you can create\n an `INT64 CUMULATIVE` metric whose `unit` is `s{CPU}` (or equivalently\n `1s{CPU}` or just `s`). If the job uses 12,005 CPU-seconds, then the\n value is written as `12005`. Alternatively, if you want a custom metric\n to record data in a more granular way, you can create a `DOUBLE CUMULATIVE`\n metric whose `unit` is `ks{CPU}`, and then write the value `12.005`\n (which is `12005/1000`), or use `Kis{CPU}` and write `11.723` (which\n is `12005/1024`). The supported units are a subset of [The Unified\n Code for Units of Measure](https://unitsofmeasure.org/ucum.html) standard:\n **Basic units (UNIT)** * `bit` bit * `By` byte * `s` second * `min`\n minute * `h` hour * `d` day * `1` dimensionless **Prefixes (PREFIX)**\n * `k` kilo (10^3) * `M` mega (10^6) * `G` giga (10^9) * `T` tera (10^12)\n * `P` peta (10^15) * `E` exa (10^18) * `Z` zetta (10^21) * `Y` yotta\n (10^24) * `m` milli (10^-3) * `u` micro (10^-6) * `n` nano (10^-9)\n * `p` pico (10^-12) * `f` femto (10^-15) * `a` atto (10^-18) * `z`\n zepto (10^-21) * `y` yocto (10^-24) * `Ki` kibi (2^10) * `Mi` mebi\n (2^20) * `Gi` gibi (2^30) * `Ti` tebi (2^40) * `Pi` pebi (2^50) **Grammar**\n The grammar also includes these connectors: * `/` division or ratio\n (as an infix operator). For examples, `kBy/{email}` or `MiBy/10ms`\n (although you should almost never have `/s` in a metric `unit`; rates\n should always be computed at query time from the underlying cumulative\n or delta value). * `.` multiplication or composition (as an infix\n operator). For examples, `GBy.d` or `k{watt}.h`. The grammar for a\n unit is as follows: Expression = Component: { \".\" Component } { \"/\"\n Component } ; Component = ( [ PREFIX ] UNIT | \"%\" ) [ Annotation ]\n | Annotation | \"1\" ; Annotation = \"{\" NAME \"}\" ; Notes: * `Annotation`\n is just a comment if it follows a `UNIT`. If the annotation is used\n alone, then the unit is equivalent to `1`. For examples, `{request}/s\n == 1/s`, `By{transmitted}/s == By/s`. * `NAME` is a sequence of non-blank\n printable ASCII characters not containing `{` or `}`. * `1` represents\n a unitary [dimensionless unit](https://en.wikipedia.org/wiki/Dimensionless_quantity)\n of 1, such as in `1/s`. It is typically used when none of the basic\n units are appropriate. For example, \"new users per day\" can be represented\n as `1/d` or `{new-users}/d` (and a metric value `5` would mean \"5\n new users). Alternatively, \"thousands of page views per day\" would\n be represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric\n value of `5.3` would mean \"5300 page views per day\"). * `%` represents\n dimensionless value of 1/100, and annotates values giving a percentage\n (so the metric values are typically in the range of 0..100, and a\n metric value `3` means \"3 percent\"). * `10^2.%` indicates a metric\n contains a ratio, typically in the range 0..1, that will be multiplied\n by 100 and displayed as a percentage (so a metric value `0.03` means\n \"3 percent\").'\n x-dcl-server-default: true\n valueType:\n type: string\n x-dcl-go-name: ValueType\n x-dcl-go-type: LogMetricMetricDescriptorValueTypeEnum\n description: 'Whether the measurement is an integer, a floating-point\n number, etc. Some combinations of `metric_kind` and `value_type` might\n not be supported. Possible values: STRING, BOOL, INT64, DOUBLE, DISTRIBUTION,\n MONEY'\n x-kubernetes-immutable: true\n enum:\n - STRING\n - BOOL\n - INT64\n - DOUBLE\n - DISTRIBUTION\n - MONEY\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Required. The client-assigned metric identifier. Examples:\n `\"error_count\"`, `\"nginx/requests\"`. Metric identifiers are limited to\n 100 characters and can include only the following characters: `A-Z`, `a-z`,\n `0-9`, and the special characters `_-.,+!*'',()%/`. The forward-slash\n character (`/`) denotes a hierarchy of name pieces, and it cannot be the\n first character of the name. The metric identifier in this field must\n not be [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding).\n However, when the metric identifier appears as the `[METRIC_ID]` part\n of a `metric_name` API parameter, then the metric identifier must be URL-encoded.\n Example: `\"projects/my-project/metrics/nginx%2Frequests\"`.'\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The resource name of the project in which to create the metric.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The last update timestamp of the metric. This\n field may not be present for older metrics.\n x-kubernetes-immutable: true\n valueExtractor:\n type: string\n x-dcl-go-name: ValueExtractor\n description: 'Optional. A `value_extractor` is required when using a distribution\n logs-based metric to extract the values to record from a log entry. Two\n functions are supported for value extraction: `EXTRACT(field)` or `REGEXP_EXTRACT(field,\n regex)`. The argument are: 1. field: The name of the log entry field from\n which the value is to be extracted. 2. regex: A regular expression using\n the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax) with\n a single capture group to extract data from the specified log entry field.\n The value of the field is converted to a string before applying the regex.\n It is an error to specify a regex that does not include exactly one capture\n group. The result of the extraction must be convertible to a double type,\n as the distribution always records double values. If either the extraction\n or the conversion to double fails, then those values are not recorded\n in the distribution. Example: `REGEXP_EXTRACT(jsonPayload.request, \".*quantity=(d+).*\")`'\n")
blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/logging/log_metric.yaml
var YAML_log_view = []byte("info:\n title: Logging/LogView\n description: The Logging LogView resource\n x-dcl-struct-name: LogView\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a LogView\n parameters:\n - name: logView\n required: true\n description: A full instance of a LogView\n apply:\n description: The function used to apply information about a LogView\n parameters:\n - name: logView\n required: true\n description: A full instance of a LogView\n delete:\n description: The function used to delete a LogView\n parameters:\n - name: logView\n required: true\n description: A full instance of a LogView\n deleteAll:\n description: The function used to delete all LogView\n parameters:\n - name: location\n required: true\n schema:\n type: string\n - name: bucket\n required: true\n schema:\n type: string\n - name: parent\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many LogView\n parameters:\n - name: location\n required: true\n schema:\n type: string\n - name: bucket\n required: true\n schema:\n type: string\n - name: parent\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n LogView:\n title: LogView\n x-dcl-id: '{{parent}}/locations/{{location}}/buckets/{{bucket}}/views/{{name}}'\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - bucket\n properties:\n bucket:\n type: string\n x-dcl-go-name: Bucket\n description: The bucket of the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Logging/LogBucket\n field: name\n parent: true\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The creation timestamp of the view.\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: Describes this view.\n filter:\n type: string\n x-dcl-go-name: Filter\n description: 'Filter that restricts which log entries in a bucket are visible\n in this view. Filters are restricted to be a logical AND of ==/!= of any\n of the following: - originating project/folder/organization/billing account.\n - resource type - log id For example: SOURCE(\"projects/myproject\") AND\n resource.type = \"gce_instance\" AND LOG_ID(\"stdout\")'\n location:\n type: string\n x-dcl-go-name: Location\n description: 'The location of the resource. The supported locations are:\n global, us-central1, us-east1, us-west1, asia-east1, europe-west1.'\n x-kubernetes-immutable: true\n x-dcl-extract-if-empty: true\n name:\n type: string\n x-dcl-go-name: Name\n description: 'The resource name of the view. For example: `projects/my-project/locations/global/buckets/my-bucket/views/my-view`'\n x-kubernetes-immutable: true\n parent:\n type: string\n x-dcl-go-name: Parent\n description: The parent of the resource.\n x-kubernetes-immutable: true\n x-dcl-forward-slash-allowed: true\n x-dcl-references:\n - resource: Cloudresourcemanager/BillingAccount\n field: name\n parent: true\n - resource: Cloudresourcemanager/Folder\n field: name\n parent: true\n - resource: Cloudresourcemanager/Organization\n field: name\n parent: true\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n x-dcl-extract-if-empty: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The last update timestamp of the view.\n x-kubernetes-immutable: true\n")
blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/logging/log_view.yaml
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"` }
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