MetricsPublisher

public protocol MetricsPublisher

Protocol for classes that can publish or store metrics payload

  • Allows to publish metrics to external source

    Declaration

    Swift

    func publish(_ payload: MetricsRoot, _ handler: @escaping (AgsHttpResponse?) -> Void)

    Parameters

    payload

    metrics payload containing all data to be sent

    handler

    closure called when publish operation finished