|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.splunk.Resource com.splunk.Entity com.splunk.Input com.splunk.WindowsWmiInput
public class WindowsWmiInput
The WindowsWmiInput
class represents a Windows Management
Instrumentation (WMI) data input.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Method Summary | |
---|---|
java.lang.String |
getClasses()
Returns the WMI class name of this WMI input. |
java.lang.String[] |
getFields()
Returns the properties (fields) collected for this class for this WMI input. |
java.lang.String |
getIndex()
Returns the index name of this WMI input. |
java.lang.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. |
java.lang.String |
getLocalName()
Returns the collection name for this WMI input. |
java.lang.String |
getLookupHost()
Returns the main server for this WMI input. |
java.lang.String |
getServers()
Returns a list of secondary servers used for monitoring. |
java.lang.String |
getWql()
Returns the query string for this WMI input. |
void |
setClasses(java.lang.String classes)
Sets the WMI class name. |
void |
setDisabled(boolean disabled)
Sets whether this input is enabled or disabled. |
void |
setFields(java.lang.String field)
Sets a property (field) that you want to gather from the given class. |
void |
setFields(java.lang.String[] fields)
Sets the properties (fields) that you want to gather from the given class. |
void |
setIndex(java.lang.String index)
Sets the index in which to store all generated events. |
void |
setInstances(java.lang.String instance)
Sets a counter instance to monitor. |
void |
setInstances(java.lang.String[] instances)
Sets the counter instances to monitor. |
void |
setInterval(int interval)
Sets the frequency at which the WMI providers are queried. |
void |
setLookupHost(java.lang.String lookup_host)
Sets the main server from which to monitor log events. |
void |
setServers(java.lang.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(java.util.Map<java.lang.String,java.lang.Object> args)
Updates the entity with the values you previously set using the setter methods, and any additional specified arguments. |
Methods inherited from class com.splunk.Entity |
---|
clear, containsKey, containsValue, disable, enable, entrySet, get, getMetadata, isDisabled, isEmpty, keySet, put, putAll, refresh, remove, remove, size, validate, values |
Methods inherited from class com.splunk.Resource |
---|
getName, getPath, getService, getTitle, invalidate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Method Detail |
---|
public java.lang.String getClasses()
public java.lang.String[] getFields()
null
if not specified.public java.lang.String getIndex()
null
if not specified.public java.lang.String[] getInstances()
null
if not
specified.public int getInterval()
public InputKind getKind()
getKind
in class Input
public java.lang.String getLookupHost()
getServers
method.
getServers()
public java.lang.String getLocalName()
public java.lang.String getServers()
getLookupHost
method.
null
if not specified.getLookupHost()
public java.lang.String getWql()
public void setClasses(java.lang.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(java.lang.String[] fields)
fields
- An array of properties (fields) to gather.public void setFields(java.lang.String field)
field
- A property (field) to gather.public void setIndex(java.lang.String index)
index
- The index name.public void setInstances(java.lang.String[] instances)
instances
- The counter instances to monitor.public void setInstances(java.lang.String instance)
instance
- A counter instance to monitor.public void setInterval(int interval)
interval
- The polling frequency, in seconds.public void setLookupHost(java.lang.String lookup_host)
setServers
method.
lookup_host
- The main server.setServers(java.lang.String)
public void setServers(java.lang.String servers)
setLookupHost
method.
servers
- A comma-separated list of additional servers.setLookupHost(java.lang.String)
public void update(java.util.Map<java.lang.String,java.lang.Object> args)
update
in class Entity
args
- The arguments to update.public void update()
update
in class Entity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |