tctl version-next search-attribute command reference
The What is a Search Attribute? A Search Attribute is an indexed name used in List Filters to filter a list of Workflow Executions that have the Search Attribute in their metadata.tctl search-attribute
command enables Search Attribute
create
The tctl search-attribute create
command adds one or more custom Search Attributes.
tctl search-attribute create \
--yes \
--name CustomKeywordField --type Keyword \
--name CustomStringField --type Text \
--name CustomTextField --type Text \
--name CustomIntField --type Int \
--name CustomDatetimeField --type Datetime \
--name CustomDoubleField --type Double \
--name CustomBoolField --type Bool \
--name SimulatedFailure --type Bool
list
The What is a Search Attribute? A Search Attribute is an indexed name used in List Filters to filter a list of Workflow Executions that have the Search Attribute in their metadata.tctl search-attribute list
command lists all Search Attributes--query
modifier of the tctl workflow list
command.
Example:
tctl search-attribute list
The command has no modifiers.
Example output:
Name Type
BatcherNamespace Keyword
BatcherUser Keyword
BinaryChecksums Keyword
CloseTime Datetime
CustomBoolField Bool
CustomDatetimeField Datetime
CustomDoubleField Double
CustomIntField Int
CustomKeywordField Keyword
CustomStringField Text
CustomTextField Text
ExecutionDuration Int
ExecutionStatus Keyword
ExecutionTime Datetime
HistoryLength Int
RunId Keyword
StartTime Datetime
StateTransitionCount Int
TaskQueue Keyword
TemporalChangeVersion Keyword
TemporalNamespaceDivision Keyword
TemporalSchedulePaused Bool
TemporalScheduledById Keyword
TemporalScheduledStartTime Datetime
WorkflowId Keyword
WorkflowType Keyword
remove
The tctl search-attribute remove
command removes a Search Attribute.
The following modifiers control the behavior of the command. Always include required modifiers when executing this command.