npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@dynatrace-sdk/client-notification-v2

v1.0.0

Published

[![npm](https://img.shields.io/badge/npm-v1.0.0-blue)](https://www.npmjs.com/package/@dynatrace-sdk/client-notification-v2/v/1.0.0) [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

Readme

@dynatrace-sdk/client-notification-v2

npm License

Manage resource/event notifications with the Notification Service API.

Installation

npm install @dynatrace-sdk/client-notification-v2

Getting help

License

This SDK is distributed under the Apache License, Version 2.0, see LICENSE for more information.

API reference

Full API reference for the latest version of the SDK is also available at the Dynatrace Developer.

eventNotificationsClient

import { eventNotificationsClient } from '@dynatrace-sdk/client-notification-v2';

createEventNotification

Required scope: notification:notifications:write

Parameters

| Name | Type | | --- | --- | |config.body*required|EventNotificationRequest|

Returns

| Return type | Status code | Description | |---|---|---| |EventNotification|201||

Throws

| Error Type | Error Message | |---|---| |ErrorEnvelopeError||

import { eventNotificationsClient } from "@dynatrace-sdk/client-notification-v2";

const data =
  await eventNotificationsClient.createEventNotification({
    body: {
      resourceId: "...",
      notificationType: "...",
      triggerConfiguration: {
        type: "event",
        value: { query: "..." },
      },
    },
  });

deleteEventNotification

Required scope: notification:notifications:write

Parameters

| Name | Type | Description | | --- | --- | --- | |config.id*required|string|A UUID string identifying this self notification. |

Returns

| Return type | Status code | Description | |---|---|---| |void|204|No response body|

Throws

| Error Type | Error Message | |---|---| |ErrorEnvelopeError||

import { eventNotificationsClient } from "@dynatrace-sdk/client-notification-v2";

const data =
  await eventNotificationsClient.deleteEventNotification({
    id: "...",
  });

getEventNotification

Required scope: notification:notifications:read

Parameters

| Name | Type | Description | | --- | --- | --- | |config.id*required|string|A UUID string identifying this self notification. |

Returns

| Return type | Status code | Description | |---|---|---| |EventNotification|200||

Throws

| Error Type | Error Message | |---|---| |ErrorEnvelopeError||

import { eventNotificationsClient } from "@dynatrace-sdk/client-notification-v2";

const data =
  await eventNotificationsClient.getEventNotification({
    id: "...",
  });

getEventNotifications

Required scope: notification:notifications:read

Parameters

| Name | Type | Description | | --- | --- | --- | |config.appId|string|Application id associated with the notification. Optional, by default automatically inferred from the request header. Only relevant for manual testing purposes via swagger. | |config.limit|number|Number of results to return per page. | |config.notificationType|string|String that defines the type of a notification in context of an app. Allows to differentiate between multiple types of notifications in context of one app. | |config.offset|number|The initial index from which to return the results. | |config.ordering|string|Which field to use when ordering the results. | |config.owner|string| | |config.resourceId|string|Unique identifier of resource to notify on. Used to determine if there is a notification registered for a resource in context of the app and notification type for a user. | |config.search|string|A search term. |

Returns

| Return type | Status code | Description | |---|---|---| |PaginatedEventNotificationList|200||

Throws

| Error Type | Error Message | |---|---| |ErrorEnvelopeError||

import { eventNotificationsClient } from "@dynatrace-sdk/client-notification-v2";

const data =
  await eventNotificationsClient.getEventNotifications();

patchEventNotification

Required scope: notification:notifications:write

Parameters

| Name | Type | Description | | --- | --- | --- | |config.body*required|EventNotificationUpdate| | |config.id*required|string|A UUID string identifying this self notification. |

Returns

| Return type | Status code | Description | |---|---|---| |EventNotification|200||

Throws

| Error Type | Error Message | |---|---| |ErrorEnvelopeError||

import { eventNotificationsClient } from "@dynatrace-sdk/client-notification-v2";

const data =
  await eventNotificationsClient.patchEventNotification({
    id: "...",
    body: {
      triggerConfiguration: {
        type: "event",
        value: { query: "..." },
      },
    },
  });

updateEventNotification

Required scope: notification:notifications:write

Parameters

| Name | Type | Description | | --- | --- | --- | |config.body*required|EventNotificationUpdate| | |config.id*required|string|A UUID string identifying this self notification. |

Returns

| Return type | Status code | Description | |---|---|---| |EventNotification|200||

Throws

| Error Type | Error Message | |---|---| |ErrorEnvelopeError||

import { eventNotificationsClient } from "@dynatrace-sdk/client-notification-v2";

const data =
  await eventNotificationsClient.updateEventNotification({
    id: "...",
    body: {
      triggerConfiguration: {
        type: "event",
        value: { query: "..." },
      },
    },
  });

resourceNotificationsClient

import { resourceNotificationsClient } from '@dynatrace-sdk/client-notification-v2';

createResourceNotification

Required scope: notification:notifications:write

Parameters

| Name | Type | | --- | --- | |config.body*required|ResourceNotificationRequest|

Returns

| Return type | Status code | Description | |---|---|---| |ResourceNotification|201||

Throws

| Error Type | Error Message | |---|---| |ErrorEnvelopeError||

import { resourceNotificationsClient } from "@dynatrace-sdk/client-notification-v2";

const data =
  await resourceNotificationsClient.createResourceNotification(
    {
      body: { notificationType: "...", resourceId: "..." },
    },
  );

deleteResourceNotification

Required scope: notification:notifications:write

Parameters

| Name | Type | Description | | --- | --- | --- | |config.appId|string|Application id associated with the notification. Optional, by default automatically inferred from the request header. Only relevant for manual testing purposes via swagger. | |config.id*required|string|A UUID string identifying this resource notification. |

Returns

| Return type | Status code | Description | |---|---|---| |void|204|No response body|

Throws

| Error Type | Error Message | |---|---| |ErrorEnvelopeError||

import { resourceNotificationsClient } from "@dynatrace-sdk/client-notification-v2";

const data =
  await resourceNotificationsClient.deleteResourceNotification(
    { id: "..." },
  );

deleteResourceNotificationByTypeAndResource

Required scope: notification:notifications:write

Parameters

| Name | Type | Description | | --- | --- | --- | |config.appId|string|Application id associated with the notification. Optional, by default automatically inferred from the request header. Only relevant for manual testing purposes via swagger. | |config.notificationType*required|string|String that defines the type of a notification in context of an app. Allows to differentiate between multiple types of notifications in context of one app. | |config.resourceId*required|string|Unique identifier of resource to notify on. Used to determine if there is a notification registered for a resource in context of the app and notification type for a user. |

Returns

| Return type | Status code | Description | |---|---|---| |void|204|No response body|

Throws

| Error Type | Error Message | |---|---| |ErrorEnvelopeError||

import { resourceNotificationsClient } from "@dynatrace-sdk/client-notification-v2";

const data =
  await resourceNotificationsClient.deleteResourceNotificationByTypeAndResource(
    { notificationType: "...", resourceId: "..." },
  );

getResourceNotification

Required scope: notification:notifications:read

Parameters

| Name | Type | Description | | --- | --- | --- | |config.appId|string|Application id associated with the notification. Optional, by default automatically inferred from the request header. Only relevant for manual testing purposes via swagger. | |config.id*required|string|A UUID string identifying this resource notification. |

Returns

| Return type | Status code | Description | |---|---|---| |ResourceNotification|200||

Throws

| Error Type | Error Message | |---|---| |ErrorEnvelopeError||

import { resourceNotificationsClient } from "@dynatrace-sdk/client-notification-v2";

const data =
  await resourceNotificationsClient.getResourceNotification(
    { id: "..." },
  );

getResourceNotifications

Required scope: notification:notifications:read

Parameters

| Name | Type | Description | | --- | --- | --- | |config.appId|string|Application id associated with the notification. Optional, by default automatically inferred from the request header. Only relevant for manual testing purposes via swagger. | |config.limit|number|Number of results to return per page. | |config.notificationType|string|String that defines the type of a notification in context of an app. Allows to differentiate between multiple types of notifications in context of one app. | |config.offset|number|The initial index from which to return the results. | |config.ordering|string|Which field to use when ordering the results. | |config.resourceId|string|Unique identifier of resource to notify on. Used to determine if there is a notification registered for a resource in context of the app and notification type for a user. | |config.search|string|A search term. |

Returns

| Return type | Status code | Description | |---|---|---| |PaginatedResourceNotificationList|200||

Throws

| Error Type | Error Message | |---|---| |ErrorEnvelopeError||

import { resourceNotificationsClient } from "@dynatrace-sdk/client-notification-v2";

const data =
  await resourceNotificationsClient.getResourceNotifications();

Types

DavisEventConfig

| Name | Type | Description | | --- | --- | --- | |customFilter|string|Additional DQL matcher expression to further filter events to match. | |entityTags|EntityTags|Entity tags to match by key and (optional) values. For example {"foo": [], "bar": ["a", "b", "c"]} | |entityTagsMatch|"all" | "any"|Event must match all or any of the entity tags. | |names|Array<DavisEventName>| | |onProblemClose|boolean|Trigger on Davis event open only or also on close. default: false| |~~types~~DEPRECATED|Array<string>| |

DavisEventName

| Name | Type | Description | | --- | --- | --- | |match*required|"equals" | "contains"|Davis event name must equal or contain the string provided. | |name*required|string| |

DavisEventTriggerConfig

| Name | Type | | --- | --- | |type*required|"davis-event"| |value*required|DavisEventConfig|

DavisProblemCategories

| Name | Type | | --- | --- | |availability|boolean| |custom|boolean| |error|boolean| |info|boolean| |monitoringUnavailable|boolean| |resource|boolean| |slowdown|boolean|

DavisProblemConfig

| Name | Type | Description | | --- | --- | --- | |categories*required|DavisProblemCategories| | |customFilter|string|Additional DQL matcher expression to further filter events to match. | |entityTags|EntityTags|Entity tags to match by key and (optional) values. For example {"foo": [], "bar": ["a", "b", "c"]} | |entityTagsMatch|"all" | "any"|Event must match all or any of the entity tags. | |onProblemClose|boolean|Trigger on Davis problem open only or also on close. default: false|

DavisProblemTriggerConfig

| Name | Type | | --- | --- | |type*required|"davis-problem"| |value*required|DavisProblemConfig|

EntityTags

Entity tags to match by key and (optional) values. For example {"foo": [], "bar": ["a", "b", "c"]}

type: Record<string, string | string[] | undefined>

Error

| Name | Type | Description | | --- | --- | --- | |code*required|number| | |details|ErrorDetails|Error response details according to API Guidelines | |message*required|string| |

ErrorDetails

Error response details according to API Guidelines

| Name | Type | | --- | --- | |errorCode|string| |errorRef|string|

ErrorEnvelope

| Name | Type | | --- | --- | |error*required|Error|

EventNotification

| Name | Type | Description | | --- | --- | --- | |appId|string|App id for registered notification. Optional, by default automatically inferred from the request. Only relevant for manual testing purposes via swagger. | |id*required|string| | |input|EventNotificationInput|Input object consisting of subject and content. Supports automation expressions https://dt-url.net/workflows-expression-reference and markdown syntax. A template provided with an app ({notification_type}.notification-template.json) will take precedence over the input provided here. | |modificationInfo*required|ModificationInfo| | |notificationType*required|string|String that defines the type of a notification in context of an app. Allows to differentiate between multiple types of notifications in context of one app. | |owner*required|string| | |resourceId*required|string|Unique identifier of resource to notify on. Used to determine if there is a notification registered for a resource in context of the app and notification type for a user. | |title|string| | |triggerConfiguration*required|EventTriggerConfig| |

EventNotificationInput

| Name | Type | | --- | --- | |content|string| |subject|string|

EventNotificationRequest

| Name | Type | Description | | --- | --- | --- | |appId|string|App id for registered notification. Optional, by default automatically inferred from the request. Only relevant for manual testing purposes via swagger. | |id|string| | |input|EventNotificationInput|Input object consisting of subject and content. Supports automation expressions https://dt-url.net/workflows-expression-reference and markdown syntax. A template provided with an app ({notification_type}.notification-template.json) will take precedence over the input provided here. | |notificationType*required|string|String that defines the type of a notification in context of an app. Allows to differentiate between multiple types of notifications in context of one app. | |resourceId*required|string|Unique identifier of resource to notify on. Used to determine if there is a notification registered for a resource in context of the app and notification type for a user. | |title|string| | |triggerConfiguration*required|EventTriggerConfig| |

EventNotificationUpdate

| Name | Type | Description | | --- | --- | --- | |appId|string|App id for registered notification. Optional, by default automatically inferred from the request. Only relevant for manual testing purposes via swagger. | |input|EventNotificationInput|Input object consisting of subject and content. Supports automation expressions https://dt-url.net/workflows-expression-reference and markdown syntax. A template provided with an app ({notification_type}.notification-template.json) will take precedence over the input provided here. | |notificationType|string|String that defines the type of a notification in context of an app. Allows to differentiate between multiple types of notifications in context of one app. | |resourceId|string|Unique identifier of resource to notify on. Used to determine if there is a notification registered for a resource in context of the app and notification type for a user. | |title|string| | |triggerConfiguration*required|EventTriggerConfig| |

EventQuery

| Name | Type | Description | | --- | --- | --- | |eventType|"events" | "bizevents" | "dt.system.events"|Grail event type. | |query*required|string|DQL matcher expression defining which events to match. |

EventQueryTriggerConfig

| Name | Type | | --- | --- | |type*required|"event"| |value*required|EventQuery|

ModificationInfo

| Name | Type | | --- | --- | |createdBy*required|null | string| |createdTime*required|Date| |lastModifiedBy*required|null | string| |lastModifiedTime*required|Date|

PaginatedEventNotificationList

| Name | Type | | --- | --- | |count*required|number| |results*required|Array<EventNotification>|

PaginatedResourceNotificationList

| Name | Type | | --- | --- | |count*required|number| |results*required|Array<ResourceNotification>|

ResourceNotification

| Name | Type | Description | | --- | --- | --- | |appId|null | string|App id for registered notification. Optional, by default automatically inferred from the request. Only relevant for manual testing purposes via swagger. | |id*required|string| | |modificationInfo*required|ModificationInfo| | |notificationType*required|string|String that defines the type of a notification in context of an app. Allows to differentiate between multiple types of notifications in context of one app. | |owningUser*required|string| | |resourceId*required|string|Unique identifier of resource to notify on. Used to determine if there is a notification registered for a resource in context of the app and notification type for a user. |

ResourceNotificationRequest

| Name | Type | Description | | --- | --- | --- | |appId|null | string|App id for registered notification. Optional, by default automatically inferred from the request. Only relevant for manual testing purposes via swagger. | |id|string| | |notificationType*required|string|String that defines the type of a notification in context of an app. Allows to differentiate between multiple types of notifications in context of one app. | |resourceId*required|string|Unique identifier of resource to notify on. Used to determine if there is a notification registered for a resource in context of the app and notification type for a user. |

Enums

DavisEventNameMatch

Davis event name must equal or contain the string provided.

Enum keys

Contains | Equals

DavisEventTriggerConfigType

Enum keys

DavisEvent

DavisProblemTriggerConfigType

Enum keys

DavisProblem

EntityTagsMatch

Event must match all or any of the entity tags.

Enum keys

All | Any

EventQueryTriggerConfigType

Enum keys

Event

EventType

Grail event type.

Enum keys

Bizevents | DtSystemEvents | Events