LayoutElasticSearch | R Documentation |
Similar to lgr::LayoutJson, but with some modifications to prepare data for ElasticSearch.
The $new()
method returns an R6::R6 that inherits from
lgr::Layout and can used as a Layout by an lgr::Appender.
lgr::Layout
-> LayoutElasticSearch
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
.
new()
LayoutElasticSearch$new( toJSON_args = list(auto_unbox = TRUE), transform_event = function(event) get("values", event) )
format_event()
LayoutElasticSearch$format_event(event)
set_toJSON_args()
LayoutElasticSearch$set_toJSON_args(x)
set_transform_event()
LayoutElasticSearch$set_transform_event(x)
clone()
The objects of this class are cloneable with this method.
LayoutElasticSearch$clone(deep = FALSE)
deep
Whether to make a deep clone.
Other Layout:
LayoutDbi
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.