Documentation ¶
Overview ¶
Copyright Microsoft. All rights reserved.
Copyright Microsoft. All rights reserved.
Index ¶
- Constants
- func Close()
- func Debugf(format string, args ...interface{})
- func Errorf(format string, args ...interface{})
- func InitAI(aiConfig aitelemetry.AIConfig, disableTraceLogging, disableMetricLogging bool, ...)
- func InitLogger(fileName string, logLevel, logTarget int, logDir string)
- func InitReportChannel(reports chan interface{})
- func LogEvent(event aitelemetry.Event)
- func Printf(format string, args ...interface{})
- func Request(tag string, request interface{}, err error)
- func Response(tag string, response interface{}, returnCode int, returnStr string, err error)
- func SendHeartBeat(heartbeatIntervalInMins int, stopheartbeat chan bool)
- func SendMetric(metric aitelemetry.Metric)
- func SendToTelemetryService(reports chan interface{}, telemetryStopProcessing chan bool)
- func SetContextDetails(orchestrator string, nodeID string)
- func SetTargetLogDirectory(target int, dir string) error
- type CNSLogger
Constants ¶
View Source
const ( //Metrics HeartBeatMetricStr = "HeartBeat" //Dimensions OrchestratorTypeStr = "OrchestratorType" NodeIDStr = "NodeID" // CNS Snspshot properties CnsNCSnapshotEventStr = "CNSNCSnapshot" IpConfigurationStr = "IPConfiguration" LocalIPConfigurationStr = "LocalIPConfiguration" PrimaryInterfaceIdentifierStr = "PrimaryInterfaceIdentifier" MultiTenancyInfoStr = "MultiTenancyInfo" CnetAddressSpaceStr = "CnetAddressSpace" AllowNCToHostCommunicationStr = "AllowNCToHostCommunication" AllowHostToNCCommunicationStr = "AllowHostToNCCommunication" NetworkContainerTypeStr = "NetworkContainerType" OrchestratorContextStr = "OrchestratorContext" )
Variables ¶
This section is empty.
Functions ¶
func InitAI ¶
func InitAI(aiConfig aitelemetry.AIConfig, disableTraceLogging, disableMetricLogging bool, disableEventLogging bool)
Intialize CNS AI telmetry instance
func InitLogger ¶
Initialize CNS Logger
func InitReportChannel ¶ added in v1.0.32
func InitReportChannel(reports chan interface{})
func LogEvent ¶
func LogEvent(event aitelemetry.Event)
func SendHeartBeat ¶
func SendToTelemetryService ¶ added in v1.0.33
func SendToTelemetryService(reports chan interface{}, telemetryStopProcessing chan bool)
SendCnsTelemetry - handles cns telemetry reports
func SetContextDetails ¶
Set context details for logs and metrics
func SetTargetLogDirectory ¶ added in v1.0.32
Types ¶
Click to show internal directories.
Click to hide internal directories.