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"?>
|
||||
<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>
|
@ -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(
|
||||
|
Reference in New Issue
Block a user