class MetricNotificationService implements NotificationService {

    @Override
    public boolean notify(Notification notification) {
        // Convert details to flat array
        List<String> attributesList = new ArrayList<>();
        notification.getDetails().forEach((k, v) -> {
            attributesList.add(k);
            attributesList.add(v);
        });

        // add notification type
        attributesList.add("notif_type");
        attributesList.add(notification.getType());

        // Increment metric
        metric.increment("athenz_notification", attributesList.toArray(new String[0]));
        return true;
    }

    public  MetricNotificationService(Metric metric);

}