Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Duration ¶
Duration is duration, which must be used in Prometheus-compatible yaml configs.
func NewDuration ¶
NewDuration returns Duration for given d.
func (Duration) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler interface.
func (*Duration) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.