You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: `String or regex content to match (max 1024 bytes)`,
77
77
},
78
+
"json_path_matcher": {
79
+
Type: schema.TypeList,
80
+
Optional: true,
81
+
Description: `Information needed to perform a JSONPath content match. Used for 'ContentMatcherOption::MATCHES_JSON_PATH' and 'ContentMatcherOption::NOT_MATCHES_JSON_PATH'.`,
82
+
MaxItems: 1,
83
+
Elem: &schema.Resource{
84
+
Schema: map[string]*schema.Schema{
85
+
"json_path": {
86
+
Type: schema.TypeString,
87
+
Required: true,
88
+
Description: `JSONPath within the response output pointing to the expected 'ContentMatcher::content' to match against.`,
Description: `The type of content matcher that will be applied to the server output, compared to the content string when the check is run. Default value: "CONTAINS_STRING" Possible values: ["CONTAINS_STRING", "NOT_CONTAINS_STRING", "MATCHES_REGEX", "NOT_MATCHES_REGEX"]`,
Description: `The type of content matcher that will be applied to the server output, compared to the content string when the check is run. Default value: "CONTAINS_STRING" Possible values: ["CONTAINS_STRING", "NOT_CONTAINS_STRING", "MATCHES_REGEX", "NOT_MATCHES_REGEX", "MATCHES_JSON_PATH", "NOT_MATCHES_JSON_PATH"]`,
Description: `The monitored resource (https://cloud.google.com/monitoring/api/resources) associated with the configuration. The following monitored resource types are supported for uptime checks: uptime_url gce_instance gae_app aws_ec2_instance aws_elb_load_balancer`,
206
+
Description: `The monitored resource (https://cloud.google.com/monitoring/api/resources) associated with the configuration. The following monitored resource types are supported for uptime checks: uptime_url gce_instance gae_app aws_ec2_instance aws_elb_load_balancer k8s_service servicedirectory_service`,
185
207
MaxItems: 1,
186
208
Elem: &schema.Resource{
187
209
Schema: map[string]*schema.Schema{
@@ -693,8 +715,9 @@ func flattenMonitoringUptimeCheckConfigContentMatchers(v interface{}, d *schema.
@@ -174,7 +184,7 @@ The following arguments are supported:
174
184
175
185
*`monitored_resource` -
176
186
(Optional)
177
-
The monitored resource (https://cloud.google.com/monitoring/api/resources) associated with the configuration. The following monitored resource types are supported for uptime checks: uptime_url gce_instance gae_app aws_ec2_instance aws_elb_load_balancer
187
+
The monitored resource (https://cloud.google.com/monitoring/api/resources) associated with the configuration. The following monitored resource types are supported for uptime checks: uptime_url gce_instance gae_app aws_ec2_instance aws_elb_load_balancer k8s_service servicedirectory_service
178
188
Structure is [documented below](#nested_monitored_resource).
179
189
180
190
*`project` - (Optional) The ID of the project in which the resource belongs.
@@ -191,7 +201,25 @@ The following arguments are supported:
191
201
(Optional)
192
202
The type of content matcher that will be applied to the server output, compared to the content string when the check is run.
193
203
Default value is `CONTAINS_STRING`.
194
-
Possible values are `CONTAINS_STRING`, `NOT_CONTAINS_STRING`, `MATCHES_REGEX`, and `NOT_MATCHES_REGEX`.
204
+
Possible values are `CONTAINS_STRING`, `NOT_CONTAINS_STRING`, `MATCHES_REGEX`, `NOT_MATCHES_REGEX`, `MATCHES_JSON_PATH`, and `NOT_MATCHES_JSON_PATH`.
205
+
206
+
*`json_path_matcher` -
207
+
(Optional)
208
+
Information needed to perform a JSONPath content match. Used for `ContentMatcherOption::MATCHES_JSON_PATH` and `ContentMatcherOption::NOT_MATCHES_JSON_PATH`.
209
+
Structure is [documented below](#nested_json_path_matcher).
0 commit comments