1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-18 23:08:48 +00:00

gcloud: Thu Sep 8 09:21:50 UTC 2022

This commit is contained in:
Automated 2022-09-08 09:21:50 +00:00
parent 6749f65ca2
commit e7bec9b31b
Failed to extract signature
154 changed files with 2457 additions and 577 deletions

View file

@ -4,8 +4,8 @@ NAME
SYNOPSIS
gcloud logging metrics create METRIC_NAME
(--config-from-file=CONFIG_FROM_FILE
| --description=DESCRIPTION --log-filter=LOG_FILTER)
[GCLOUD_WIDE_FLAG ...]
| [--description=DESCRIPTION --log-filter=LOG_FILTER
: --bucket-name=BUCKET_NAME]) [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
Creates a logs-based metric to count the number of log entries that match a
@ -33,6 +33,12 @@ EXAMPLES
how to configure metrics can be found at:
https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.
To create a bucket log-based metric, run:
$ gcloud logging metrics create my_bucket_metric \
--description="DESCRIPTION" --log-filter="LOG_FILTER" \
--bucket-name="BUCKET_NAME"
POSITIONAL ARGUMENTS
METRIC_NAME
The name of the new metric.
@ -60,6 +66,9 @@ REQUIRED FLAGS
This flag argument must be specified if any of the other arguments
in this group are specified.
--bucket-name=BUCKET_NAME
The Log Bucket name which owns the log-based metric.
GCLOUD WIDE FLAGS
These flags are available to all commands: --access-token-file, --account,
--billing-project, --configuration, --flags-file, --flatten, --format,

View file

@ -4,8 +4,8 @@ NAME
SYNOPSIS
gcloud logging metrics update METRIC_NAME
(--config-from-file=CONFIG_FROM_FILE
| --description=DESCRIPTION --log-filter=LOG_FILTER)
(--config-from-file=CONFIG_FROM_FILE | --bucket-name=BUCKET_NAME
--description=DESCRIPTION --log-filter=LOG_FILTER)
[GCLOUD_WIDE_FLAG ...]
DESCRIPTION
@ -38,6 +38,11 @@ EXAMPLES
Any top-level fields in the LogMetric definition that aren't specified in
the config file will not be updated in the metric.
To update the bucket associated with a bucket log-based metric, run:
$ gcloud logging metrics update my-bucket-metric \
--bucket-name="NEW_BUCKET_NAME"
POSITIONAL ARGUMENTS
METRIC_NAME
The name of the log-based metric to update.
@ -54,6 +59,9 @@ REQUIRED FLAGS
Arguments to specify information about simple counter logs-based
metrics.
--bucket-name=BUCKET_NAME
The Log Bucket name which owns the log-based metric.
--description=DESCRIPTION
A new description for the metric. If omitted, the description is
not changed.