Difference between revisions of "Opsgenie-lamp createAlert"
Jump to navigation
Jump to search
↑ https://docs.opsgenie.com/docs/lamp-command-line-interface-for-opsgenie
(16 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
+ | * https://docs.opsgenie.com/docs/lamp-command-line-interface-for-opsgenie | ||
+ | |||
+ | [[opsgenie-lamp createAlert --help]] | ||
[[opsgenie-lamp createAlert --message]] "host down" | [[opsgenie-lamp createAlert --message]] "host down" | ||
+ | |||
+ | [[opsgenie-lamp createAlert --message]] "test.ignoreme" [[--tags]] testtag [[--priority]] [[P5]] | ||
+ | |||
+ | |||
+ | [[opsgenie-lamp createAlert --message "host down" --config "/opt/conf/myConfigurationFile.conf"]] | ||
+ | |||
+ | |||
+ | [[opsgenie-lamp createAlert --message "host down" --config /opt/conf/myConfigurationFile.conf]] <ref>https://docs.opsgenie.com/docs/lamp-command-line-interface-for-opsgenie</ref> | ||
+ | |||
+ | [[opsgenie-lamp createAlert --teams]] | ||
Line 7: | Line 20: | ||
+ | opsgenie-lamp createAlert \ | ||
+ | --apiKey [[YOUR_API_KEY]] \ | ||
+ | --message "Your Alert message here" \ | ||
+ | --priority P5 \ | ||
+ | --source "your source" \ | ||
+ | --user "your user" \ | ||
+ | --alias "your alias" \ | ||
+ | --tags "you tags" \ | ||
+ | --teams your_teams | ||
+ | == Errors == | ||
+ | ERRO[2024-10-21T11:26:10.313826+02:00] [[Error occurred with Status code: 403]], Message: [[To perform this action, use an API key from an API integration]]., Took: 0.001000, RequestId: 6932fc25-30e9-4cd4-87be-12345678 | ||
+ | Error occurred with Status code: 403, Message: To perform this action, use an API key from an API integration., Took: 0.001000, RequestId: 6932fc25-30e9-4cd4-87be-a6e15452c01a | ||
== Activities == | == Activities == | ||
Line 17: | Line 42: | ||
== See also == | == See also == | ||
+ | * {{opsgenie-lamp createAlert}} | ||
+ | * {{lamp.conf}} | ||
* {{opsgenie-lamp}} | * {{opsgenie-lamp}} | ||
[[Category:Opsgenie]] | [[Category:Opsgenie]] |
Latest revision as of 09:09, 24 October 2024
opsgenie-lamp createAlert --help
opsgenie-lamp createAlert --message "host down"
opsgenie-lamp createAlert --message "test.ignoreme" --tags testtag --priority P5
opsgenie-lamp createAlert --message "host down" --config "/opt/conf/myConfigurationFile.conf"
opsgenie-lamp createAlert --message "host down" --config /opt/conf/myConfigurationFile.conf [1]
opsgenie-lamp createAlert --teams
opsgenie-lamp createAlert \ --apiKey YOUR_API_KEY \ --message "Your Alert message here" \ --priority P5 \ --source "your source" \ --user "your user" \ --alias "your alias" \ --tags "you tags" \ --teams your_teams
Contents
Errors[edit]
ERRO[2024-10-21T11:26:10.313826+02:00] Error occurred with Status code: 403, Message: To perform this action, use an API key from an API integration., Took: 0.001000, RequestId: 6932fc25-30e9-4cd4-87be-12345678 Error occurred with Status code: 403, Message: To perform this action, use an API key from an API integration., Took: 0.001000, RequestId: 6932fc25-30e9-4cd4-87be-a6e15452c01a
Activities[edit]
Related[edit]
See also[edit]
opsgenie-lamp createAlert [ --help ]
lamp.conf, apiKey=, apiUrl
, https://app.opsgenie.com/auth/login?targetUri=/settings/integration/add/API- OpsGenie:
opsgenie-lamp [ listAlerts | createAlert | closeAlert | getAlert, --help ], ~/.config/lamp.conf, apiKey, --help
Advertising: