1.8 KiB
1.8 KiB
title | description | menu | weight | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
pagerduty.endpoint() function | `pagerduty.endpoint()` returns a function that sends a message to PagerDuty that includes output data. |
|
101 |
pagerduty.endpoint()
returns a function that sends a message to PagerDuty that includes output data.
Function type signature
(
?url: string,
) => (
mapFn: (
r: {A with _pagerdutyDedupKey: string},
) => {
B with
timestamp: L,
summary: K,
source: J,
severity: I,
routingKey: H,
group: G,
eventAction: F,
clientURL: E,
client: D,
class: C,
},
) => (<-tables: stream[A]) => stream[{A with _status: string, _sent: string, _pagerdutyDedupKey: string}]
{{% caption %}}For more information, see Function type signatures.{{% /caption %}}
Parameters
url
PagerDuty v2 Events API URL.
Default is https://events.pagerduty.com/v2/enqueue
.