-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add statusflare_status_page resource
- Loading branch information
Showing
13 changed files
with
539 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "statusflare_status_page Resource - terraform-provider-statusflare" | ||
subcategory: "" | ||
description: |- | ||
--- | ||
|
||
# statusflare_status_page (Resource) | ||
|
||
|
||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "statusflare_monitor" "example" { | ||
name = "Example monitor" | ||
url = "www.example.com" | ||
} | ||
resource "statusflare_status_page" "example" { | ||
name = "My example status page" | ||
monitors = [statusflare_monitor.example.id] | ||
// following config options are defaults you can override | ||
config = { | ||
title = "Status Page", | ||
logo_url = "statusflare.png", | ||
favicon_url = "favicon.ico", | ||
all_monitors_operational = "All Monitors Operational", | ||
not_all_monitors_operational = "Not All Monitors Operational", | ||
monitor_operational_label = "Operational", | ||
monitor_not_operational_label = "Not Operational", | ||
monitor_no_data_label = "No data", | ||
histogram_no_data = "No data", | ||
histogram_no_incidents = "All good", | ||
histogram_some_incidents = "incident(s)", | ||
} | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- **name** (String) The name of the status page. | ||
|
||
### Optional | ||
|
||
- **config** (Map of String) Additional configuration of the status page. See example for list of options. | ||
- **custom_domain** (String) The custom domain attached to your status page. | ||
- **custom_domain_path** (String) The path for your custom domain. The default is '/'. | ||
- **hide_monitor_details** (Boolean) Hide monitor details (URL, scheme, ..) on the status page. The default is false. | ||
- **hide_statusflare** (Boolean) Hide statusflare branding/links on the status page. The default is false. | ||
- **histogram_days** (Number) Number of days to render on status page for each monitor. The default is 90. | ||
- **id** (String) The ID of this resource. | ||
- **monitors** (List of String) IDs of monitors attached to this status page. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
resource "statusflare_monitor" "example" { | ||
name = "Example monitor" | ||
url = "www.example.com" | ||
} | ||
|
||
resource "statusflare_status_page" "example" { | ||
name = "My example status page" | ||
monitors = [statusflare_monitor.example.id] | ||
|
||
// following config options are defaults you can override | ||
config = { | ||
title = "Status Page", | ||
logo_url = "statusflare.png", | ||
favicon_url = "favicon.ico", | ||
all_monitors_operational = "All Monitors Operational", | ||
not_all_monitors_operational = "Not All Monitors Operational", | ||
monitor_operational_label = "Operational", | ||
monitor_not_operational_label = "Not Operational", | ||
monitor_no_data_label = "No data", | ||
histogram_no_data = "No data", | ||
histogram_no_incidents = "All good", | ||
histogram_some_incidents = "incident(s)", | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.