|
| | MetricsLogType () |
| | Construct the log type.
|
| | LogType (const string &name_p, const LogLevel &level_p) |
| | Construct an unstructured type.
|
| | LogType (const string &name_p, const LogLevel &level_p, LogicalType structured_type) |
| | Construct a structured type.
|
|
|
static constexpr const char * | NAME = "Metrics" |
|
static constexpr LogLevel | LEVEL = LogLevel::LOG_INFO |
|
|
string | name |
|
LogLevel | level |
|
bool | is_structured |
|
LogicalType | type |
◆ MetricsLogType()
| duckdb::MetricsLogType::MetricsLogType |
( |
| ) |
|
Construct the log type.
260834 :
LogType(NAME, LEVEL, GetLogType()) {
260835}
LogType(const string &name_p, const LogLevel &level_p)
Construct an unstructured type.
Definition duckdb.hpp:39081
◆ GetLogType()
260837 {
260838 child_list_t<LogicalType> child_list = {
260839 {"metric", LogicalType::VARCHAR},
260840 {"value", LogicalType::VARCHAR},
260841 };
260842 return LogicalType::STRUCT(child_list);
260843}
◆ ConstructLogMessage()
| string duckdb::MetricsLogType::ConstructLogMessage |
( |
const MetricType & | type, |
|
|
const Value & | value ) |
|
static |
260845 {
260846 child_list_t<Value> child_list = {
260847 {"metric", EnumUtil::ToString(metric)},
260849 };
260851}
DUCKDB_API string ToString() const
Convert this value to a string.
Definition duckdb.cpp:133318
static DUCKDB_API Value STRUCT(child_list_t< Value > values)
Create a struct value with given list of entries.
Definition duckdb.cpp:132434
The documentation for this class was generated from the following files: