Learn R Programming

lgrExtra (version 0.1.1)

AppenderDynatrace: Log to Dynatrace via HTTP

Description

Log to Dynatrace via the Dynatrace log ingestion API.

Arguments

Value

The $new() method returns an R6::R6 that inherits from lgr::Appender and can be uses as an appender by a lgr::Logger.

Super classes

lgr::Filterable -> lgr::Appender -> lgr::AppenderMemory -> AppenderDynatrace

Active bindings

url

a string url

api_key

a string api_key. Also referred to as "Api Token"

Methods

Inherited methods


Method new()

Usage

AppenderDynatrace$new(
  url,
  api_key,
  threshold = NA_integer_,
  layout = LayoutDynatrace$new(),
  buffer_size = 0,
  flush_threshold = "error",
  flush_on_exit = TRUE,
  flush_on_rotate = TRUE,
  should_flush = NULL,
  filters = NULL
)

Arguments

url

see section Fields

threshold, flush_threshold, layout, buffer_size

see lgr::AppenderBuffer


Method set_url()

Usage

AppenderDynatrace$set_url(url)


Method set_api_key()

Usage

AppenderDynatrace$set_api_key(api_key)


Method get_data()

Get log as data.frame: Not supported for dynatrace

Usage

AppenderDynatrace$get_data(n = 20L, threshold = NA, result_type = "data.frame")


Method show()

Show log in console: Not supported for dynatrace

Usage

AppenderDynatrace$show(threshold = NA_integer_, n = 20)


Method flush()

Usage

AppenderDynatrace$flush()

See Also

https://docs.dynatrace.com/docs/analyze-explore-automate/logs/lma-log-ingestion/lma-log-ingestion-via-api

Other Appenders: AppenderAWSCloudWatchLog, AppenderDbi, AppenderDt, AppenderElasticSearch, AppenderGmail, AppenderPool, AppenderPushbullet, AppenderSendmail, AppenderSyslog