net.nemerosa.ontrack.kdsl.spec.extension.notifications.InMemoryMgt.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ontrack-kdsl Show documentation
Show all versions of ontrack-kdsl Show documentation
Ontrack module: ontrack-kdsl
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