add default values for configuration file

This commit is contained in:
Martin Ptáček
2023-07-25 13:26:52 +02:00
parent 7f24e2a6db
commit 040c0643e2
2 changed files with 9 additions and 9 deletions

View File

@ -1,17 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="deploymentTargetDropDown">
<runningDeviceTargetSelectedWithDropDown>
<targetSelectedWithDropDown>
<Target>
<type value="RUNNING_DEVICE_TARGET" />
<type value="QUICK_BOOT_TARGET" />
<deviceKey>
<Key>
<type value="SERIAL_NUMBER" />
<value value="LGH8702b43aa49" />
<type value="VIRTUAL_DEVICE_PATH" />
<value value="$USER_HOME$/.android/avd/new_device.avd" />
</Key>
</deviceKey>
</Target>
</runningDeviceTargetSelectedWithDropDown>
<timeTargetWasSelectedWithDropDown value="2023-07-25T09:59:23.293322749Z" />
</targetSelectedWithDropDown>
<timeTargetWasSelectedWithDropDown value="2023-07-25T10:44:56.638251709Z" />
</component>
</project>

View File

@ -21,9 +21,9 @@ private const val defaultRemoteWriteExportInterval: Int = 120 // seconds
// serialization classes for parsing YAML configuration file
@Serializable
data class PromConfigFile(
val prometheus_server: PromServerConfigFile?,
val pushprox: PushProxConfigFile?,
val remote_write: RemoteWriteConfigFile?,
val prometheus_server: PromServerConfigFile? = null,
val pushprox: PushProxConfigFile? = null,
val remote_write: RemoteWriteConfigFile? = null,
) {
fun toPromConfiguration(): PromConfiguration {
return PromConfiguration(