Method ReportMetric
ReportMetric<T>(MetricDefinition, T[])
Report a metric not associated with any sensor or annotation.
Declaration
public static void ReportMetric<T>(MetricDefinition metricDefinition, T[] values)
Parameters
Type | Name | Description |
---|---|---|
MetricDefinition | metricDefinition | The MetricDefinition associated with this metric. RegisterMetricDefinition(string, string, Guid) |
T[] | values | An array to be converted to json and put in the "values" field of the metric |
Type Parameters
Name | Description |
---|---|
T | The type of the values array |
ReportMetric(MetricDefinition, string)
Report a metric not associated with any sensor or annotation.
Declaration
public static void ReportMetric(MetricDefinition metricDefinition, string valuesJsonArray)
Parameters
Type | Name | Description |
---|---|---|
MetricDefinition | metricDefinition | The MetricDefinition associated with this metric. RegisterMetricDefinition(string, string, Guid) |
string | valuesJsonArray | A string-based JSON array to be placed in the "values" field of the metric |