Derived columns allow you to run queries based on the value of an expression that is derived from the columns in an event.
This API allows you to list, create, update, and delete derived columns in a dataset or across a whole environment, paralleling the behavior of the Schema tab within a Dataset's or Environment's Settings UI.
The API key must have the Manage Queries and Columns permission. Learn more about API keys here.
Create a derived column. Derived columns allow you to run queries based on the value of an expression that is derived from the columns in an event.
alias required | string [ 1 .. 255 ] characters The human-readable name of the derived column, as it will be referenced when building queries. |
expression required | string [ 1 .. 4095 ] characters The expression to evaluate to construct this derived column's value. Refer to the Derived Column Reference. |
description | string <= 255 characters Default: "" A human-readable description for the derived column that displays in the UI. |
Success
The provided request body was invalid. Most APIs will return a DetailedError for this condition, explaining what went wrong, but some older APIs only return a GenericError.
Unauthorized
Forbidden
Not Found
Conflict
{- "alias": "string",
- "expression": "string",
- "description": ""
}
{- "id": "yUheCUmgZ8p",
- "alias": "one",
- "description": "just one",
- "expression": "INT(1)",
- "created_at": "2022-07-26T22:38:04Z",
- "updated_at": "2022-11-16T17:34:01Z"
}
Get all the Derived Columns in a dataset or environment. With the ?alias=X
query parameter, can return a single derived column by its alias
.
When listing all columns, an array of DerivedColumn objects will be returned. When using key_name
, will return a single DerivedColumn object if found.
The provided request body was invalid. Most APIs will return a DetailedError for this condition, explaining what went wrong, but some older APIs only return a GenericError.
Unauthorized
Not Found
[ ]
Success
The provided request body was invalid. Most APIs will return a DetailedError for this condition, explaining what went wrong, but some older APIs only return a GenericError.
Unauthorized
Not Found
{- "id": "yUheCUmgZ8p",
- "alias": "one",
- "description": "just one",
- "expression": "INT(1)",
- "created_at": "2022-07-26T22:38:04Z",
- "updated_at": "2022-11-16T17:34:01Z"
}
Update a derived column.
alias required | string [ 1 .. 255 ] characters The human-readable name of the derived column, as it will be referenced when building queries. |
expression required | string [ 1 .. 4095 ] characters The expression to evaluate to construct this derived column's value. Refer to the Derived Column Reference. |
description | string <= 255 characters Default: "" A human-readable description for the derived column that displays in the UI. |
Success
The provided request body was invalid. Most APIs will return a DetailedError for this condition, explaining what went wrong, but some older APIs only return a GenericError.
Unauthorized
Not Found
Conflict
{- "alias": "string",
- "expression": "string",
- "description": ""
}
{- "id": "string",
- "alias": "string",
- "expression": "string",
- "description": "",
- "created_at": "string",
- "updated_at": "string"
}
Delete a derived column. Note: A Derived Column used by a SLO, Trigger, or Board cannot be deleted without removing or modifying the SLO, Trigger, or Board first.
Success - no content
The provided request body was invalid. Most APIs will return a DetailedError for this condition, explaining what went wrong, but some older APIs only return a GenericError.
Unauthorized
Not Found
Conflict
{- "status": 400,
- "title": "The request body could not be parsed.",
- "error": "invalid gzip data"
}