An open API service indexing awesome lists of open source software.

https://github.com/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.
https://github.com/nrfcloud/metrics-publisher-sns

Last synced: about 2 months ago
JSON representation

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.

Awesome Lists containing this project

README

        

# `@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:

```bash
npx jsr add @nrfcloud/metrics-publisher-sns
```

Use in your code:

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