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"?> <?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>

View File

@ -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(