Skip to content
This repository was archived by the owner on Dec 9, 2020. It is now read-only.

Files

Latest commit

 

History

History
45 lines (34 loc) · 1.14 KB

service.html.markdown

File metadata and controls

45 lines (34 loc) · 1.14 KB
layout page_title sidebar_current description
librato
Librato: librato_service
docs-librato-resource-service
Provides a Librato service resource. This can be used to create and manage notification services on Librato.

librato_service

Provides a Librato Service resource. This can be used to create and manage notification services on Librato.

Example Usage

# Create a new Librato service
resource "librato_service" "email" {
  title = "Email the admins"
  type  = "mail"

  settings = <<EOF
{
  "addresses": "admin@example.com"
}
EOF
}

Argument Reference

The following arguments are supported. Please check the relevant documentation for each type of alert.

  • type - (Required) The type of notificaion.
  • title - (Required) The alert title.
  • settings - (Required) a JSON hash of settings specific to the alert type.

Attributes Reference

The following attributes are exported:

  • id - The ID of the alert.
  • type - The type of notificaion.
  • title - The alert title.
  • settings - a JSON hash of settings specific to the alert type.