Documentation
¶
Index ¶
Constants ¶
View Source
const ( VerbFleetStatus = "fleet.status" VerbFleetLogs = "fleet.logs" VerbFleetQueryMetrics = "fleet.query_metrics" VerbFleetAlerts = "fleet.alerts" )
Variables ¶
This section is empty.
Functions ¶
func GenerateServiceSkill ¶
func GenerateToken ¶
Types ¶
type Principal ¶
type Principal struct {
Name string `json:"name"`
Token string `json:"token"`
Verbs []string `json:"verbs"`
Pods []string `json:"pods,omitempty"`
Services []string `json:"services,omitempty"`
ClawIDs []string `json:"claw_ids,omitempty"`
}
func BuildMasterPrincipal ¶
func (*Principal) AllowsClawID ¶
func (*Principal) AllowsService ¶
func (*Principal) AllowsVerb ¶
type ThresholdAlert ¶ added in v0.3.5
type Thresholds ¶ added in v0.3.5
type Thresholds struct {
ErrorRatePercent float64 `json:"error_rate_percent"`
MaxCostUSD float64 `json:"max_cost_usd"`
FeedErrorRatePercent float64 `json:"feed_error_rate_percent"`
InterventionCount int `json:"intervention_count"`
}
func DefaultThresholds ¶ added in v0.3.5
func DefaultThresholds() Thresholds
func ThresholdsFromEnv ¶ added in v0.3.5
func ThresholdsFromEnv() Thresholds
func (Thresholds) Evaluate ¶ added in v0.3.5
func (th Thresholds) Evaluate(agent audit.AgentSummary) []ThresholdAlert
Click to show internal directories.
Click to hide internal directories.