ark::aws::CloudwatchLogsClient

Defined in header “ark/aws/cloudwatch_logs_client.hh”.


A wrapper around an CloudWatchLogs client allowing you to post logs events to cloudwatch.

Methods

  • CloudwatchLogsClient()
    Constructor. Initializes a new client.

  • CloudwatchLogsClient(const core::Url & endpoint)
    Constructor. Initializes a new client against the given URL. This is typically used for testing only.

  • ~CloudwatchLogsClient()
    Destructor.

  • void create_log_stream(const CreateLogStreamRequest & request)
    Create log stream must provide Log Group name and Steam name.

  • bool log_stream_exists(const QueryLogStream & request)
    Query if the log stream is already available.

  • void set_retention_policy(const SetRetentionRequest & request)
    Apply a retention policy to a Cloudwatch Log group.

  • CloudwatchPutLogResult put_log_events(const LogEvents & events)
    Post a set of LogEvents to a Cloudwatch Log Stream.

  • LogStreamResponse download_logs(const LogStreamRequest & request)
    Downloads the standard output (text) logs from CloudWatch, based on the stream and group name provided.

    Throws on most errors; will return if the stream was simply not found within the response.