Skip to content

Commit

Permalink
Update ext-rf_scanner definition (#208)
Browse files Browse the repository at this point in the history
* Update to RF Devices

* Add missing eventId to summary_metrics. Enable dashboard in definition.yml

* Update definitions/ext-rf_scanner/summary_metrics.yml

* Change all tags to multivalue: false

* Removed lastActiveTimestamp and Log data from summary yml

* Changed last active timestamp

* fix entityId... was entityID

* Changed condition prefix to be more generic
  • Loading branch information
65pony authored May 25, 2021
1 parent fc89339 commit 2b22900
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
6 changes: 3 additions & 3 deletions definitions/ext-rf_scanner/definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ synthesis:
# The attribute’s value must match the provided value
- attribute: eventType

prefix: "THD_RF_TRANSACTION"
prefix: "THD_RF_"


# Telemetry attributes that should be extracted into entity tags.
Expand All @@ -37,8 +37,8 @@ synthesis:
multiValue: false
distributionCenter:
multiValue: false
lastActiveTimestamp:
multiValue: false


# Template that can be used to generate a dashboard for the entity.
# If your telemetry comes from different providers you can specify a dashboard for each one of them, otherwise you can just use `newRelic`
dashboardTemplates:
Expand Down
25 changes: 14 additions & 11 deletions definitions/ext-rf_scanner/summary_metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,23 @@ volume:
query:
select: count(*)
from: THD_RF_TRANSACTION
eventId: entity.guid

errors:
title: Errors
unit: COUNT
query:
select: count(message)
from: Log
where: message like '%error%' or message like '%Error%' and message NOT LIKE '%lqqqq%' or message NOT LIKE '%Winsock error 10042%'
eventId: entity.guid
# Comment out as Log eventtype does not have a entity.guid
#errors:
# title: Errors
# unit: COUNT
# query:
# select: count(message)
# from: Log
# where: message like '%error%' or message like '%Error%' and message NOT LIKE '%lqqqq%' or message NOT LIKE '%Winsock error 10042%'
# eventId: entity.guid

lastactive:
title: Last Active Time
unit: STRING
tag:
key: lastActiveTimestamp
unit: TIMESTAMP
query:
select: latest(lastActiveTimestamp)
from: THD_RF_TRANSACTION
eventId: entity.guid

0 comments on commit 2b22900

Please sign in to comment.