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

net.nemerosa.ontrack.extension.influxdb.InfluxDBExtensionUserMenuExtension.kt Maven / Gradle / Ivy

There is a newer version: 4.4.5
Show newest version
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