grammar
This commit is contained in:
parent
619ae2ea1a
commit
a71fdd4645
@ -17,13 +17,13 @@ package inference
|
|||||||
import "github.com/google/cadvisor/info"
|
import "github.com/google/cadvisor/info"
|
||||||
|
|
||||||
// InterferenceDectector detects if there's a container which
|
// InterferenceDectector detects if there's a container which
|
||||||
// interference with a set of container. The detector monitors
|
// interferences with a set of containers. The detector tracks
|
||||||
// a set of container and find the victims and antagnist.
|
// a set of containers and find the victims and antagonist.
|
||||||
type InterferenceDetector interface {
|
type InterferenceDetector interface {
|
||||||
// Monitor the behavior of the container.
|
// Tracks the behavior of the container.
|
||||||
AddContainer(ref info.ContainerReference)
|
AddContainer(ref info.ContainerReference)
|
||||||
|
|
||||||
// Returns a list of Interference. The upper layer may take action
|
// Returns a list of possible interferences. The upper layer may take action
|
||||||
// based on the interference.
|
// based on the interference.
|
||||||
Detect() ([]*info.Interference, error)
|
Detect() ([]*info.Interference, error)
|
||||||
|
|
@ -18,17 +18,17 @@ package info
|
|||||||
// container, antagonist, interferes the performance of other
|
// container, antagonist, interferes the performance of other
|
||||||
// containers, victims.
|
// containers, victims.
|
||||||
type Interference struct {
|
type Interference struct {
|
||||||
// The absolute path of the antagnoism container name. This field
|
// Absolute name of the antagonist container name. This field
|
||||||
// should not be empty.
|
// should not be empty.
|
||||||
Antagonist string `json:"antagonist"`
|
Antagonist string `json:"antagonist"`
|
||||||
|
|
||||||
// The absolute path of victims. This field should not be empty.
|
// The absolute path of the victims. This field should not be empty.
|
||||||
Victims []string `json:"victims"`
|
Victims []string `json:"victims"`
|
||||||
|
|
||||||
// The name of the detector used to detect this antagonism. This field
|
// The name of the detector used to detect this antagonism. This field
|
||||||
// should not be empty
|
// should not be empty
|
||||||
Detector string `json:"detector"`
|
Detector string `json:"detector"`
|
||||||
|
|
||||||
// Human readable description of the interference
|
// Human readable description of this interference
|
||||||
Description string `json:"description,omitempty"`
|
Description string `json:"description,omitempty"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user