Creates a derived column. For more information about derived columns, check out Calculate with derived columns.
variable "dataset" {
type = string
}
resource "honeycombio_derived_column" "duration_ms_log" {
alias = "duration_ms_log10"
expression = "LOG10($duration_ms)"
description = "LOG10 of duration_ms"
dataset = var.dataset
}
The following arguments are supported:
dataset
- (Required) The dataset this derived column is added to. Use __all__
for Environment-wide derived columns.alias
- (Required) The name of the derived column. Must be unique per dataset.expression
- (Required) The function of the derived column. See Derived Column Syntax.description
- (Optional) A description that is shown in the UI.In addition to all arguments above, the following attributes are exported:
id
- ID of the derived column.Derived columns can be imported using a combination of the dataset name and their alias, e.g.
$ terraform import honeycombio_derived_column.my_column my-dataset/duration_ms_log10