monitor

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAppInsightsHandler added in v0.0.3

func GetAppInsightsHandler(cfg *config.ConfigData) tools.ResourceHandler

GetAppInsightsHandler returns a ResourceHandler for the Application Insights tool

func GetAzMonitoringHandler added in v0.0.3

func GetAzMonitoringHandler(azClient *azureclient.AzureClient, cfg *config.ConfigData) tools.ResourceHandler

GetAzMonitoringHandler returns a ResourceHandler for the monitoring tool

func GetResourceHealthHandler added in v0.0.3

func GetResourceHealthHandler(cfg *config.ConfigData) tools.ResourceHandler

GetResourceHealthHandler returns a ResourceHandler for the resource health tool

func GetSupportedMonitoringOperations added in v0.0.3

func GetSupportedMonitoringOperations() []string

GetSupportedMonitoringOperations returns all supported monitoring operations

func HandleAppInsightsQuery added in v0.0.3

func HandleAppInsightsQuery(params map[string]interface{}, cfg *config.ConfigData) (string, error)

HandleAppInsightsQuery handles Application Insights telemetry queries for AKS clusters

func HandleResourceHealthQuery added in v0.0.3

func HandleResourceHealthQuery(params map[string]interface{}, cfg *config.ConfigData) (string, error)

HandleResourceHealthQuery handles the resource health query for AKS clusters

func MapMetricsQueryTypeToCommand added in v0.0.3

func MapMetricsQueryTypeToCommand(queryType string) (string, error)

MapMetricsQueryTypeToCommand maps a metrics query type to its corresponding az command

func RegisterAzMonitoring added in v0.0.3

func RegisterAzMonitoring() mcp.Tool

RegisterAzMonitoring registers the monitoring tool

func ValidateMetricsQueryType added in v0.0.3

func ValidateMetricsQueryType(queryType string) bool

ValidateMetricsQueryType checks if the metrics query type is supported

func ValidateMonitoringOperation added in v0.0.3

func ValidateMonitoringOperation(operation string) bool

ValidateMonitoringOperation checks if the monitoring operation is supported

Types

type MonitoringOperationType added in v0.0.3

type MonitoringOperationType string

MonitoringOperationType defines the type of monitoring operation

const (
	OpMetrics          MonitoringOperationType = "metrics"
	OpResourceHealth   MonitoringOperationType = "resource_health"
	OpAppInsights      MonitoringOperationType = "app_insights"
	OpDiagnostics      MonitoringOperationType = "diagnostics"
	OpControlPlaneLogs MonitoringOperationType = "control_plane_logs"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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