Performance Counters
Query for a specified performance counter.
Privileges
Normal
Input Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| Performance Counter | String | Yes | The name of the Performance Counter. |
| Sample Interval | Number | Yes | Query for Performance Counter in milliseconds. |
| Max Sample | Number | Yes | The maximum number of queries for the Performance Counter. |
Output Parameters
| Name | Type | Description |
|---|---|---|
| Result | Number | Returns a success value of zero or any value other than zero to indicate failure. |
Example Input Parameters
| Name | Type | Required | Example |
|---|---|---|---|
|
Performance Counter |
String |
Yes |
\Event Tracing for Windows\Total Memory Usage --- Non-Paged Pool \Processor Information(_Total)\Processor State Flags \Per Processor Network Activity Cycles(_Total)\Stack Send Complete Cycles/sec To retrieve list of Performance Counters, open PowerShell Console and type Get-Counter -ListSet * |
|
Sample Interval |
Number |
Yes |
5 |
|
Max Sample |
Number |
Yes |
5 |
