---
title: pagerduty package
description: The pagerduty package provides functions for sending data to PagerDuty.
url: https://docs.influxdata.com/flux/v0/stdlib/pagerduty/
estimated_tokens: 439
product: Flux
version: v0
---

# pagerduty package

-   Flux 0.43.0+
-   View InfluxDB support

The `pagerduty` package provides functions for sending data to PagerDuty. Import the `pagerduty` package:

```js
import "pagerduty"
```

## Options

```js
option pagerduty.defaultURL = "https://events.pagerduty.com/v2/enqueue"
```

### defaultURL

`defaultURL` is the default PagerDuty URL used by functions in the `pagerduty` package.

## Functions

-   [pagerduty.actionFromLevel()](/flux/v0/stdlib/pagerduty/actionfromlevel/)
-   [pagerduty.actionFromSeverity()](/flux/v0/stdlib/pagerduty/actionfromseverity/)
-   [pagerduty.dedupKey()](/flux/v0/stdlib/pagerduty/dedupkey/)
-   [pagerduty.endpoint()](/flux/v0/stdlib/pagerduty/endpoint/)
-   [pagerduty.sendEvent()](/flux/v0/stdlib/pagerduty/sendevent/)
-   [pagerduty.severityFromLevel()](/flux/v0/stdlib/pagerduty/severityfromlevel/)
