Documentation ¶
Index ¶
- func GetServerNameFromRecord(in AzurePostgresLogRecord) string
- func GetSystemState(ctx context.Context, server *state.Server, logger *util.Logger) (system state.SystemState)
- func ParseRecordToLogLines(in AzurePostgresLogRecord, parser state.LogParser) ([]state.LogLine, error)
- func SetupLogSubscriber(ctx context.Context, wg *sync.WaitGroup, ...) error
- type AzureEventHubData
- type AzurePostgresLogMessage
- type AzurePostgresLogRecord
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 ¶
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
Click to show internal directories.
Click to hide internal directories.