fix(syncing-server): skip sending empty metrics
This commit is contained in:
parent
1493b7c478
commit
2c732ff713
1 changed files with 4 additions and 0 deletions
|
@ -34,6 +34,10 @@ const sendStatistics = async (
|
||||||
timestamp + Time.MicrosecondsInAMinute,
|
timestamp + Time.MicrosecondsInAMinute,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (statistics.sampleCount === 0) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
await cloudwatchClient.send(
|
await cloudwatchClient.send(
|
||||||
new PutMetricDataCommand({
|
new PutMetricDataCommand({
|
||||||
Namespace: 'SyncingServer',
|
Namespace: 'SyncingServer',
|
||||||
|
|
Loading…
Reference in a new issue