PerformanceCaptureConfig.fromJson constructor

PerformanceCaptureConfig.fromJson(
  1. Map json_
)

Implementation

PerformanceCaptureConfig.fromJson(core.Map json_)
  : this(
      cpuUtilizationThresholdPercent:
          json_['cpuUtilizationThresholdPercent'] as core.int?,
      enabled: json_['enabled'] as core.bool?,
      historyListLengthThresholdCount:
          json_['historyListLengthThresholdCount'] as core.int?,
      memoryUsageThresholdPercent:
          json_['memoryUsageThresholdPercent'] as core.int?,
      probeThreshold: json_['probeThreshold'] as core.int?,
      probingIntervalSeconds: json_['probingIntervalSeconds'] as core.int?,
      runningThreadsThreshold: json_['runningThreadsThreshold'] as core.int?,
      secondsBehindSourceThreshold:
          json_['secondsBehindSourceThreshold'] as core.int?,
      semaphoreWaitThresholdCount:
          json_['semaphoreWaitThresholdCount'] as core.int?,
      transactionDurationThreshold:
          json_['transactionDurationThreshold'] as core.int?,
      transactionKillExcludedUserHosts:
          (json_['transactionKillExcludedUserHosts'] as core.List?)
              ?.map((value) => value as core.String)
              .toList(),
      transactionKillThresholdSeconds:
          json_['transactionKillThresholdSeconds'] as core.int?,
      transactionKillType: json_['transactionKillType'] as core.String?,
      transactionLockWaitThresholdCount:
          json_['transactionLockWaitThresholdCount'] as core.int?,
    );