diff --git a/definitions/ext-rf_scanner/definition.yml b/definitions/ext-rf_scanner/definition.yml index 055ef5947..f58e7a64b 100644 --- a/definitions/ext-rf_scanner/definition.yml +++ b/definitions/ext-rf_scanner/definition.yml @@ -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. @@ -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: diff --git a/definitions/ext-rf_scanner/summary_metrics.yml b/definitions/ext-rf_scanner/summary_metrics.yml index a73bd8d9f..7fb8c88e8 100644 --- a/definitions/ext-rf_scanner/summary_metrics.yml +++ b/definitions/ext-rf_scanner/summary_metrics.yml @@ -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