Similar to lgr::LayoutJson, but with some modifications to prepare data for Dynatrace.

Value

The $new() method returns an R6::R6 that inherits from lgr::Layout and can used as a Layout by an lgr::Appender.

See also

Super class

lgr::Layout -> LayoutDynatrace

Active bindings

toJSON_args

a list of values passed on to jsonlite::toJSON()

transform_event

a function with a single argument event that takes a lgr::LogEvent and returns a list.

Methods

Inherited methods


Method new()

Usage

LayoutDynatrace$new(
  toJSON_args = list(auto_unbox = TRUE),
  transform_event = transform_event_dynatrace
)


Method format_event()

Usage

LayoutDynatrace$format_event(event)


Method set_toJSON_args()

Usage

LayoutDynatrace$set_toJSON_args(x)


Method set_transform_event()

Usage

LayoutDynatrace$set_transform_event(x)


Method clone()

The objects of this class are cloneable with this method.

Usage

LayoutDynatrace$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.