Trait/Object

com.gilt.gfc.aws.cloudwatch

CloudWatchMetricsClient

Related Docs: object CloudWatchMetricsClient | package cloudwatch

Permalink

trait CloudWatchMetricsClient extends AnyRef

Push selected metrics to AWS CloudWatch. Some are meant to be 'system health' metrics, like our Future-based RPC call times. Some are meant to be 'business' metrics, like number of logins.

Trait exists mainly to make it possible to inject this as a dependency.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CloudWatchMetricsClient
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def enterNamespace(n: String): CloudWatchMetricsClient

    Permalink

    Event namespace in CloudWatch will be a concatenation of all of these.

    Event namespace in CloudWatch will be a concatenation of all of these. Every time you enter a namespace it'll get appended to the current one, e.g. "a / b / c".

  2. abstract def putMetricData[A](a: A)(implicit tcwmdEv: ToCloudWatchMetricsData[A]): Unit

    Permalink

    Requests metric data to be sent asynchronously.

    Requests metric data to be sent asynchronously. It will block only to schedule async tasks, shouldn't be noticeable under low contention. HTTP service calls are asynchronous.

    http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_PutMetricData.html

    A

    type of the object we convert to metrics data

    a

    object to send metrics data for

    tcwmdEv

    evidence that ToCloudWatchMetricsData implementation exists for type A

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. def putAsynchronousExceptionMetricData[A, R](t2a: (Throwable) ⇒ A)(run: ⇒ Future[R])(implicit tcwmdEv: ToCloudWatchMetricsData[A]): Future[R]

    Permalink

    Brackets a block of asynchronous code (Future result) and puts a given metric if an exception occurs either synchronously or wrapped in the result of the Future.

    Brackets a block of asynchronous code (Future result) and puts a given metric if an exception occurs either synchronously or wrapped in the result of the Future.

    A

    type of metric

    R

    type of result

    t2a

    construct metric from throwable (e.g. you may want to report different exceptions differently)

    run

    block of code to run

    tcwmdEv

    evidence that ToCloudWatchMetricsData implementation exists for type A

    returns

    result of the execution of the given closure

  16. def putExceptionMetricData[A, R](t2a: (Throwable) ⇒ A)(run: ⇒ R)(implicit tcwmdEv: ToCloudWatchMetricsData[A]): R

    Permalink

    Brackets a block of code and puts a given metric if an exception occurs.

    Brackets a block of code and puts a given metric if an exception occurs.

    A

    type of metric

    R

    type of result

    t2a

    construct metric from throwable (e.g. you may want to report different exceptions differently)

    run

    block of code to run

    tcwmdEv

    evidence that ToCloudWatchMetricsData implementation exists for type A

    returns

    result of the execution of the given closure

  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  18. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. def withNamespace[R](n: String)(run: (CloudWatchMetricsClient) ⇒ R): R

    Permalink

    Run a closure with a namespaced CW metrics client, just a convenience function.

    Run a closure with a namespaced CW metrics client, just a convenience function.

    R

    closure result type

    n

    namespace to enter

    run

    closure to run

    returns

    closure result

Inherited from AnyRef

Inherited from Any

Ungrouped