Skip to content

Latest commit

 

History

History
146 lines (118 loc) · 2.72 KB

grafana_alert_notification.md

File metadata and controls

146 lines (118 loc) · 2.72 KB

grafana_alert_notification

back

Index

Terraform

terraform {
  required_providers {
    grafana = ">= 1.9.0"
  }
}

top

Example Usage

module "grafana_alert_notification" {
  source = "./modules/grafana/r/grafana_alert_notification"

  # disable_resolve_message - (optional) is a type of bool
  disable_resolve_message = null
  # frequency - (optional) is a type of string
  frequency = null
  # is_default - (optional) is a type of bool
  is_default = null
  # name - (required) is a type of string
  name = null
  # send_reminder - (optional) is a type of bool
  send_reminder = null
  # settings - (optional) is a type of map of string
  settings = {}
  # type - (required) is a type of string
  type = null
  # uid - (optional) is a type of string
  uid = null
}

top

Variables

variable "disable_resolve_message" {
  description = "(optional)"
  type        = bool
  default     = null
}

variable "frequency" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "is_default" {
  description = "(optional)"
  type        = bool
  default     = null
}

variable "name" {
  description = "(required)"
  type        = string
}

variable "send_reminder" {
  description = "(optional)"
  type        = bool
  default     = null
}

variable "settings" {
  description = "(optional)"
  type        = map(string)
  default     = null
}

variable "type" {
  description = "(required)"
  type        = string
}

variable "uid" {
  description = "(optional)"
  type        = string
  default     = null
}

top

Resource

resource "grafana_alert_notification" "this" {
  # disable_resolve_message - (optional) is a type of bool
  disable_resolve_message = var.disable_resolve_message
  # frequency - (optional) is a type of string
  frequency = var.frequency
  # is_default - (optional) is a type of bool
  is_default = var.is_default
  # name - (required) is a type of string
  name = var.name
  # send_reminder - (optional) is a type of bool
  send_reminder = var.send_reminder
  # settings - (optional) is a type of map of string
  settings = var.settings
  # type - (required) is a type of string
  type = var.type
  # uid - (optional) is a type of string
  uid = var.uid
}

top

Outputs

output "id" {
  description = "returns a string"
  value       = grafana_alert_notification.this.id
}

output "uid" {
  description = "returns a string"
  value       = grafana_alert_notification.this.uid
}

output "this" {
  value = grafana_alert_notification.this
}

top