detectors

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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

func RegisterAksDetectorTool() mcp.Tool

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

type DetectorStatus struct {
	Message  *string `json:"message"`
	StatusID int     `json:"statusId"`
}

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

type RenderingProperties

type RenderingProperties struct {
	Description *string `json:"description"`
	IsVisible   bool    `json:"isVisible"`
	Title       *string `json:"title"`
	Type        int     `json:"type"`
}

RenderingProperties defines how to display results

Jump to

Keyboard shortcuts

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