All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.hyperfoil.tools.horreum.notification.Notification Maven / Gradle / Ivy

There is a newer version: 0.15.3
Show newest version
package io.hyperfoil.tools.horreum.notification;

import java.time.Instant;

import io.hyperfoil.tools.horreum.events.DatasetChanges;
import io.hyperfoil.tools.horreum.svc.MissingValuesEvent;

public abstract class Notification {
    protected final String username;
    protected final String data;

    protected Notification(String username, String data) {
        this.username = username;
        this.data = data;
    }

    public abstract void notifyChanges(DatasetChanges changes);

    public abstract void notifyMissingDataset(String testName, int testId, String ruleName, long maxStaleness,
            Instant lastTimestamp);

    public abstract void notifyMissingValues(String testName, String fingerprint, MissingValuesEvent missing);

    public abstract void notifyExpectedRun(String testName, int testId, long before, String expectedBy, String backlink);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy