mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-20 02:42:11 +00:00
25 lines
749 B
Go
25 lines
749 B
Go
package extensions
|
|
|
|
// MonitoredSystemAdmissionInput describes the counted-system state that a
|
|
// commercial runtime can use to decide whether adding a candidate should be
|
|
// admitted.
|
|
type MonitoredSystemAdmissionInput struct {
|
|
Current int
|
|
Additional int
|
|
Limit int
|
|
UsageAvailable bool
|
|
UsageUnavailableReason string
|
|
CandidateCountsTowardCap bool
|
|
}
|
|
|
|
// MonitoredSystemAdmissionDecision is the runtime admission decision returned
|
|
// by commercial policy hooks.
|
|
type MonitoredSystemAdmissionDecision struct {
|
|
Current int
|
|
Additional int
|
|
Limit int
|
|
UsageAvailable bool
|
|
UsageUnavailableReason string
|
|
Exceeded bool
|
|
}
|