Skip to contents

Log to Dynatrace via the Dynatrace log ingestion API.

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 = DynatraceLayout,
  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()