Documentation
¶
Index ¶
- func GetAksDetectorHandler(azClient *azureclient.AzureClient, cfg *config.ConfigData) tools.ResourceHandler
- func HandleAksDetector(ctx context.Context, params map[string]interface{}, client *DetectorClient) (string, error)
- func RegisterAksDetectorTool() mcp.Tool
- type Detector
- type DetectorClient
- func (c *DetectorClient) GetDetectorsByCategory(ctx context.Context, ...) ([]Detector, error)
- func (c *DetectorClient) ListDetectors(ctx context.Context, subscriptionID, resourceGroup, clusterName string) (*DetectorListResponse, error)
- func (c *DetectorClient) RunDetector(ctx context.Context, ...) (*DetectorRunResponse, error)
- func (c *DetectorClient) RunDetectorsByCategory(ctx context.Context, ...) ([]DetectorRunResponse, error)
- type DetectorColumn
- type DetectorDataset
- type DetectorListResponse
- type DetectorMetadata
- type DetectorProperties
- type DetectorRunProperties
- type DetectorRunResponse
- type DetectorStatus
- type DetectorTable
- type RenderingProperties
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAksDetectorHandler ¶ added in v0.0.14
func GetAksDetectorHandler(azClient *azureclient.AzureClient, cfg *config.ConfigData) tools.ResourceHandler
GetAksDetectorHandler returns handler for unified aks_detector tool
func HandleAksDetector ¶ added in v0.0.14
func HandleAksDetector(ctx context.Context, params map[string]interface{}, client *DetectorClient) (string, error)
HandleAksDetector is the main handler that routes to operation-specific handlers
func RegisterAksDetectorTool ¶ added in v0.0.14
RegisterAksDetectorTool registers the unified aks_detector MCP tool
Types ¶
type Detector ¶
type Detector struct {
ID string `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
Location string `json:"location"`
Properties DetectorProperties `json:"properties"`
}
Detector represents a single detector metadata
type DetectorClient ¶
type DetectorClient struct {
// contains filtered or unexported fields
}
DetectorClient wraps Azure API calls with caching
func NewDetectorClient ¶
func NewDetectorClient(azClient *azureclient.AzureClient) *DetectorClient
NewDetectorClient creates a new detector client
func (*DetectorClient) GetDetectorsByCategory ¶
func (c *DetectorClient) GetDetectorsByCategory(ctx context.Context, subscriptionID, resourceGroup, clusterName, category string) ([]Detector, error)
GetDetectorsByCategory filters detectors by category from cached list
func (*DetectorClient) ListDetectors ¶
func (c *DetectorClient) ListDetectors(ctx context.Context, subscriptionID, resourceGroup, clusterName string) (*DetectorListResponse, error)
ListDetectors lists all detectors for a cluster with caching
func (*DetectorClient) RunDetector ¶
func (c *DetectorClient) RunDetector(ctx context.Context, subscriptionID, resourceGroup, clusterName, detectorName, startTime, endTime string) (*DetectorRunResponse, error)
RunDetector executes a specific detector
func (*DetectorClient) RunDetectorsByCategory ¶
func (c *DetectorClient) RunDetectorsByCategory(ctx context.Context, subscriptionID, resourceGroup, clusterName, category, startTime, endTime string) ([]DetectorRunResponse, error)
RunDetectorsByCategory executes all detectors in a specific category
type DetectorColumn ¶
type DetectorColumn struct {
ColumnName string `json:"columnName"`
ColumnType *string `json:"columnType"`
DataType string `json:"dataType"`
}
DetectorColumn defines table column metadata
type DetectorDataset ¶
type DetectorDataset struct {
RenderingProperties RenderingProperties `json:"renderingProperties"`
Table DetectorTable `json:"table"`
}
DetectorDataset represents detector output data
type DetectorListResponse ¶
type DetectorListResponse struct {
Value []Detector `json:"value"`
}
DetectorListResponse represents the API response for listing detectors
type DetectorMetadata ¶
type DetectorMetadata struct {
ID string `json:"id"`
Name string `json:"name"`
Category string `json:"category"`
Description string `json:"description"`
Type string `json:"type"`
}
DetectorMetadata contains detector information
type DetectorProperties ¶
type DetectorProperties struct {
Metadata DetectorMetadata `json:"metadata"`
Status DetectorStatus `json:"status"`
}
DetectorProperties contains detector metadata
type DetectorRunProperties ¶
type DetectorRunProperties struct {
Dataset []DetectorDataset `json:"dataset"`
Metadata DetectorMetadata `json:"metadata"`
Status DetectorStatus `json:"status"`
}
DetectorRunProperties contains detector run results
type DetectorRunResponse ¶
type DetectorRunResponse struct {
ID string `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
Location string `json:"location"`
Properties DetectorRunProperties `json:"properties"`
}
DetectorRunResponse represents the API response for running a detector
type DetectorStatus ¶
DetectorStatus contains detector status
type DetectorTable ¶
type DetectorTable struct {
Columns []DetectorColumn `json:"columns"`
Rows [][]interface{} `json:"rows"`
TableName string `json:"tableName"`
}
DetectorTable contains tabular detector results