Skip to main content

createNotification

A Workflow Engine function that automatically creates a notification for a service.

This function currently supports the PagerDuty and Opsgenie integrations.

This function requires you to have already configured the services you want to use it with. When you configure some integrations, Moogsoft Onprem creates a workflow with this function that automatically communicates new alert or Situation data to the service. Integrations this function applies to indicate their compatibility on the UI.

This function is available for alert, enrichment, and Situation workflows.

The workflow sweep up filter applies to this function.

Back to Workflow Engine Functions Reference.

Arguments

Workflow Engine function createNotification takes the following arguments:

Name

Required

Type

Description

services

Yes

String

Comma separated list of the service names.

Example

The following example demonstrates typical use of Workflow Engine function createNotification.

When you configure the PagerDuty integration, Moogsoft Onprem automatically creates a workflow with this function, and is configured as follows:

  • services: PagerDuty

The UI translates this setting to the following JSON:

{"services":"PagerDuty"}

This allows Moogsoft Onprem to automatically notify PagerDuty of new alert or Situation data and make a request to raise an incident.