You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example:
---
class_name: "FileWatchSensor"enabled: trueentry_point: "file_watch_sensor.py"description: "Sensor which monitors files for new lines"trigger_types:
-
name: "file_watch.line"pack: "linux"description: "Trigger which indicates a new line has been detected"# This sensor can be supplied a path to a file to tail via a rule.parameters_schema:
type: "object"properties:
file_path: # User ``st2`` should have permissions to be able to read this file.description: "Path to the file to monitor"type: "string"required: trueadditionalProperties: false# This is the schema of the trigger payload the sensor generatespayload_schema:
type: "object"properties:
file_path:
type: "string"file_name:
type: "string"line:
type: "string"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
what's the different ?
Beta Was this translation helpful? Give feedback.
All reactions