Skip to content

Conversation

satterly
Copy link
Member

@satterly satterly commented Aug 17, 2019

can you add an delimiter like in the compact version? or remove the CR (0A) in the middle of the string in the compact version
/cc @mala57

$ alerta query --help
Usage: alerta query [OPTIONS]

  Query for alerts based on search filter criteria.

Options:
  -i, --ids UUID       List of alert IDs (can use short 8-char id)
  -q, --query QUERY    severity:"warning" AND resource:web
  -f, --filter FILTER  KEY=VALUE eg. serverity=warning resource=web
  --oneline            Show alerts using table format
  --medium             Show important alert attributes
  --full               Show full alert details
  -h, --help           Show this message and exit.

Example

$ alerta query --oneline
ID        LAST RECEIVED        SEVERITY       STATUS      DUPL  CUSTOMER    ENVIRONMENT    SERVICE          RESOURCE        GROUP    EVENT                       VALUE             DESCRIPTION
--------  -------------------  -------------  --------  ------  ----------  -------------  ---------------  --------------  -------  --------------------------  ----------------  -------------------------------------------------------------------------------------------------------------
61419b0b  2019/08/14 08:09:40  normal         closed         1              Staging        alert_tester     logdna          Misc     appliance.download_failure                    matching at least 1 lines in a 30 second period, we'll send an alert to this email with all the matched lines
4dc66d9c  2019/08/14 07:59:28  normal         closed         1              Development    service 10       web01           Misc     DownloadFailure
480aa052  2019/08/13 14:09:55  normal         closed        12              Staging        alert_tester     logdna          Misc     DownloadFailure                               matching at least 1 lines in a 30 second period, we'll send an alert to this email with all the matched lines
3c009474  2019/08/13 11:02:41  indeterminate  ack            1              Development    alert_tester     logdna          Misc     DownloadFailure test event                    matching at least 1 lines in a 30 second period, we'll send an alert to this email with all the matched lines
f4fb8049  2019/08/13 10:33:10  normal         closed         3              Development    peer             web02           Misc     UploadFailure                                 Upload of file 1 failed

@satterly satterly merged commit eaeb467 into master Aug 18, 2019
@mala57
Copy link

mala57 commented Aug 18, 2019

Thx! :)

@satterly
Copy link
Member Author

This is available immediately as version 7.4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants