public class WindowsPerfmonInput extends Input
WindowsPerfmonInput
class represents a Windows Performance
Monitor (Perfmon) data input.Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getCounters()
Returns a list of monitored counters for this Windows Perfmon input.
|
java.lang.String |
getIndex()
Returns the index name of this Windows Perfmon input.
|
java.lang.String[] |
getInstances()
Returns the counter instances of this Windows Perfmon input.
|
int |
getInterval()
Returns the interval at which to poll the performance counters for this
Windows Perfmon input.
|
InputKind |
getKind()
Returns the input kind of this input.
|
java.lang.String |
getObject()
Returns the performance monitor object for this Windows
Perfmon input (for example, "Process", "Server", or "PhysicalDisk").
|
void |
setCounters(java.lang.String counter)
Sets a counter to monitor.
|
void |
setCounters(java.lang.String[] counters)
Sets the counters to monitor.
|
void |
setDisabled(boolean disabled)
Sets whether this input is enabled or disabled.
|
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 to poll the performance counters.
|
void |
setObject(java.lang.String object)
Sets the performance monitor object (for example, "Process", "Server", or
"PhysicalDisk").
|
actionPath, clear, containsKey, containsValue, disable, enable, entrySet, get, getContent, getMetadata, isDisabled, isEmpty, isNameChangeAllowed, keySet, put, putAll, refresh, remove, remove, size, update, update, validate, values
getName, getPath, getService, getTitle, getUpdated, invalidate
public java.lang.String[] getCounters()
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()
public java.lang.String getObject()
public void setCounters(java.lang.String[] counters)
counters
- An array of counters to monitor.public void setCounters(java.lang.String counter)
counter
- The counter to monitor.public void setDisabled(boolean disabled)
Entity.disable
and Entity.enable
methods instead, which
take effect immediately.disabled
- true
to disable this input, false
to
enable it.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 setObject(java.lang.String object)
object
- The performance monitor object.