uptimeify_report
A scheduled fleet report of the organization (mail, optionally with PDF). Unset optional attributes take the server default on create and keep their value afterwards. Import with the report id (UUID).
A scheduled fleet report of the organization (mail, optionally with PDF). Unset optional attributes take the server default on create and keep their value afterwards. Import with the report id (UUID).
Example Usage
resource "uptimeify_report" "weekly" {
name = "Weekly fleet report"
frequency = "weekly"
weekday = 1
send_hour = 7
format = "email_pdf"
recipient_emails = ["ops@example.com"]
# The status pages section is on by default; leave it out of this report.
include_status_pages = false
}Schema
Required
name(String)
Optional
day_of_month(Number) 1-28. Required for monthly reports.enabled(Boolean) Defaulttrue.format(String)emailoremail_pdf(default).frequency(String)daily,weeklyormonthly(default). Weekly needsweekday, monthly needsday_of_month.group_by_customer(Boolean) Group by customer. Defaultfalse.include_status_pages(Boolean) Append the status pages section (published state, customer, components, incidents, maintenance, subscribers). Scopecustomerslists those customers' pages, scopetagsthe pages showing a monitor with one of the tags. Defaulttrue.inclusion_mode(String)all(default),problemsorthreshold.monitor_types(List of String) Monitor types in the report (default: all ten).problem_signals(Attributes) What counts as a problem forinclusion_mode = "problems". (see below for nested schema)recipient_emails(List of String)recipient_user_ids(List of String) Logins of the organization (uptimeify_user.id).scope_customer_ids(List of Number) Customers forscope_mode = "customers".scope_mode(String)all(default),customersortags.scope_tag_ids(List of Number) Tags forscope_mode = "tags".sections(Attributes) Report sections (default: all on exceptgroup_by_customer). (see below for nested schema)sections_by_type(Map of Map of Boolean) Per monitor type section switches, e.g.{ website = { sslExpiry = false } }(server-side key names).send_hour(Number) Hour of day 0-23 intimezone. Default 2.send_when_empty(Boolean) Send even when nothing qualifies. Defaultfalse.threshold_response_gt(Number) Response time in ms forinclusion_mode = "threshold".threshold_uptime_lt(Number) Uptime percentage forinclusion_mode = "threshold".timezone(String) IANA time zone. DefaultEurope/Berlin.weekday(Number) 0-6, 0 = Sunday. Required for weekly reports.
Read-Only
created_at(String)id(String) Report id (UUID).
Nested Schema for problem_signals
Required:
incident(Boolean)response_breach(Boolean)
Optional:
downtime_minutes(Number)ssl_days_lt(Number)
Nested Schema for sections
Required:
fleet_summary(Boolean)group_by_customer(Boolean)incident_log(Boolean)per_site_table(Boolean)ssl_expiry(Boolean)worst_performers(Boolean)
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
# Report id (UUID)
terraform import uptimeify_report.weekly 0b5f7a3e-1c2d-4e5f-8a9b-0c1d2e3f4a5buptimeify_package_config
One package of the organization, addressed by its package_type (PATCH /api/package-configs/{packageType}). Manages the limits only: monitors, status pages and self-service per customer of the package. The check and alert defaults of the package stay as they are (the server's defaults for a new package); read them with data.uptimeify_package_configs. Its enable_*_alerts switches govern only the organization's notifications about the package's customers (organization channels and the organization recipient of the email/SMS fallback), never channels a customer created in their own account; a customer's own enable_*_alerts value replaces them for that customer. SMS through a customer's own channels still counts against the package's monthly SMS limit per customer and the organization's overage limit (0 while the package SMS switch is off and no limit is set). If the package already exists, creating the resource adopts it. Destroy deletes the package and fails (packageInUse) while customers use it. Import with the package type.
uptimeify_smtp_monitor
An SMTP monitor: connects and authenticates (check_mode protocol) or only checks the port (tcp). The hostname must resolve to a public address. Import with the numeric id or the public id.