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

net.nemerosa.ontrack.kdsl.spec.extension.notifications.InMemoryMgt.kt Maven / Gradle / Ivy

There is a newer version: 4.4.5
Show newest version
package net.nemerosa.ontrack.kdsl.spec.extension.notifications

import net.nemerosa.ontrack.kdsl.connector.Connected
import net.nemerosa.ontrack.kdsl.connector.Connector

/**
 * Management interface for the in-memory notification channel.
 */
class InMemoryMgt(connector: Connector) : Connected(connector) {

    /**
     * Gets the list of messages for a given group
     */
    fun group(group: String): List = connector.get("/extension/notifications/in-memory/group/$group")
        .body.asJson().map { it.asText() }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy