in packages/pressreader/src/aws.ts [49:66]
export function sendCollectionMismatchMetric() {
try {
cloudWatchClient
.send(collectionLookupFailureCommand)
.then((a) =>
console.log(
`Collection config mismatch alarm sent: ${
a.$metadata.httpStatusCode ?? 'status code not returned'
}`,
),
)
.catch((e: unknown) =>
console.error('Failed to send collection mismatch metric', e),
);
} catch (error) {
console.error('Failed to send collection mismatch metric', error);
}
}