Methods
(async) _exportAsync(resourceMetrics)
Asnyc wrapper for the export implementation. Writes the current values of all exported MetricRecords to the Google Cloud Monitoring backend.
Parameters:
| Name | Type | Description |
|---|---|---|
resourceMetrics |
Metrics to be sent to the Google Cloud Monitoring backend |
_partitionList()
Returns the minimum number of arrays of max size chunkSize, partitioned from the given array.
export(metrics, resultCallback)
Implementation for PushMetricExporter.export. Calls the async wrapper method _exportAsync and assures no rejected promises bubble up to the caller.
Parameters:
| Name | Type | Description |
|---|---|---|
metrics |
Metrics to be sent to the Google Cloud 3Monitoring backend |
|
resultCallback |
result callback to be called on finish |