net.nemerosa.ontrack.extension.influxdb.InfluxDBExtensionUserMenuExtension.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ontrack-extension-influxdb Show documentation
Show all versions of ontrack-extension-influxdb Show documentation
Ontrack module: ontrack-extension-influxdb
package net.nemerosa.ontrack.extension.influxdb
import net.nemerosa.ontrack.extension.api.UserMenuExtension
import net.nemerosa.ontrack.extension.support.AbstractExtension
import net.nemerosa.ontrack.model.security.ApplicationManagement
import net.nemerosa.ontrack.model.security.GlobalFunction
import net.nemerosa.ontrack.model.support.Action
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
import org.springframework.stereotype.Component
@ConditionalOnProperty(prefix = INFLUXDB_EXTENSION_PROPERTIES_PREFIX,
name = ["enabled"],
havingValue = "true",
matchIfMissing = false)
@Component
class InfluxDBExtensionUserMenuExtension(extensionFeature: InfluxDBExtensionFeature) :
AbstractExtension(extensionFeature), UserMenuExtension {
override fun getGlobalFunction(): Class = ApplicationManagement::class.java
override fun getAction(): Action = Action.of(
"status",
"InfluxDB status",
"status"
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy