
ru.tinkoff.plugins.buildmetrics.system.labels.OsLabelsFactory.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of build-metrics-system Show documentation
Show all versions of build-metrics-system Show documentation
Extension for tinkoff build metrics gradle plugin.
The newest version!
package ru.tinkoff.plugins.buildmetrics.system.labels
import ru.tinkoff.plugins.buildmetrics.api.factories.Factory
import ru.tinkoff.plugins.buildmetrics.api.labels.Label
import ru.tinkoff.plugins.buildmetrics.system.utils.SystemManufacturer
import ru.tinkoff.plugins.buildmetrics.system.utils.SystemManufacturerImpl
import ru.tinkoff.plugins.buildmetrics.utils.system.SystemProperties
import ru.tinkoff.plugins.buildmetrics.utils.system.SystemPropertiesImpl
/**
* Labels:
* - os_arch;
* - os_name;
* - os_version;
* - os_manufacturer;
*
* @throws IllegalStateException if system property not found.
*/
class OsLabelsFactory(
private val systemProperties: SystemProperties = SystemPropertiesImpl(),
private val systemManufacturer: SystemManufacturer = SystemManufacturerImpl(),
) : Factory.Labels {
override fun create(): List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy