extensionevents

package
v0.0.0-...-33858f5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 10 Imported by: 2

Documentation

Overview

Copyright (c) Microsoft Corporation. Licensed under the MIT License.

Copyright (c) Microsoft Corporation. Licensed under the MIT License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtensionEventManager

type ExtensionEventManager struct {
	// contains filtered or unexported fields
}

ExtensionEventManager allows extensions to log events that will be collected by the Guest Agent

func New

New creates a new instance of the ExtensionEventManager

func (*ExtensionEventManager) LogCriticalEvent

func (eem *ExtensionEventManager) LogCriticalEvent(taskName string, message string)

LogCriticalEvent writes a message with critical status for the extension

func (*ExtensionEventManager) LogErrorEvent

func (eem *ExtensionEventManager) LogErrorEvent(taskName string, message string)

LogErrorEvent writes a message with error status for the extension

func (*ExtensionEventManager) LogInformationalEvent

func (eem *ExtensionEventManager) LogInformationalEvent(taskName string, message string)

LogInformationalEvent writes a message with informational status for the extension

func (*ExtensionEventManager) LogVerboseEvent

func (eem *ExtensionEventManager) LogVerboseEvent(taskName string, message string)

LogVerboseEvent writes a message with verbose status for the extension

func (*ExtensionEventManager) LogWarningEvent

func (eem *ExtensionEventManager) LogWarningEvent(taskName string, message string)

LogWarningEvent writes a message with warning status for the extension

func (*ExtensionEventManager) SetOperationID

func (eem *ExtensionEventManager) SetOperationID(operationID string)

"SetOperationId()" sets operation Id passed by user while logging extension events This is made as separate function (not included in "logEvent()") to enable users to set Operation ID globally for their extension. "operationID" corresponds to "Context3" column in 'GuestAgentGenericLogs' table (Rdos cluster)

func (*ExtensionEventManager) SetPrefix

func (eem *ExtensionEventManager) SetPrefix(prefix string)

"SetPrefix()" sets a prefix to use for all messages The prefix will continue to be used until "SetPrefix()" is called with an empty string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL