Files
python_example/actions/read_counter.yaml
2026-02-27 12:18:26 -06:00

55 lines
1.3 KiB
YAML

# Read Counter Action
# Consumes a counter value and returns a formatted message
ref: python_example.read_counter
label: "Read Counter"
description: "Receives a counter value (typically from the counter trigger) and returns a formatted message containing it"
enabled: true
# Runner type
runner_type: python
# Minimum Python version required (semver constraint)
runtime_version: ">=3.9"
# Entry point
entry_point: read_counter.py
# Parameter delivery: stdin for secure parameter passing
parameter_delivery: stdin
parameter_format: json
# Output format: json (structured data)
output_format: json
# Action parameters schema (StackStorm-style: inline required per parameter)
parameters:
counter:
type: integer
description: "The counter value to consume"
required: true
rule_ref:
type: string
description: "The rule reference the counter is scoped to"
default: ""
# Output schema (StackStorm-style: inline required per parameter)
output_schema:
message:
type: string
description: "Formatted message containing the counter value"
required: true
counter:
type: integer
description: "The counter value that was consumed"
required: true
rule_ref:
type: string
description: "The rule reference the counter is scoped to"
# Tags for categorization
tags:
- counter
- example
- python
- consumer