Method: addDataSample
Add a data sample to the reporting table.
Parameters
Name | Type | Description |
---|---|---|
newSample | DataSample | The raw statistic which contains the target name, statistic name, value, and timestamp |
Returns
Returns a RptResult with a structure defined by the following table.
Name | Type | Description |
---|---|---|
errorMessage | string | Error message in readable text |
returnCode | int | Web service error code, 0 if the operation is successful |
success | boolean | Displays True if the operation occurred successfully |
Example
This example sets the NsServerDiskUsedPercent statistic on the NetsightServer to 99.99.