Versions in this module Expand all Collapse all v0 v0.9.0 Jul 8, 2026 v0.8.1 Jul 8, 2026 v0.8.0 Jul 8, 2026 v0.7.0 Jul 8, 2026 Changes in this version + const DefaultTimeout + type APIError struct + Code int + Message string + StatusCode int + func (e *APIError) Error() string + type AckAlertRequest struct + AckBy string + Reason string + SnoozeUntil *time.Time + type AckRecord struct + AckBy string + Cluster string + CreatedAt time.Time + Fingerprint string + Reason string + Scanner string + SnoozeUntil time.Time + Title string + type AckRequest struct + AckBy string + Cluster string + Reason string + Scanner string + SnoozeUntil *time.Time + Title string + type AlertQuery struct + Cluster string + Limit int + Severity string + Since time.Time + Status string + type AlertRecord struct + Alertname string + Annotations map[string]string + Cluster string + EndsAt time.Time + Fingerprint string + GeneratorURL string + Labels map[string]string + ReceivedAt time.Time + Severity string + StartsAt time.Time + Status string + Summary string + type AlertsResponse struct + Alerts []AlertRecord + Count int + type CapacityAnalysis struct + CPUUtilization float64 + Cluster string + HasMemoryPressure bool + HeadroomCPU float64 + HeadroomMemory float64 + HealthyNodes int + MemoryUtilization float64 + NodeCount int + Recommendation string + Status string + type CapacityResponse struct + Capacity []CapacityAnalysis + ScanID string + type Client struct + func New(baseURL string, opts ...Option) *Client + func (c *Client) AckAlert(ctx context.Context, fingerprint string, req AckAlertRequest) (*AckRecord, error) + func (c *Client) AckFinding(ctx context.Context, fingerprint string, req AckRequest) (*AckRecord, error) + func (c *Client) Capacity(ctx context.Context) (*CapacityResponse, error) + func (c *Client) ClusterTimeline(ctx context.Context, name string, limit int) (*TimelineResponse, error) + func (c *Client) ClusterTrends(ctx context.Context, cluster string) (json.RawMessage, error) + func (c *Client) ClustersForecast(ctx context.Context) (*ClustersForecastResponse, error) + func (c *Client) Contexts(ctx context.Context) ([]Context, error) + func (c *Client) Cost(ctx context.Context) (*CostAnalysis, error) + func (c *Client) CreateGroup(ctx context.Context, req CreateGroupRequest) error + func (c *Client) DeleteFindingAck(ctx context.Context, fingerprint string) error + func (c *Client) DeleteGroup(ctx context.Context, name string) error + func (c *Client) DeleteLocation(ctx context.Context, cluster string) error + func (c *Client) FleetForecast(ctx context.Context, scans int) (*FleetForecastResponse, error) + func (c *Client) Geo(ctx context.Context) (json.RawMessage, error) + func (c *Client) GetClusterDetail(ctx context.Context, name string) (*ClusterDetail, error) + func (c *Client) GetScan(ctx context.Context, id string) (*ScanRecord, error) + func (c *Client) GetScanReport(ctx context.Context, id string) (*Report, error) + func (c *Client) Healthz(ctx context.Context) error + func (c *Client) Integrations(ctx context.Context) ([]IntegrationStatus, error) + func (c *Client) ListAcks(ctx context.Context) ([]AckRecord, error) + func (c *Client) ListAlerts(ctx context.Context, query AlertQuery) (*AlertsResponse, error) + func (c *Client) ListClusters(ctx context.Context) ([]ClusterRecord, error) + func (c *Client) ListGroups(ctx context.Context) ([]Group, error) + func (c *Client) ListLocations(ctx context.Context) (json.RawMessage, error) + func (c *Client) ListScans(ctx context.Context, limit int) ([]ScanRecord, error) + func (c *Client) Outliers(ctx context.Context, threshold float64) (*OutliersResponse, error) + func (c *Client) Readyz(ctx context.Context) error + func (c *Client) SetLocation(ctx context.Context, cluster string, req LocationRequest) error + func (c *Client) Trends(ctx context.Context, scans int) (json.RawMessage, error) + func (c *Client) TriggerScan(ctx context.Context, req TriggerScanRequest) (*TriggerScanResponse, error) + type ClusterDetail struct + Cluster string + Findings []Finding + Health ClusterHealth + ScanID string + ScanTime time.Time + ScannerData map[string]json.RawMessage + type ClusterForecast struct + Cluster string + CurrentScore int + Forecast FleetScoreForecast + type ClusterHealth struct + AvgCPU float64 + AvgMemory float64 + FindingCounts map[string]int + HealthyNodes int + KubernetesVersion string + Name string + NamespaceCount int + NodeCount int + Status string + WarningEvents int + type ClusterRecord struct + FirstSeen time.Time + LastSeen time.Time + Name string + type ClustersForecastResponse struct + Forecasts []ClusterForecast + type Context struct + Name string + type CostAnalysis struct + ByCluster []CostByCluster + Currency string + MissingCost []string + Period string + TotalDriftUSD float64 + TotalFleetUSD float64 + type CostByCluster struct + Cluster string + CostUSD float64 + DriftUSD float64 + Period string + Score int + type CreateGroupRequest struct + Clusters []string + Name string + type Finding struct + Affected []string + Cluster string + Description string + Remediation *Remediation + Scanner string + Severity Severity + Title string + type FleetForecastResponse struct + Forecast FleetScoreForecast + History []ForecastHistoryPoint + type FleetScore struct + Drivers []ScoreDriver + Grade string + Headline string + Score int + type FleetScoreForecast struct + Basis int + Headline string + Lower int + Predicted int + PredictedFor time.Time + RSquared float64 + SlopePerHour float64 + Sufficient bool + Upper int + type ForecastHistoryPoint struct + ScanID string + Score int + Timestamp time.Time + type Group struct + Clusters []string + Name string + type IntegrationStatus struct + Hint string + Name string + Status string + type LocationRequest struct + Lat float64 + Lng float64 + Notes string + Site string + type Option func(*Client) + func WithHTTPClient(h *http.Client) Option + func WithToken(token string) Option + func WithUserAgent(ua string) Option + type OutlierResult struct + Cluster string + Deviation float64 + Field string + FleetNorm string + Scanner string + Severity Severity + Value string + type OutliersResponse struct + Findings []Finding + Outliers []OutlierResult + ScanID string + type Remediation struct + Command string + RunbookURL string + YAML string + type Report struct + Capacity []CapacityAnalysis + ClusterHealths []ClusterHealth + Clusters []string + Findings []Finding + FleetScore FleetScore + Outliers []OutlierResult + Summary ReportSummary + Timestamp time.Time + type ReportSummary struct + ClusterCount int + CriticalCount int + DivergentCount int + ScannerCount int + TotalDivergences int + UniformCount int + WarningCount int + type ScanRecord struct + Clusters []string + ID string + Scanners []string + Timestamp time.Time + type ScoreDriver struct + Impact int + Reason string + type Severity string + const SeverityCritical + const SeverityInfo + const SeverityWarning + type TimelineEntry struct + At time.Time + Detail string + Kind string + Ref string + Severity string + Title string + type TimelineResponse struct + Cluster string + Count int + Entries []TimelineEntry + type TriggerScanRequest struct + AllContexts bool + Contexts []string + Group string + type TriggerScanResponse struct + ScanID string + Status string