Nothing
tm1_get_log <- function(tm1_connection, lognumber=5) {
tm1_auth_key <- tm1_connection$key
tm1_base_url <- tm1_connection$base_url
u6 <- "api/v1/MessageLogEntries?$orderby=ID%20desc&$top="
u7 <- toString(lognumber)
u8 <- "&$select=Level,TimeStamp,Message"
# url development
url <- paste0(tm1_base_url, u6, u7, u8)
#url = "https://localhost:8881/api/v1/MessageLogEntries?$orderby=ID desc&$top=5&$select=Level,TimeStamp,Message"
# post request
tm1_log_return <-
httr::GET(url,
httr::add_headers("Authorization" = tm1_auth_key))
# make it proper
tm1_log <- jsonlite::fromJSON(httr::content(tm1_log_return, "text"))$value
#change to data frame
tm1_log <- as.data.frame(as.matrix(tm1_log))
#delete 1st column
tm1_log <- tm1_log[,-c(1) ]
#return
return(tm1_log)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.