removed token from pagerduty functions

pull/438/head
Scott Anderson 2019-09-09 16:26:53 -06:00
parent 7f1f2eb540
commit 29f8b0ef64
2 changed files with 12 additions and 17 deletions

View File

@ -18,8 +18,7 @@ _**Function type:** Output_
import "pagerduty"
pagerduty.endpoint(
url: "https://events.pagerduty.com/v2/enqueue",
token: "mySuPerSecRetTokEn"
url: "https://events.pagerduty.com/v2/enqueue"
)
```
@ -31,13 +30,6 @@ Defaults to `https://events.pagerduty.com/v2/enqueue`.
_**Data type:** String_
### token
The [PagerDuty API token](https://support.pagerduty.com/docs/generating-api-keys#section-generating-a-general-access-rest-api-key)
used to interact with PagerDuty.
Defaults to `""`.
_**Data type:** String_
### mapFn
A function that builds the object used to generate the POST request.

View File

@ -18,7 +18,6 @@ import "pagerduty"
pagerduty.sendEvent(
pagerdutyURL: "https://events.pagerduty.com/v2/enqueue",
token: "mySuPerSecRetTokEn",
routingKey: "ExampleRoutingKey",
client: "ExampleClient",
clientURL: "http://examplepagerdutyclient.com",
@ -41,13 +40,6 @@ Defaults to `https://events.pagerduty.com/v2/enqueue`.
_**Data type:** String_
### token
The [PagerDuty API token](https://support.pagerduty.com/docs/generating-api-keys#section-generating-a-general-access-rest-api-key)
used to interact with PagerDuty.
Defaults to `""`.
_**Data type:** String_
### routingKey
The routing key generated from your PagerDuty integration.
@ -101,6 +93,17 @@ The severity of the event.
_**Data type:** String_
### eventAction
The type of event to send to PagerDuty.
**Valid values include:**
- `trigger`
- `resolve`
- `acknowledge`
_**Data type:** String_
### component
The component of the source machine responsible for the event.
Components are user-defined.