コード例 #1
0
ファイル: AlertJsonService.java プロジェクト: jslade/glowroot
 private static AlertConfigDto fromConfig(AlertConfig alertConfig) {
   return ImmutableAlertConfigDto.builder()
       .transactionType(alertConfig.transactionType())
       .percentile(alertConfig.percentile())
       .timePeriodMinutes(alertConfig.timePeriodMinutes())
       .thresholdMillis(alertConfig.thresholdMillis())
       .minTransactionCount(alertConfig.minTransactionCount())
       .addAllEmailAddresses(alertConfig.emailAddresses())
       .version(alertConfig.version())
       .build();
 }