Skip to main content

google_monitoring_groups resource

Use the google_monitoring_groups InSpec audit resource to test the properties of a Google Cloud Group resource.

Examples

  describe google_monitoring_groups(name: 'projects/*') do
    it { should exist }
    its('names') { should include 'value_name' }
    its('display_names') { should include 'value_displayname' }
    its('filters') { should include 'value_filter' }
  end

Parameters

Parameters that can be accessed from the google_monitoring_groups resource:

See google_monitoring_group for more detailed information.

  • names: an array of google_monitoring_group name
  • display_names: an array of google_monitoring_group display_name
  • parent_names: an array of google_monitoring_group parent_name
  • filters: an array of google_monitoring_group filter
  • is_clusters: an array of google_monitoring_group is_cluster

Properties

Properties that can be accessed from the google_monitoring_groups resource:

See google_monitoring_group for more detailed information.

  • names: an array of google_monitoring_group name
  • display_names: an array of google_monitoring_group display_name
  • parent_names: an array of google_monitoring_group parent_name
  • filters: an array of google_monitoring_group filter
  • is_clusters: an array of google_monitoring_group is_cluster

Filter criteria

This resource supports all of the above properties as filter criteria, which can be used with where as a block or a method.

GCP permissions

Ensure the Stackdriver Monitoring API is enabled for the current project.

Thank you for your feedback!

×