From 29f8b0ef64973b6a58d200f79def6c854d0ef23d Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Mon, 9 Sep 2019 16:26:53 -0600 Subject: [PATCH] removed token from pagerduty functions --- .../flux/functions/pagerduty/endpoint.md | 10 +--------- .../flux/functions/pagerduty/sendevent.md | 19 +++++++++++-------- 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/content/v2.0/reference/flux/functions/pagerduty/endpoint.md b/content/v2.0/reference/flux/functions/pagerduty/endpoint.md index cd3a63ffc..70fb7cf83 100644 --- a/content/v2.0/reference/flux/functions/pagerduty/endpoint.md +++ b/content/v2.0/reference/flux/functions/pagerduty/endpoint.md @@ -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. diff --git a/content/v2.0/reference/flux/functions/pagerduty/sendevent.md b/content/v2.0/reference/flux/functions/pagerduty/sendevent.md index 562abf3e3..a3fb2b7d0 100644 --- a/content/v2.0/reference/flux/functions/pagerduty/sendevent.md +++ b/content/v2.0/reference/flux/functions/pagerduty/sendevent.md @@ -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.