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.
- Host: GitHub
- URL: https://github.com/nrfcloud/metrics-publisher-sns
- Owner: nRFCloud
- License: bsd-3-clause
- Created: 2025-03-18T23:18:01.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-03-18T23:51:28.000Z (2 months ago)
- Last Synced: 2025-03-19T00:30:01.627Z (2 months ago)
- Language: TypeScript
- Size: 0 Bytes
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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",
});
```