Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Enable bool SendToLog bool URI string Name string GUID string Index string UserName string Password string }
Config represents the configuration of Telemetry logging
func MakeTelemetryConfig ¶
MakeTelemetryConfig initializes a new TelemetryConfig.
type Event ¶
type Event struct { // Time at which the event was created Time time.Time `json:"timestamp"` // Event message Message string `json:"message"` // Unique ID assigned to the pipeline upon initialization GUID string `json:"guid"` // Version of conduit Version string `json:"version"` }
Event represents a single event to be emitted to OpenSearch
type OpenSearchClient ¶
type OpenSearchClient struct { Client *opensearch.Client TelemetryConfig Config }
OpenSearchClient holds the OpenSearch client and TelemetryConfig
func MakeOpenSearchClient ¶
func MakeOpenSearchClient(cfg Config) (*OpenSearchClient, error)
MakeOpenSearchClient initializes a new TelemetryState.
func (*OpenSearchClient) MakeTelemetryStartupEvent ¶
func (t *OpenSearchClient) MakeTelemetryStartupEvent() Event
MakeTelemetryStartupEvent sends a startup event when the pipeline is initialized.
func (*OpenSearchClient) SendEvent ¶
func (t *OpenSearchClient) SendEvent(event Event) error
SendEvent sends a TelemetryEvent to OpenSearch.
Click to show internal directories.
Click to hide internal directories.