com.gilt.gfc.aws.cloudwatch

CloudWatchLogsClient

trait CloudWatchLogsClient extends AnyRef

Push selected logs to AWS CloudWatch Logs. Some are meant to be 'system health' logs, like our Future-based RPC call times. Some are meant to be 'business' logs, 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. CloudWatchLogsClient
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

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

    Log group in CloudWatch Logs will be a concatenation of all of these, except for the last one, which will be the stream.

    Log group in CloudWatch Logs will be a concatenation of all of these, except for the last one, which will be the stream. Every time you enter a namespace it'll get appended to the current one, e.g. "a/b/c".

  2. abstract def putLogData[A](logName: String, a: A)(implicit tcwmdEv: ToCloudWatchLogsData[A], nstp: NextSequenceTokenPersistor): Unit

    Requests log data to be sent asynchronously.

    Requests log 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/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html

    A

    type of the object we convert to logs data

    logName

    the name of the AWS CW Logs stream the log events will be written to

    a

    object to send logs data for

    tcwmdEv

    evidence that ToCloudWatchLogsData implementation exists for type A

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  17. def putAsynchronousExceptionLogData[A, R](logName: String, t2a: (Throwable) ⇒ A)(run: ⇒ Future[R])(implicit tcwmdEv: ToCloudWatchLogsData[A], nstp: NextSequenceTokenPersistor): Future[R]

    Brackets a block of asynchronous code (Future result) and puts a given log 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 log if an exception occurs either synchronously or wrapped in the result of the Future.

    A

    type of log

    R

    type of result

    logName

    the name of the AWS CW Logs stream the log events will be written to

    t2a

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

    run

    block of code to run

    tcwmdEv

    evidence that ToCloudWatchLogsData implementation exists for type A

    returns

    result of the execution of the given closure

  18. def putExceptionLogData[A, R](logName: String, t2a: (Throwable) ⇒ A)(run: ⇒ R)(implicit tcwmdEv: ToCloudWatchLogsData[A], nstp: NextSequenceTokenPersistor): R

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

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

    A

    type of log

    R

    type of result

    logName

    the name of the AWS CW Logs stream the log events will be written to

    t2a

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

    run

    block of code to run

    tcwmdEv

    evidence that ToCloudWatchLogsData implementation exists for type A

    returns

    result of the execution of the given closure

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

    Definition Classes
    AnyRef
  20. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. def withNamespace[R](n: String)(run: (CloudWatchLogsClient) ⇒ R): R

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

    Run a closure with a namespaced CW logs 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