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 ofgoogle_monitoring_groupnamedisplay_names: an array ofgoogle_monitoring_groupdisplay_nameparent_names: an array ofgoogle_monitoring_groupparent_namefilters: an array ofgoogle_monitoring_groupfilteris_clusters: an array ofgoogle_monitoring_groupis_cluster
Properties
Properties that can be accessed from the google_monitoring_groups resource:
See google_monitoring_group for more detailed information.
names: an array ofgoogle_monitoring_groupnamedisplay_names: an array ofgoogle_monitoring_groupdisplay_nameparent_names: an array ofgoogle_monitoring_groupparent_namefilters: an array ofgoogle_monitoring_groupfilteris_clusters: an array ofgoogle_monitoring_groupis_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.