jtopjian / terraform-provider-sensu

A Terraform provider for Sensu Go
21 stars 11 forks source link

Feature request: Support "silenced" top-level attribute for check resource #49

Open paulchoi opened 3 years ago

paulchoi commented 3 years ago

Add support for silenced top-level attribute.

Description says: Silences that apply to the check.

https://docs.sensu.io/sensu-go/6.3/observability-pipeline/observe-schedule/checks/#top-level-attributes

fgouteroux commented 3 years ago

@paulchoi The sensu rest client function used to retrieve a check doesn't provide this attribute.

The RestClient use the FetchCheck function, which return the corev2 CheckConfig type with no field Silenced.

The Silenced field is in type Check and it is not used by the rest client.