Skip to main content
Module

x/statsd/mod.ts>EventOpts

A simple StatsD client for Deno
Latest
interface EventOpts
import { type EventOpts } from "https://deno.land/x/statsd@0.5.0/mod.ts";

Event parameters. Used when creating an Event for dogstatsd.

Properties

title: string

Title of the event.

text: string

Event text.

optional
time: Date

Timestamp for the event.

If omitted, we'll use the current time, so only send this if you're submitting an event retroactively.

optional
host: string | false

The hostname for the event.

If omitted, we'll use Deno.hostname() if the current process has environment permissions. Else the param will not be sent with the event. If you wish to omit hostname from the event, use the value false.

optional
aggregate: string

An aggregation key for the event.

Similar events will be grouped in datadog by this key.

optional
priority: "normal" | "low"

A priority level for this event. Either "normal" or "low".

optional
source: string

A source type for this event.

optional
type:
| "error"
| "warning"
| "info"
| "success"

An alert type for this event.

optional
tags: Tags

Tags that will be attached to this event.