Skip to content

Commit 8e7af74

Browse files
committed
Fix documentation of RequestOptions.IdType
The only valid options are "name" (default) or "docker", while "dockerid" and "dockeralias" fail with an 'unknown type' error. Reference: https://github.com/google/cadvisor/blob/20e306ab0398f00daaafeda2444b9ec157636f74/cmd/internal/api/versions.go#L531-L540
1 parent 6acde09 commit 8e7af74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

info/v2/container.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ type FsInfo struct {
263263
}
264264

265265
type RequestOptions struct {
266-
// Type of container identifier specified - "name", "dockerid", dockeralias"
266+
// Type of container identifier specified - TypeName (default) or TypeDocker
267267
IdType string `json:"type"`
268268
// Number of stats to return
269269
Count int `json:"count"`

0 commit comments

Comments
 (0)