Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConnectionState ¶
type ConnectionState int
ConnectionState used for constants
const ( //Disconnected constant state 0 Disconnected ConnectionState = iota //Connecting constant state 1 Connecting //Connected constant state 2 Connected )
type OPCData ¶
type OPCData struct { TagName string Value interface{} Quality ua.StatusCode TimeStamp string Time string DataType ua.TypeID }
OPCData type
type OPCTag ¶
type OPCTag struct { Name string `toml:"name"` Namespace string `toml:"namespace"` IdentifierType string `toml:"identifier_type"` Identifier string `toml:"identifier"` DataType string `toml:"data_type"` Description string `toml:"description"` }
OPCTag type
type OpcUA ¶
type OpcUA struct { Name string `toml:"name"` Endpoint string `toml:"endpoint"` SecurityPolicy string `toml:"security_policy"` SecurityMode string `toml:"security_mode"` Certificate string `toml:"certificate"` PrivateKey string `toml:"private_key"` Username string `toml:"username"` Password string `toml:"password"` AuthMethod string `toml:"auth_method"` ConnectTimeout config.Duration `toml:"connect_timeout"` RequestTimeout config.Duration `toml:"request_timeout"` NodeList []OPCTag `toml:"nodes"` Nodes []string `toml:"-"` NodeData []OPCData `toml:"-"` NodeIDs []*ua.NodeID `toml:"-"` NodeIDerror []error `toml:"-"` // status ReadSuccess int `toml:"-"` ReadError int `toml:"-"` NumberOfTags int `toml:"-"` // contains filtered or unexported fields }
OpcUA type
func (*OpcUA) Description ¶
Description will appear directly above the plugin definition in the config file
func (*OpcUA) Gather ¶
func (o *OpcUA) Gather(acc telegraf.Accumulator) error
Gather defines what data the plugin will gather.
func (*OpcUA) SampleConfig ¶
SampleConfig will populate the sample configuration portion of the plugin's configuration
Click to show internal directories.
Click to hide internal directories.