Documentation ¶
Overview ¶
Copyright 2020 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseEvent ¶
type BaseEvent struct { EventType string `json:"eventType"` Timestmp int64 `json:"timestamp"` EntityKey string `json:"entityKey"` }
BaseEvent type specifying properties for all sample events All fields on SampleEvent must be set before it is sent.
type Event ¶
type Event interface { // Type sets the "eventType" marshallable field Type(eventType string) // Entity sets the "entityKey" marshallable field Entity(key entity.Key) // Timestamp sets the "timestamp" marshallable field Timestamp(timestamp int64) }
Event is implemented by any object that can represent an event/sample as long as we can marshal it.
Click to show internal directories.
Click to hide internal directories.