Skip to content

Commit

Permalink
Merge pull request #5 from nixwiz/replace_annotations
Browse files Browse the repository at this point in the history
Description field changes
  • Loading branch information
Todd Campbell authored May 11, 2020
2 parents 328bdac + 66a738f commit 64db299
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 328 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ Versioning](http://semver.org/spec/v2.0.0.html).

## Unreleased

## [0.4.0] - 2020-05-11

### Removed
- withAnnotations flags and its code to create description field

### Added
- descriptionTemplate and descriptionLimit flags to allow customizing the description field

## [0.3.2] - 2020-05-01

### Added
Expand Down
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,16 @@ Available Commands:
version Print the version number of this plugin
Flags:
-a, --auth string The OpsGenie V2 API authentication token, use default from OPSGENIE_AUTHTOKEN env var
-h, --help help for sensu-opsgenie-handler
-l, --messageLimit int The maximum length of the message field (default 100)
-i, --includeEventInNote Include the event JSON in the payload sent to OpsGenie
-m, --messageTemplate string The template for the message to be sent (default "{{.Entity.Name}}/{{.Check.Name}}")
-s, --sensuDashboard string The OpsGenie Handler will use it to create a source Sensu Dashboard URL. Use OPSGENIE_SENSU_DASHBOARD. Example: http://sensu-dashboard.example.local/c/~/n (default "disabled")
-t, --team string The OpsGenie V2 API Team, use default from OPSGENIE_TEAM env var
-u, --url string The OpsGenie V2 API URL, use default from OPSGENIE_APIURL env var (default "https://api.opsgenie.com")
-w, --withAnnotations string The OpsGenie Handler will parse check and entity annotations with these values. Use OPSGENIE_ANNOTATIONS env var with commas, like: documentation,playbook (default "documentation,playbook")
-a, --auth string The OpsGenie V2 API authentication token, use default from OPSGENIE_AUTHTOKEN env var
-h, --help help for sensu-opsgenie-handler
-i, --includeEventInNote Include the event JSON in the payload sent to OpsGenie
-m, --messageTemplate string The template for the message to be sent (default "{{.Entity.Name}}/{{.Check.Name}}")
-l, --messageLimit int The maximum length of the message field (default 100)
-d, --descriptionTemplate string The template for the description to be sent (default "{{.Check.Output}}")
-L, --descriptionLimit int The maximum length of the description field (default 100)
-s, --sensuDashboard string The OpsGenie Handler will use it to create a source Sensu Dashboard URL. Use OPSGENIE_SENSU_DASHBOARD. Example: http://sensu-dashboard.example.local/c/~/n (default "disabled")
-t, --team string The OpsGenie V2 API Team, use default from OPSGENIE_TEAM env var
-u, --url string The OpsGenie V2 API URL, use default from OPSGENIE_APIURL env var (default "https://api.opsgenie.com")
Use "sensu-opsgenie-handler [command] --help" for more information about a command.
Expand Down
128 changes: 0 additions & 128 deletions event.withAnnotations.json

This file was deleted.

128 changes: 0 additions & 128 deletions event.withAnnotations.resolved.json

This file was deleted.

Loading

0 comments on commit 64db299

Please sign in to comment.