Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APMZProxy ¶
type APMZProxy struct {
Printer format.Printer
apmz.TelemetryClient
}
APMZProxy will proxy calls to the APMZ client or print if running locally
type APMer ¶
type APMer interface {
Track(telemetry apmz.Telemetry)
Channel() apmz.TelemetryChannel
}
APMer provides the behaviors needed to send events to Azure Application Insights
type CommandServicer ¶
type CommandServicer interface {
GetAPMer() (APMer, error)
GetPrinter() format.Printer
GetKey() string
}
CommandServicer provides all functionality needed for command execution
type Event ¶
type Event struct {
Type string `json:"type,omitempty"`
Item apmz.Telemetry `json:"item,omitempty"`
}
Event is a typed batch event
func (*Event) UnmarshalJSON ¶
UnmarshalJSON takes json bytes and turns them into an event
type EventType ¶
type EventType string
EventType represents the enumeration of all the event types the Batch command understands
type Registry ¶
type Registry struct {
APMerFactory func() (APMer, error)
PrinterFactory func() format.Printer
APIKeyFactory func() string
// contains filtered or unexported fields
}
Registry holds the factories and services needed for command execution
func (*Registry) GetPrinter ¶
GetPrinter will return a printer for printing command output
Click to show internal directories.
Click to hide internal directories.