Method: addDataSamples
Add multiple data samples to the reporting table.
Parameters
Name | Type | Description |
---|---|---|
ds | 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 |
numFailures | int | Number of operation failures |
partialFailure | boolean | True if the operation did not complete |
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 12.34.