This commit is contained in:
Nan Monnand Deng 2014-06-20 18:22:43 -04:00
parent 619ae2ea1a
commit a71fdd4645
2 changed files with 7 additions and 7 deletions

View File

@ -17,13 +17,13 @@ package inference
import "github.com/google/cadvisor/info"
// InterferenceDectector detects if there's a container which
// interference with a set of container. The detector monitors
// a set of container and find the victims and antagnist.
// interferences with a set of containers. The detector tracks
// a set of containers and find the victims and antagonist.
type InterferenceDetector interface {
// Monitor the behavior of the container.
// Tracks the behavior of the container.
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.
Detect() ([]*info.Interference, error)

View File

@ -18,17 +18,17 @@ package info
// container, antagonist, interferes the performance of other
// containers, victims.
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.
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"`
// The name of the detector used to detect this antagonism. This field
// should not be empty
Detector string `json:"detector"`
// Human readable description of the interference
// Human readable description of this interference
Description string `json:"description,omitempty"`
}