Skip to content

Commit

Permalink
Upgrade documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
gigovich committed Aug 9, 2024
1 parent bb149fc commit 3c17f36
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/resources/check_http.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Monitor a URL for specific status code(s)
- `contact_groups` (Set of String)
- `encryption` (String) Whether to verify SSL/TLS certificates
- `expect_string` (String)
- `expect_string_type` (String)
- `expect_string_type` (String) Valid values for this property are: "STRING" - exact match, "REGEX" - match by regular expression, "INVERSE_REGEX" - fail if the regular expression matches
- `headers` (Map of List of String)
- `include_in_global_metrics` (Boolean) Include this check in uptime/response time calculations for the dashboard and status pages
- `interval` (Number) The interval between checks in minutes
Expand Down
3 changes: 3 additions & 0 deletions internal/provider/resource_check_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ func NewCheckHTTPResource(_ context.Context, p *providerImpl) resource.Resource
Optional: true,
Computed: true,
Default: stringdefault.StaticString("STRING"),
Description: (`Valid values for this property are: "STRING" - exact match, ` +
`"REGEX" - match by regular expression, ` +
`"INVERSE_REGEX" - fail if the regular expression matches`),
Validators: []validator.String{
OneOfStringValidator([]string{"STRING", "REGEX", "INVERSE_REGEX"}),
},
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/resource_check_http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func TestAccCheckHTTPResource_PortValidation(t *testing.T) {
),
},
{
// basic manifest doesn't contain posrt definition, so it must fail
// basic manifest doesn't contain port definition, so it must fail
ConfigDirectory: config.StaticDirectory("testdata/resource_check_http/_basic"),
ConfigVariables: config.Variables{
"name": config.StringVariable(names[1]),
Expand Down

0 comments on commit 3c17f36

Please sign in to comment.