-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathvariables.tf
27 lines (23 loc) · 1.91 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
variable "name" {
description = "Name of the dashboard."
}
variable "widgets" {
description = "List of Widget object (obtained from modules/widget, terraform object) to attach to this dashboard."
type = any
default = null
}
variable "end" {
description = "The end of the time range to use for each widget on the dashboard when the dashboard loads. If you specify a value for `end`, you must also specify a value for `start`. For each of these values, specify an absolute time in the ISO 8601 format. For example, `2018-12-17T06:00:00.000Z`."
type = string
default = null
}
variable "start" {
description = "The start of the time range to use for each widget on the dashboard. You can specify `start` without specifying `end` to specify a relative time range that ends with the current time. In this case, the value of start must begin with `-PT` if you specify a time range in minutes or hours, and must begin with `-P` if you specify a time range in days, weeks, or months. You can then use M, H, D, W and M as abbreviations for minutes, hours, days, weeks and months. For example, `-PT5M` shows the last 5 minutes, `-PT8H` shows the last 8 hours, and `-P3M` shows the last three months. You can also use `start` along with an `end` field, to specify an absolute time range. When specifying an absolute time range, use the ISO 8601 format. For example, `2018-12-17T06:00:00.000Z`. If you omit `start`, the dashboard shows the default time range when it loads."
type = string
default = null
}
variable "periodOverride" {
description = "Use this field to specify the period for the graphs when the dashboard loads. Specifying auto causes the period of all graphs on the dashboard to automatically adapt to the time range of the dashboard. Specifying inherit ensures that the period set for each graph is always obeyed. Valid Values: auto | inherit."
type = string
default = null
}