From cbd7b644eac36750d71bd6c65349f92fec4f1402 Mon Sep 17 00:00:00 2001 From: Lowell Alleman Date: Tue, 21 Mar 2023 19:49:04 -0400 Subject: [PATCH] Allow 'BaseSearch' as root data model name --- default/data/ui/views/cim_tstats_validator.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/default/data/ui/views/cim_tstats_validator.xml b/default/data/ui/views/cim_tstats_validator.xml index dfa662d..273046c 100644 --- a/default/data/ui/views/cim_tstats_validator.xml +++ b/default/data/ui/views/cim_tstats_validator.xml @@ -1,5 +1,5 @@
- + Proof-of-concept base searches for an accelerated (tstats) CIM validation approach. For now this is more of a data browser, but could be useful as-is for just browsing accelerated models. @@ -23,7 +23,7 @@ | where type != "objectCount" and !match(owner, "^Untagged_.*") and fieldName != "_time" | eval short_name = coalesce(displayName, fieldName) | eval dm_name = case( - owner="BaseEvent" or owner="root", fieldName, + owner IN ("BaseEvent", "BaseSearch", "root"), fieldName, true(), owner . "." . fieldName) | eval stats_expr = urldecode("%0d") . " values(". dm_name .") as ". short_name | table app, dm_model, title, dm_name, short_name, groupid, owner, objectName, parentName, stats_expr @@ -34,7 +34,7 @@ TODO: Look at the 'lineage' field ``` | eval nodename = case( - parentName IN ("BaseEvent", "root"), objectName, + parentName IN ("BaseEvent", "BaseSearch", "root"), objectName, true(), "*" . parentName . "." . objectName) | eval da_search="| tstats summariesonly=t count as events, " . tstats_fields . urldecode("%0d") . "from datamodel=" . title . " where nodename=" . nodename . " by index" | fields - stats_expr tstats_fields groupid