Skip to content

Commit

Permalink
Allow 'BaseSearch' as root data model name
Browse files Browse the repository at this point in the history
  • Loading branch information
lowell80 committed Mar 21, 2023
1 parent 173370b commit cbd7b64
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions default/data/ui/views/cim_tstats_validator.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<form version="1.1">
<label>Data Model TSTATS Review (Beta)</label>
<label>Data Model TSTATS Review</label>
<!-- This isn't ready for prime-time, hence it hasn't been added to the navigation -->
<description>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.</description>
<search id="magic">
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit cbd7b64

Please sign in to comment.