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 GroupSettings ¶ added in v1.17.0
type GroupSettings struct {
MetricName string `toml:"name"` // Overrides plugin's setting
Namespace string `toml:"namespace"` // Can be overridden by node setting
IdentifierType string `toml:"identifier_type"` // Can be overridden by node setting
Nodes []NodeSettings `toml:"nodes"`
TagsSlice [][]string `toml:"tags"`
}
type NodeSettings ¶ added in v1.17.0
type NodeSettings struct {
FieldName string `toml:"name"`
Namespace string `toml:"namespace"`
IdentifierType string `toml:"identifier_type"`
Identifier string `toml:"identifier"`
DataType string `toml:"data_type"` // Kept for backward compatibility but was never used.
Description string `toml:"description"` // Kept for backward compatibility but was never used.
TagsSlice [][]string `toml:"tags"`
}
OPCTag type
type OPCData ¶
type OPCData struct {
TagName string
Value interface{}
Quality ua.StatusCode
TimeStamp string
Time string
DataType ua.TypeID
}
OPCData type
type OpcUA ¶
type OpcUA struct {
MetricName 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"`
RootNodes []NodeSettings `toml:"nodes"`
Groups []GroupSettings `toml:"group"`
Log telegraf.Logger `toml:"-"`
// status
ReadSuccess selfstat.Stat `toml:"-"`
ReadError selfstat.Stat `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.