mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-08 02:25:19 +00:00
gcloud: Wed Sep 28 10:27:48 UTC 2022
This commit is contained in:
parent
29683b8af4
commit
ffb9e43995
198 changed files with 4783 additions and 367 deletions
|
|
@ -5,12 +5,13 @@ NAME
|
|||
SYNOPSIS
|
||||
gcloud monitoring dashboards create
|
||||
(--config=CONFIG | --config-from-file=CONFIG_FROM_FILE)
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
[--validate-only] [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
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,16 @@ EXAMPLES
|
|||
content: Hello World
|
||||
'''
|
||||
|
||||
To validate a dashboard and not save it, run:
|
||||
|
||||
$ gcloud 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 monitoring dashboards create --config='''
|
||||
|
|
@ -86,6 +97,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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue