Class NotificationSpec (1.122.0)

NotificationSpec(
 user_emails: typing.Optional[typing.List[str]] = None,
 notification_channels: typing.Optional[typing.List[str]] = None,
 enable_cloud_logging: typing.Optional[bool] = False,
)

Initializer for NotificationSpec.

Parameters

Name Description
user_emails List[str]

Optional. The email addresses to send the alert to.

notification_channels List[str]

Optional. The notification channels to send the alert to. Format: projects/{project}/notificationChannels/{channel}

enable_cloud_logging bool

Optional. If dump the anomalies to Cloud Logging. The anomalies will be put to json payload. This can be further sinked to Pub/Sub or any other services supported by Cloud Logging.

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 2025年10月30日 UTC.