StackStorm / StackStorm/st2

CLI Should have Create and Delete for sensors.

Open
#2,877 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
Python
Stars
6.5k
Forks
787
PR merge metrics
No merged PRs in 30d

Description

Currently, there is no way via the CLI to delete a sensor...or create one for that matter.

vagrant@st2vagrant:~/st2docs$ st2 sensor --help
usage: st2 sensor [-h] {list,get,enable,disable} ...

An adapter which allows you to integrate StackStorm with external system

positional arguments:
  {list,get,enable,disable}
                        List of commands for managing sensortypes.
    list                Get the list of sensortypes.
    get                 Get individual sensor.
    enable              Enable an existing sensor.
    disable             Disable an existing sensor.

optional arguments:
  -h, --help            show this help message and exit```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the existing st2 sensor CLI entry point and its list, get, enable, and disable subcommands shown in the issue. Determine how sensor management is currently wired before adding create and delete commands, and verify that st2 sensor --help documents both new operations and that they perform the requested actions.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.