Trait/Object

com.gilt.gfc.aws.cloudwatch

CloudWatchLogsClient

Related Docs: object CloudWatchLogsClient | package cloudwatch

Permalink

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
Visibility
  1. Public
  2. All

Abstract Value Members

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

    Permalink

    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

    Permalink

    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: 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 putAsynchronousExceptionLogData[A, R](logName: String, t2a: (Throwable) ⇒ A)(run: ⇒ Future[R])(implicit tcwmdEv: ToCloudWatchLogsData[A], nstp: NextSequenceTokenPersistor): Future[R]

    Permalink

    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

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

    Permalink

    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

  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: (CloudWatchLogsClient) ⇒ R): R

    Permalink

    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