Skip to content

The metrics publisher library offers a class that can be used by other services to streamline the process of pushing events to a SNS topic.

License

Notifications You must be signed in to change notification settings

nRFCloud/metrics-publisher-sns

Repository files navigation

@nrfcloud/metrics-publisher-sns

https://jsr.io/@nrfcloud/metrics-publisher-sns

The metrics publisher library offers a class that can be used by other services to streamline the process of pushing events to a SNS topic.

Usage

Install the package from JSR:

npx jsr add @nrfcloud/metrics-publisher-sns

Use in your code:

import { MetricsPublisher } from "@nrfcloud/metrics-publisher-sns";
const publisher = new MetricsPublisher("topicArn");
await publisher.publish({
  eventName: "my-event-name",
});

About

The metrics publisher library offers a class that can be used by other services to streamline the process of pushing events to a SNS topic.

Resources

License

Stars

Watchers

Forks

Packages

No packages published