Documentation
¶
Index ¶
- func GetAppInsightsHandler(cfg *config.ConfigData) tools.ResourceHandler
- func GetAzMonitoringHandler(azClient *azureclient.AzureClient, cfg *config.ConfigData) tools.ResourceHandler
- func GetResourceHealthHandler(cfg *config.ConfigData) tools.ResourceHandler
- func GetSupportedMonitoringOperations() []string
- func HandleAppInsightsQuery(params map[string]interface{}, cfg *config.ConfigData) (string, error)
- func HandleResourceHealthQuery(params map[string]interface{}, cfg *config.ConfigData) (string, error)
- func MapMetricsQueryTypeToCommand(queryType string) (string, error)
- func RegisterAzMonitoring() mcp.Tool
- func ValidateMetricsQueryType(queryType string) bool
- func ValidateMonitoringOperation(operation string) bool
- type MonitoringOperationType
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
MapMetricsQueryTypeToCommand maps a metrics query type to its corresponding az command
func RegisterAzMonitoring ¶ added in v0.0.3
RegisterAzMonitoring registers the monitoring tool
func ValidateMetricsQueryType ¶ added in v0.0.3
ValidateMetricsQueryType checks if the metrics query type is supported
func ValidateMonitoringOperation ¶ added in v0.0.3
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" )