Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildMetricsLogger ¶
func BuildMetricsLogger(conf []MetricsLoggerConfig) ([]*metrics.FileWriter, error)
BuildMetricsLogger builds metrics.FileWriter with the given MetricsLoggerConfig. Returns error if the config is invalid or failed to create a FileWriter.
Types ¶
type Config ¶
type Config struct { LogLevel string Tick int StartClock string MetricsTick int MetricsLogger []MetricsLoggerConfig Cluster []NodeConfig }
Config represents a user-specified simulator config.
type MetricsLoggerConfig ¶
type NodeConfig ¶
type NodeConfig struct { Metadata metav1.ObjectMeta Spec v1.NodeSpec Status NodeStatus }
type NodeStatus ¶
type NodeStatus struct {
Allocatable map[v1.ResourceName]string
}
Click to show internal directories.
Click to hide internal directories.