Modifier and Type | Method and Description |
---|---|
String |
getClasses()
Returns the WMI class name of this WMI input.
|
String[] |
getFields()
Returns the properties (fields) collected for this class for this WMI
input.
|
String |
getIndex()
Returns the index name of this WMI input.
|
String[] |
getInstances()
Returns a list of the WMI class instances for this WMI input.
|
int |
getInterval()
Returns the interval at which WMI input providers are queried for this
WMI input.
|
InputKind |
getKind()
Returns the input kind of this input.
|
String |
getLocalName()
Returns the collection name for this WMI input.
|
String |
getLookupHost()
Returns the main server for this WMI input.
|
String |
getServers()
Returns a list of secondary servers used for monitoring.
|
String |
getWql()
Returns the query string for this WMI input.
|
void |
setClasses(String classes)
Sets the WMI class name.
|
void |
setDisabled(boolean disabled)
Sets whether this input is enabled or disabled.
|
void |
setFields(String field)
Sets a property (field) that you want to gather from the given
class.
|
void |
setFields(String[] fields)
Sets the properties (fields) that you want to gather from the given
class.
|
void |
setIndex(String index)
Sets the index in which to store all generated events.
|
void |
setInstances(String instance)
Sets a counter instance to monitor.
|
void |
setInstances(String[] instances)
Sets the counter instances to monitor.
|
void |
setInterval(int interval)
Sets the frequency at which the WMI providers are queried.
|
void |
setLookupHost(String lookup_host)
Sets the main server from which to monitor log events.
|
void |
setServers(String servers)
Sets secondary servers that you want to gather data from.
|
void |
update()
Updates the entity with the accumulated arguments, established by the
individual setter methods for each specific entity class.
|
void |
update(Map<String,Object> args)
Updates the entity with the values you previously set using the setter
methods, and any additional specified arguments.
|
actionPath, clear, containsKey, containsValue, disable, enable, entrySet, get, getContent, getMetadata, isDisabled, isEmpty, isNameChangeAllowed, keySet, put, putAll, refresh, remove, remove, size, validate, values
getName, getPath, getService, getTitle, getUpdated, invalidate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getClasses()
public String[] getFields()
null
if not specified.public String getIndex()
null
if not specified.public String[] getInstances()
null
if not
specified.public int getInterval()
public InputKind getKind()
public String getLookupHost()
getServers
method.getServers()
public String getLocalName()
public String getServers()
getLookupHost
method.null
if not specified.getLookupHost()
public String getWql()
public void setClasses(String classes)
classes
- A valid WMI class name.public void setDisabled(boolean disabled)
Note: Using this method requires you to restart Splunk before this
setting takes effect. To avoid restarting Splunk, use the
Entity.disable
and Entity.enable
methods instead, which
take effect immediately.
disabled
- true
to disable this input, false
to
enable it.public void setFields(String[] fields)
fields
- An array of properties (fields) to gather.public void setFields(String field)
field
- A property (field) to gather.public void setIndex(String index)
index
- The index name.public void setInstances(String[] instances)
instances
- The counter instances to monitor.public void setInstances(String instance)
instance
- A counter instance to monitor.public void setInterval(int interval)
interval
- The polling frequency, in seconds.public void setLookupHost(String lookup_host)
setServers
method.lookup_host
- The main server.setServers(java.lang.String)
public void setServers(String servers)
setLookupHost
method.servers
- A comma-separated list of additional servers.setLookupHost(java.lang.String)
public void update(Map<String,Object> args)
Copyright © 2022 Splunk, Inc.. All rights reserved.