azure

package
v0.63.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: BSD-2-Clause, BSD-3-Clause, PostgreSQL Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetServerNameFromRecord added in v0.58.0

func GetServerNameFromRecord(in AzurePostgresLogRecord) string

func GetSystemState added in v0.59.0

func GetSystemState(ctx context.Context, server *state.Server, logger *util.Logger) (system state.SystemState)

GetSystemState - Gets system information about an Azure instance

func ParseRecordToLogLines added in v0.49.0

func ParseRecordToLogLines(in AzurePostgresLogRecord, parser state.LogParser) ([]state.LogLine, error)

Parses one Azure Event Hub log record into one or two log lines (main + DETAIL)

func SetupLogSubscriber

func SetupLogSubscriber(ctx context.Context, wg *sync.WaitGroup, globalCollectionOpts state.CollectionOpts, logger *util.Logger, servers []*state.Server, parsedLogStream chan state.ParsedLogStreamItem) error

Types

type AzureEventHubData

type AzureEventHubData struct {
	Records []AzurePostgresLogRecord `json:"records"`
}

type AzurePostgresLogMessage

type AzurePostgresLogMessage struct {
	Prefix       string `json:"prefix"`
	Message      string `json:"message"`
	Detail       string `json:"detail"`
	ErrorLevel   string `json:"errorLevel"`
	Domain       string `json:"domain"`
	SchemaName   string `json:"schemaName"`
	TableName    string `json:"tableName"`
	ColumnName   string `json:"columnName"`
	DatatypeName string `json:"datatypeName"`
}

type AzurePostgresLogRecord

type AzurePostgresLogRecord struct {
	LogicalServerName string                  `json:"LogicalServerName"`
	SubscriptionID    string                  `json:"SubscriptionId"`
	ResourceGroup     string                  `json:"ResourceGroup"`
	Time              string                  `json:"time"`
	ResourceID        string                  `json:"resourceId"`
	Category          string                  `json:"category"`
	OperationName     string                  `json:"operationName"`
	Properties        AzurePostgresLogMessage `json:"properties"`
}

func (*AzurePostgresLogRecord) IsCosmosDB added in v0.58.0

func (record *AzurePostgresLogRecord) IsCosmosDB() bool

func (*AzurePostgresLogRecord) IsSingleServer added in v0.58.0

func (record *AzurePostgresLogRecord) IsSingleServer() bool

Jump to

Keyboard shortcuts

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