ANOMALY_INSIGHTS!GET_NOTIFICATION_INTEGRATIONS

Returns the notification integrations that are registered to receive cost anomaly notifications for the specified anomaly scope.

Syntax

SNOWFLAKE.LOCAL.ANOMALY_INSIGHTS!GET_NOTIFICATION_INTEGRATIONS(
  '<anomaly_scope>' )

Arguments

'anomaly_scope'

Specifies the anomaly level to return registered notification integrations for. The value is case-insensitive and must be one of the following:

Output

Returns a table with the following columns, ordered by registration time in descending order. If no integrations are registered for the specified anomaly scope, the table is empty.

Column nameData typeDescription
INTEGRATION_NAMEVARCHARName of the registered notification integration.
LAST_SUCCESSFUL_NOTIFICATIONTIMESTAMP_TZTimestamp of the most recent successful notification sent to the integration. The value is NULL if no notification has been sent.
ADDED_TIMESTAMPTIMESTAMP_TZTimestamp when the notification integration was registered.

Access control requirements

Users with any of the following roles can call this method:

  • ACCOUNTADMIN system role
  • GLOBALORGADMIN system role
  • SNOWFLAKE.APP_USAGE_ADMIN application role
  • SNOWFLAKE.APP_USAGE_VIEWER application role
  • SNOWFLAKE.ORGANIZATION_BILLING_VIEWER application role in the organization account
  • SNOWFLAKE.APP_ORGANIZATION_BILLING_VIEWER application role in an ORGADMIN-enabled account

Usage notes

  • Anomaly Insights notification integrations must be enabled for the account. If the feature isn’t enabled, this method raises an exception.
  • This method raises an exception if the anomaly scope is invalid.
  • This method doesn’t validate whether the underlying notification integration objects still exist in the account.

Example

Return the notification integrations registered for account-level cost anomalies:

CALL SNOWFLAKE.LOCAL.ANOMALY_INSIGHTS!GET_NOTIFICATION_INTEGRATIONS('ACCOUNT');