Skip to content

Latest commit

 

History

History
112 lines (87 loc) · 2.27 KB

oci_monitoring_alarm_history_collection.md

File metadata and controls

112 lines (87 loc) · 2.27 KB

oci_monitoring_alarm_history_collection

back

Index

Terraform

terraform {
  required_providers {
    oci = ">= 4.21.0"
  }
}

top

Example Usage

module "oci_monitoring_alarm_history_collection" {
  source = "./modules/oci/d/oci_monitoring_alarm_history_collection"

  # alarm_historytype - (optional) is a type of string
  alarm_historytype = null
  # alarm_id - (required) is a type of string
  alarm_id = null
  # timestamp_greater_than_or_equal_to - (optional) is a type of string
  timestamp_greater_than_or_equal_to = null
  # timestamp_less_than - (optional) is a type of string
  timestamp_less_than = null
}

top

Variables

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

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

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

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

top

Datasource

data "oci_monitoring_alarm_history_collection" "this" {
  # alarm_historytype - (optional) is a type of string
  alarm_historytype = var.alarm_historytype
  # alarm_id - (required) is a type of string
  alarm_id = var.alarm_id
  # timestamp_greater_than_or_equal_to - (optional) is a type of string
  timestamp_greater_than_or_equal_to = var.timestamp_greater_than_or_equal_to
  # timestamp_less_than - (optional) is a type of string
  timestamp_less_than = var.timestamp_less_than
}

top

Outputs

output "entries" {
  description = "returns a list of object"
  value       = data.oci_monitoring_alarm_history_collection.this.entries
}

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

output "is_enabled" {
  description = "returns a bool"
  value       = data.oci_monitoring_alarm_history_collection.this.is_enabled
}

output "this" {
  value = oci_monitoring_alarm_history_collection.this
}

top