1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-08 10:35:03 +00:00

gcloud: Wed Sep 28 10:27:48 UTC 2022

This commit is contained in:
Automated 2022-09-28 10:27:48 +00:00
parent 29683b8af4
commit ffb9e43995
Failed to extract signature
198 changed files with 4783 additions and 367 deletions

View file

@ -5,12 +5,13 @@ NAME
SYNOPSIS
gcloud beta monitoring dashboards create
(--config=CONFIG | --config-from-file=CONFIG_FROM_FILE)
[GCLOUD_WIDE_FLAG ...]
[--validate-only] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) Create a new Monitoring dashboard. A dashboard can be specified as a
JSON/YAML value passed in as a string through the --config flag or as a
file through the --config-from-file flag.
file through the --config-from-file flag. Validate a dashboard config
without saving by setting the --validate-only flag.
For information about the format of a dashboard:
https://cloud.google.com/monitoring/api/ref_v3/rest/v1/projects.dashboards
@ -26,6 +27,17 @@ EXAMPLES
content: Hello World
'''
To validate a dashboard and not save it, run:
$ gcloud beta monitoring dashboards create --validate-only \
--config='''
displayName: New Dashboard
gridLayout:
widgets:
- text:
content: Hello World
'''
To create a dashboard with a JSON config, run:
$ gcloud beta monitoring dashboards create --config='''
@ -86,6 +98,10 @@ REQUIRED FLAGS
--config-from-file=CONFIG_FROM_FILE
Path to a JSON or YAML file containing the dashboard configuration.
OPTIONAL FLAGS
--validate-only
When set, validate the dashboard but do not save it.
GCLOUD WIDE FLAGS
These flags are available to all commands: --access-token-file, --account,
--billing-project, --configuration, --flags-file, --flatten, --format,