package
Version:
v0.12.0
Opens a new window with list of versions in this module.
Published: Jul 4, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Enrich sets the event's Type and IdempotencyKey fields, so that users of this API don't need to
manually set them
Send attempts to push the events to the remote endpoint.
On failure, the error is guaranteed to be one of: JSONError, RequestError, or
UnexpectedStatusCodeError.
type AbsoluteEvent struct {
IdempotencyKey string `json:"idempotency_key"`
MetricName string `json:"metric"`
Type string `json:"type"`
TenantID string `json:"tenant_id"`
TimelineID string `json:"timeline_id"`
Time time.Time `json:"time"`
Value int `json:"value"`
}
type Client struct {
BaseURL string
}
type IncrementalEvent struct {
IdempotencyKey string `json:"idempotency_key"`
MetricName string `json:"metric"`
Type string `json:"type"`
EndpointID string `json:"endpoint_id"`
StartTime time.Time `json:"start_time"`
StopTime time.Time `json:"stop_time"`
Value int `json:"value"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.