Files
python_example/actions/read_counter.yaml
David Culbreth 57532efabd Convert all schemas to flat format with inline required/secret
All schemas (parameters, output, output_schema, conf_schema) now use the
StackStorm-style flat format expected by Attune:
  { param_name: { type, description, required, secret, ... } }

Instead of the standard JSON Schema format:
  { type: object, properties: { ... }, required: [...] }

Also fix rule template syntax: trigger.payload.* -> event.payload.*
2026-02-23 08:46:05 -06:00

53 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
# 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