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_group
namedisplay_names
: an array ofgoogle_monitoring_group
display_nameparent_names
: an array ofgoogle_monitoring_group
parent_namefilters
: an array ofgoogle_monitoring_group
filteris_clusters
: an array ofgoogle_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 ofgoogle_monitoring_group
namedisplay_names
: an array ofgoogle_monitoring_group
display_nameparent_names
: an array ofgoogle_monitoring_group
parent_namefilters
: an array ofgoogle_monitoring_group
filteris_clusters
: an array ofgoogle_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.