|
| 1 | +--- |
| 2 | +# generated by https://github.com/hashicorp/terraform-plugin-docs |
| 3 | +page_title: "statuspal_metrics Data Source - statuspal" |
| 4 | +subcategory: "" |
| 5 | +description: |- |
| 6 | + |
| 7 | +--- |
| 8 | + |
| 9 | +# statuspal_metrics (Data Source) |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | +## Example Usage |
| 14 | + |
| 15 | +```terraform |
| 16 | +# List all metrics of the status page with subdomain "example-com". |
| 17 | +data "statuspal_metrics" "example" { |
| 18 | + status_page_subdomain = "example-com" |
| 19 | +} |
| 20 | +``` |
| 21 | + |
| 22 | +<!-- schema generated by tfplugindocs --> |
| 23 | +## Schema |
| 24 | + |
| 25 | +### Required |
| 26 | + |
| 27 | +- `status_page_subdomain` (String) The status page subdomain of the services. |
| 28 | + |
| 29 | +### Optional |
| 30 | + |
| 31 | +- `query` (Block, Optional) (see [below for nested schema](#nestedblock--query)) |
| 32 | + |
| 33 | +### Read-Only |
| 34 | + |
| 35 | +- `id` (String) Placeholder identifier attribute. Ignore it, only used in testing. |
| 36 | +- `metrics` (Attributes List) The metrics (see [below for nested schema](#nestedatt--metrics)) |
| 37 | + |
| 38 | +<a id="nestedblock--query"></a> |
| 39 | +### Nested Schema for `query` |
| 40 | + |
| 41 | +Optional: |
| 42 | + |
| 43 | +- `after` (String) Used as a cursor for pagination |
| 44 | +- `before` (String) Used as a cursor for pagination |
| 45 | +- `limit` (Number) Set the number of metrics to return in the response. This defaults to 20 items |
| 46 | + |
| 47 | + |
| 48 | +<a id="nestedatt--metrics"></a> |
| 49 | +### Nested Schema for `metrics` |
| 50 | + |
| 51 | +Required: |
| 52 | + |
| 53 | +- `id` (String) The unique identifier for the metric. |
| 54 | + |
| 55 | +Read-Only: |
| 56 | + |
| 57 | +- `enabled` (Boolean) A flag indicating if the metric is enabled. |
| 58 | +- `featured_number` (String) A featured number for the metric. |
| 59 | +- `integration_id` (Number) The integration ID related to the metric. |
| 60 | +- `latest_entry_time` (Number) The timestamp for the latest entry of the metric. |
| 61 | +- `order` (Number) The order of the metric in the system. |
| 62 | +- `remote_id` (String) The remote ID for the metric. |
| 63 | +- `remote_name` (String) The remote name for the metric. |
| 64 | +- `status` (String) The status of the metric. |
| 65 | +- `threshold` (Number) The threshold value for the metric. |
| 66 | +- `title` (String) The title of the metric. |
| 67 | +- `type` (String) The type of the metric. |
| 68 | +- `unit` (String) The unit of measurement for the metric. |
| 69 | +- `visible` (Boolean) A flag indicating if the metric is visible. |
0 commit comments