Method ReportValues
ReportValues<T>(T[])
Report the values for this AsyncMetric. Calling this method will transition IsPending to false. ReportValues may only be called once per AsyncMetric.
Declaration
public void ReportValues<T>(T[] values)
Parameters
| Type | Name | Description |
|---|---|---|
| T[] | values | The values to report for the metric. These values will be converted to json. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the values |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if values is null |
ReportValues(string)
Report the values for this AsyncMetric. Calling this method will transition IsPending to false. ReportValues may only be called once per AsyncMetric.
Declaration
public void ReportValues(string valuesJsonArray)
Parameters
| Type | Name | Description |
|---|---|---|
| string | valuesJsonArray | A JSON array in string form. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if values is null |