gcloud_logging_metrics_update (1)
NAME
- gcloud logging metrics update - updates the definition of a logs-based metric
SYNOPSIS
-
gcloud logging metrics update METRIC_NAME (--description=DESCRIPTION --log-filter=LOG_FILTER) [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
POSITIONAL ARGUMENTS
-
- METRIC_NAME
-
The name of the log-based metric to update.
REQUIRED FLAGS
-
-
Data about the metric to update. At least one of these must be specified:
-
- --description=DESCRIPTION
-
A new description for the metric. If omitted, the description is not changed.
- --log-filter=LOG_FILTER
-
A new filter string for the metric. If omitted, the filter is not changed.
-
-
Data about the metric to update. At least one of these must be specified:
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
EXAMPLES
To update the description of a metric called high_severity_count, run:
-
$ gcloud logging metrics update high_severity_count \
--description="Count of high-severity log entries."
To update the filter expression of the metric, run:
-
$ gcloud logging metrics update high_severity_count \
--log-filter="severity >= WARNING"
Detailed information about filters can be found at: cloud.google.com/logging/docs/view/advanced_filters
NOTES
This variant is also available:
- $ gcloud beta logging metrics update