Resource Type: GCP > Monitoring > Alert Policy
The Alert Policy resource type is a set of rules that define the conditions under which an alert is triggered and the actions to be taken when an alert is fired. It can be used to create new alerts for monitoring various GCP resources.
Resource Context
Alert Policy is a part of the Monitoring service.
Each Alert Policy lives under a Project.
Controls
The primary controls for GCP > Monitoring > Alert Policy are:
Category
In Your Workspace
- Controls by Resource Type report
- Policy Settings by Resource Type report
- Resources by Resource Type report
Developers
- tmod:@turbot/gcp-monitoring#/resource/types/alertPolicy
- tmod:@turbot/turbot#/resource/categories/managementTools
- turbot graphql resource --id "tmod:@turbot/gcp-monitoring#/resource/types/alertPolicy"
Get Resource- select * from guardrails_resource where resource_type_uri = 'tmod:@turbot/gcp-monitoring#/resource/types/alertPolicy';
- select * from guardrails_policy_setting where filter = 'resourceTypeId:"tmod:@turbot/gcp-monitoring#/resource/types/alertPolicy"';
- select * from guardrails_notification where resource_type_uri = 'tmod:@turbot/gcp-monitoring#/resource/types/alertPolicy' and notification_type in ('resource_updated', 'resource_created');
Get ResourceGet Policy Settings (By Resource ID)Get Resource Notification
Resource Type URI
Category URI
GraphQL
CLI
Steampipe Query