sentry-cli icon indicating copy to clipboard operation
sentry-cli copied to clipboard

Retrieve the events list for a project for v2

Open boozec opened this issue 2 years ago • 0 comments

Sorry to re-open a PR for the same feat, but I can't re-open #1047. This PR adds

Manage events on Sentry.

USAGE:
    sentry-cli events [OPTIONS] <SUBCOMMAND>

OPTIONS:
        --auth-token <AUTH_TOKEN>    Use the given Sentry auth token.
    -h, --help                       Print help information
        --header <KEY:VALUE>         Custom headers that should be attached to all requests
                                     in key:value format.
        --limit <LIMIT>              Limit of requests [default: 10]
        --log-level <LOG_LEVEL>      Set the log output verbosity. [possible values: trace, debug,
                                     info, warn, error]
        --max-rows <MAX-ROWS>        Max of rows for a table.
    -o, --org <ORG>                  The organization slug
    -p, --project <PROJECT>          The project slug.
        --quiet                      Do not print any output while preserving correct exit code.
                                     This flag is currently implemented only for selected
                                     subcommands. [aliases: silent]
    -t, --tags                       Include tags into the list.
    -u, --user                       Include user's info into the list.

SUBCOMMANDS:
    help    Print this message or the help of the given subcommand(s)
    list    List all events in your organization.

As requested on this comment I added two flags:

  • limit is the limit of API requests
  • max_rows is the limit of events the table will print (default is all)

I'm not really sure about the last flag but I think it is the closets thing to "per-page" as cursor moves 100 items at a time.


@kamilogorek sorry if I could only work on it now but I was a bit busy :sweat_smile:

boozec avatar Aug 05 '22 14:08 boozec