package
2.0.0-20210917042219-c89ff57a6b74
Repository: https://github.com/flowkeeper/flowutils.git
Documentation: pkg.go.dev
# Functions
AgentosFromString returns the AgentOS iota representation of the specified string.
# Constants
HIGH should be used for items which have a high impact in availability,etc.
INFO is the lowest priority trigger.
Linux AgentOS is set on linux machines.
LOW should be used for unimportant triggers.
MEDIUM should be used for important triggers.
Numeric is set if the check returns a number.
Offline is set if the OnlineDetection fails.
Online is set if the OnlineDetection succeeds.
Text is set if the check returns text.
Unsupported AgentOS is set if an agent with an unknown OS is registered / loaded.
Windows AgentOS is set on windows machines.
# Variables
ErrNoResults is returned if a ResultSet has no / not enough values.
ErrWrongItemType is returned if numeric functions are used on text items or vice versa.
# Structs
Agent defines the layout of a generic agent stored in the database.
Item specifies the layout of a generic item stored in the database.
Result stores a single result from a item.
ResultSet stores a collection of results.
Template specifies the layout of a generic template stored in the database.
Trigger specifies the layout of a generic trigger stored in the database.
TriggerAssignment is used to map a trigger (specified via the TriggerID) to an agentTriggerAssignments are automatically created by the dbtemplate package upon retrieving an agent.
TriggerHistoryEntry is used to store when a trigger became problematic / unproblematic for a given TriggerAssignment / TriggerMapping.
# Type aliases
AgentOS defines on which OS the agent ist running.
AgentState defines if the agent is regarded online by the assigned leader.
ReturnType defines which type of information is returned by the check.
TriggerSeverity defines how important a item trigger is.