- NAME
-
- gcloud beta error-reporting events report - report an error
- SYNOPSIS
-
-
gcloud beta error-reporting events report
--service
=SERVICE
(--message
=MESSAGE
|--message-file
=MESSAGE_FILE
) [--service-version
=SERVICE_VERSION
] [GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
-
(BETA)
gcloud beta error-reporting events report is used to report errors using the error-reporting service. The required arguments are a service name and either an error-file containing details of an error or an inline error message.The error message must contain a header (typically consisting of the exception type name and an error message) and an exception stack trace in one of the supported programming languages and formats. Details about supported languages and formats can be found at https://cloud.google.com/error-reporting/docs/formatting-error-messages
- EXAMPLES
-
To report an error, run:
gcloud beta error-reporting events report --service=SERVICE_NAME --message="Error message"
or:
gcloud beta error-reporting events report --service=SERVICE_NAME --message-file=ERROR_MESSAGE.EXT
- REQUIRED FLAGS
-
--service
=SERVICE
- The name of the service that generated the error
-
Exactly one of these must be specified:
--message
=MESSAGE
- Inline details of the error
--message-file
=MESSAGE_FILE
- File containing details of the error
- OPTIONAL FLAGS
-
--service-version
=SERVICE_VERSION
- The release version of the service
- GCLOUD WIDE FLAGS
-
These flags are available to all commands:
--access-token-file
,--account
,--billing-project
,--configuration
,--flags-file
,--flatten
,--format
,--help
,--impersonate-service-account
,--log-http
,--project
,--quiet
,--trace-token
,--user-output-enabled
,--verbosity
.Run
$ gcloud help
for details. - NOTES
- This command is currently in beta and might change without notice.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-02-06 UTC.