def logAsMetric[T]()

in hq/app/logging/Cloudwatch.scala [46:53]


  def logAsMetric[T](data: Map[AwsAccount, Either[FailedAttempt, List[T]]], dataType: DataType.Value ) : Unit = {
    data.toSeq.foreach {
      case (account: AwsAccount, Right(details: List[T])) =>
        putAwsMetric(account, dataType, details.length)
      case (account: AwsAccount, Left(_)) =>
        logger.error(s"Attempt to log cloudwatch metric failed. Data of type ${dataType} is missing for account ${account.name}.")
    }
  }