Documentation ¶
Index ¶
- func BuildUserAgent(version, revision string) string
- type CPUGenerator
- type CloudHostname
- type Generator
- type Manager
- func (m *Manager) Get(ctx context.Context) (*mackerel.CreateHostParam, error)
- func (m *Manager) Run(ctx context.Context, initialInterval, interval time.Duration) error
- func (m *Manager) SetChecks(checks []mackerel.CheckConfig)
- func (m *Manager) SetHostID(hostID string)
- func (m *Manager) WithCustomIdentifier(customIdentifier string) *Manager
- func (m *Manager) WithVersion(version, revision string) *Manager
- type MockGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildUserAgent ¶
BuildUserAgent creates User-Agent, also used in agent-name of host's meta
Types ¶
type CloudHostname ¶
CloudHostname has mackerel.Cloud and host name
type Generator ¶
Generator interface generates spec information
func NewMockGenerator ¶
NewMockGenerator creates a new mock spec generator
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager in spec manager
func NewManager ¶
NewManager creates spec manager instanace
func (*Manager) SetChecks ¶
func (m *Manager) SetChecks(checks []mackerel.CheckConfig)
SetChecks sets check configs
func (*Manager) WithCustomIdentifier ¶
WithCustomIdentifier sets platform customIdentifier
func (*Manager) WithVersion ¶
WithVersion sets agent version and revision
type MockGenerator ¶
type MockGenerator struct {
// contains filtered or unexported fields
}
MockGenerator represents a mock spec generator
Click to show internal directories.
Click to hide internal directories.