mirror of
https://github.com/mii443/prometheus-android-exporter.git
synced 2025-08-22 15:15:35 +00:00
add default values for configuration file
This commit is contained in:
12
client/.idea/deploymentTargetDropDown.xml
generated
12
client/.idea/deploymentTargetDropDown.xml
generated
@ -1,17 +1,17 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="deploymentTargetDropDown">
|
<component name="deploymentTargetDropDown">
|
||||||
<runningDeviceTargetSelectedWithDropDown>
|
<targetSelectedWithDropDown>
|
||||||
<Target>
|
<Target>
|
||||||
<type value="RUNNING_DEVICE_TARGET" />
|
<type value="QUICK_BOOT_TARGET" />
|
||||||
<deviceKey>
|
<deviceKey>
|
||||||
<Key>
|
<Key>
|
||||||
<type value="SERIAL_NUMBER" />
|
<type value="VIRTUAL_DEVICE_PATH" />
|
||||||
<value value="LGH8702b43aa49" />
|
<value value="$USER_HOME$/.android/avd/new_device.avd" />
|
||||||
</Key>
|
</Key>
|
||||||
</deviceKey>
|
</deviceKey>
|
||||||
</Target>
|
</Target>
|
||||||
</runningDeviceTargetSelectedWithDropDown>
|
</targetSelectedWithDropDown>
|
||||||
<timeTargetWasSelectedWithDropDown value="2023-07-25T09:59:23.293322749Z" />
|
<timeTargetWasSelectedWithDropDown value="2023-07-25T10:44:56.638251709Z" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
@ -21,9 +21,9 @@ private const val defaultRemoteWriteExportInterval: Int = 120 // seconds
|
|||||||
// serialization classes for parsing YAML configuration file
|
// serialization classes for parsing YAML configuration file
|
||||||
@Serializable
|
@Serializable
|
||||||
data class PromConfigFile(
|
data class PromConfigFile(
|
||||||
val prometheus_server: PromServerConfigFile?,
|
val prometheus_server: PromServerConfigFile? = null,
|
||||||
val pushprox: PushProxConfigFile?,
|
val pushprox: PushProxConfigFile? = null,
|
||||||
val remote_write: RemoteWriteConfigFile?,
|
val remote_write: RemoteWriteConfigFile? = null,
|
||||||
) {
|
) {
|
||||||
fun toPromConfiguration(): PromConfiguration {
|
fun toPromConfiguration(): PromConfiguration {
|
||||||
return PromConfiguration(
|
return PromConfiguration(
|
||||||
|
Reference in New Issue
Block a user