toJson method

Map<String, dynamic> toJson()

Converts this configuration to a JSON map.

Implementation

Map<String, dynamic> toJson() => {
  'enabled': enabled,
  'collectionIntervalSeconds': collectionIntervalSeconds,
  'collectSystemMetrics': collectSystemMetrics,
  'collectNetworkMetrics': collectNetworkMetrics,
  'collectStorageMetrics': collectStorageMetrics,
  'enablePrometheusExport': enablePrometheusExport,
  'prometheusEndpoint': prometheusEndpoint,
};