def get()

in app/metrics/CloudWatch.scala [107:118]


  def get(namespace: String, metricName: String)(implicit
      executionContext: ExecutionContext
  ): Attempt[Option[List[(DateTime, Double)]]] = {
    Attempt.fromFuture(
      getWithRequest(getRequest(namespace, metricName)).map(ds =>
        Right(Option(ds))
      )
    ) { case e =>
      logger.warn("Failed to fetch CloudWatch data", e)
      Right(None)
    }
  }