feat(splunk-on-call-plugin): update style + fetch

Signed-off-by: Remi <remi.d45@gmail.com>
This commit is contained in:
Remi
2021-02-26 12:32:00 +01:00
parent 14af7ac400
commit 274b00ed52
7 changed files with 138 additions and 94 deletions
+2 -6
View File
@@ -48,22 +48,18 @@ import {
## Client configuration
In order to be able to perform certain action (create-acknowledge-resolve an action), you need to provide the username of the user making the action.
The user supplied must be a valid Splunk On-Call user and a member of your organization.
In order to be able to perform certain action (create-acknowledge-resolve an action), you need to provide a REST Endpoint.
In addition, you also need to enable the REST Endpoint integration on https://portal.victorops.com/ by going to Integrations > 3rd Party Integrations > REST Generic.
To enable the REST Endpoint integration you can go on https://portal.victorops.com/ inside Integrations > 3rd Party Integrations > REST Generic.
You can now copy the URL to notify: `<SPLUNK_ON_CALL_REST_ENDPOINT>/$routing_key`
In `app-config.yaml`:
```yaml
splunkOnCall:
username: <SPLUNK_ON_CALL_USERNAME>
eventsRestEndpoint: <SPLUNK_ON_CALL_REST_ENDPOINT>
```
The user supplied must be a valid Splunk On-Call user and a member of your organization.
In order to make the API calls, you need to provide a new proxy config which will redirect to the Splunk On-Call API endpoint and add authentication information in the headers:
```yaml