hotfix: fix incorrect victorops function name
parent
e97ccea2b1
commit
a02793661e
|
@ -1,19 +1,20 @@
|
||||||
---
|
---
|
||||||
title: victorops.event() function
|
title: victorops.alert() function
|
||||||
description: >
|
description: >
|
||||||
The `victorops.event()` function sends an event to VictorOps.
|
The `victorops.alert()` function sends an alert to VictorOps.
|
||||||
menu:
|
menu:
|
||||||
flux_0_x_ref:
|
flux_0_x_ref:
|
||||||
name: victorops.event
|
name: victorops.alert
|
||||||
parent: victorops
|
parent: victorops
|
||||||
weight: 202
|
weight: 202
|
||||||
aliases:
|
aliases:
|
||||||
- /influxdb/v2.0/reference/flux/stdlib/contrib/victorops/event/
|
- /influxdb/v2.0/reference/flux/stdlib/contrib/victorops/event/
|
||||||
- /influxdb/cloud/reference/flux/stdlib/contrib/victorops/event/
|
- /influxdb/cloud/reference/flux/stdlib/contrib/victorops/event/
|
||||||
|
- /flux/v0.x/stdlib/contrib/bonitoo-io/victorops/event/
|
||||||
introduced: 0.108.0
|
introduced: 0.108.0
|
||||||
---
|
---
|
||||||
|
|
||||||
The `victorops.event()` function sends an event to [VictorOps](https://www.victorops.com/).
|
The `victorops.alert()` function sends an alert to [VictorOps](https://www.victorops.com/).
|
||||||
|
|
||||||
{{% note %}}
|
{{% note %}}
|
||||||
#### VictorOps is now Splunk On-Call
|
#### VictorOps is now Splunk On-Call
|
||||||
|
@ -24,7 +25,7 @@ Splunk acquired VictorOps and VictorOps is now
|
||||||
```js
|
```js
|
||||||
import "contrib/bonitoo-io/victorops"
|
import "contrib/bonitoo-io/victorops"
|
||||||
|
|
||||||
victorops.event(
|
victorops.alert(
|
||||||
url: "https://alert.victorops.com/integrations/generic/00000000/alert/${api_key}/${routing_key}",
|
url: "https://alert.victorops.com/integrations/generic/00000000/alert/${api_key}/${routing_key}",
|
||||||
monitoringTool: "",
|
monitoringTool: "",
|
||||||
messageType: "CRITICAL",
|
messageType: "CRITICAL",
|
||||||
|
@ -96,7 +97,7 @@ lastReported =
|
||||||
|> last()
|
|> last()
|
||||||
|> findRecord(fn: (key) => true, idx: 0)
|
|> findRecord(fn: (key) => true, idx: 0)
|
||||||
|
|
||||||
victorops.event(
|
victorops.alert(
|
||||||
url: "https://alert.victorops.com/integrations/generic/00000000/alert/${apiKey}/${routingKey}",
|
url: "https://alert.victorops.com/integrations/generic/00000000/alert/${apiKey}/${routingKey}",
|
||||||
messageType:
|
messageType:
|
||||||
if lastReported._value < 1.0 then "CRITICAL"
|
if lastReported._value < 1.0 then "CRITICAL"
|
Loading…
Reference in New Issue