Skip to content

Commit

Permalink
Update entity Roku System to Connected Device System (#1936)
Browse files Browse the repository at this point in the history
* Update entity  ROKU_SYSTEM to CONNECTED_DEVICE_SYSTEM

* fix: Rename file

---------

Co-authored-by: Otávio Carvalho <[email protected]>
  • Loading branch information
avinash-newrelic and otaviocarvalho authored Feb 21, 2025
1 parent 887f76e commit 1c200b8
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "SELECT uniqueCount(uuid) from RokuSystem TIMESERIES auto facet deviceModel"
"query": "SELECT uniqueCount(uuid) from ConnectedDeviceSystem TIMESERIES auto facet deviceModel"
}
]
}
Expand All @@ -49,7 +49,7 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM RokuSystem SELECT filter(count(*), WHERE actionName = 'HTTP_ERROR' OR httpCode >= 400) / filter(count(*), where actionName in ('HTTP_CONNECT', 'HTTP_REQUEST')) * 100 as '%'"
"query": "FROM ConnectedDeviceSystem SELECT filter(count(*), WHERE actionName = 'HTTP_ERROR' OR httpCode >= 400) / filter(count(*), where actionName in ('HTTP_CONNECT', 'HTTP_REQUEST')) * 100 as '%'"
}
],
"thresholds": []
Expand All @@ -70,7 +70,7 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM RokuSystem SELECT count(*) where actionName like 'HTTP%' facet origUrl "
"query": "FROM ConnectedDeviceSystem SELECT count(*) where actionName like 'HTTP%' facet origUrl "
}
]
}
Expand All @@ -96,7 +96,7 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM RokuSystem SELECT filter(count(*), WHERE actionName = 'HTTP_ERROR' OR httpCode >= 400) / filter(count(*), where actionName in ('HTTP_CONNECT', 'HTTP_REQUEST')) * 100 as 'HTTP Error Ratio' facet deviceModel timeseries auto"
"query": "FROM ConnectedDeviceSystem SELECT filter(count(*), WHERE actionName = 'HTTP_ERROR' OR httpCode >= 400) / filter(count(*), where actionName in ('HTTP_CONNECT', 'HTTP_REQUEST')) * 100 as 'HTTP Error Ratio' facet deviceModel timeseries auto"
}
]
}
Expand All @@ -122,7 +122,7 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "SELECT count(*) FROM RokuSystem WHERE actionName='HTTP_ERROR' or httpCode >=400 FACET httpCode SINCE 1 month ago TIMESERIES"
"query": "SELECT count(*) FROM ConnectedDeviceSystem WHERE actionName='HTTP_ERROR' or httpCode >=400 FACET httpCode SINCE 1 month ago TIMESERIES"
}
],
"yAxisLeft": {
Expand All @@ -145,7 +145,7 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM RokuSystem SELECT percentile(firstByteTime, 50), percentile(transferTime, 50) timeseries auto"
"query": "FROM ConnectedDeviceSystem SELECT percentile(firstByteTime, 50), percentile(transferTime, 50) timeseries auto"
}
]
}
Expand All @@ -165,7 +165,7 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM RokuSystem SELECT filter(count(*), WHERE actionName = 'APP_STARTED' and lastExitOrTerminationReason IN ('EXIT_BRIGHTSCRIPT_TIMEOUT', 'EXIT_BRIGHTSCRIPT_CRASH', 'EXIT_OUT_OF_MEMORY')) / filter(count(*), WHERE actionName = 'APP_STARTED') * 100 as '%'"
"query": "FROM ConnectedDeviceSystem SELECT filter(count(*), WHERE actionName = 'APP_STARTED' and lastExitOrTerminationReason IN ('EXIT_BRIGHTSCRIPT_TIMEOUT', 'EXIT_BRIGHTSCRIPT_CRASH', 'EXIT_OUT_OF_MEMORY')) / filter(count(*), WHERE actionName = 'APP_STARTED') * 100 as '%'"
}
]
}
Expand All @@ -185,7 +185,7 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM RokuSystem SELECT (filter(count(*), WHERE actionName = 'APP_STARTED' and lastExitOrTerminationReason IN ('EXIT_BRIGHTSCRIPT_TIMEOUT', 'EXIT_BRIGHTSCRIPT_CRASH', 'EXIT_OUT_OF_MEMORY')) / filter(count(*), WHERE actionName = 'APP_STARTED')) as '%' facet deviceModel timeseries auto"
"query": "FROM ConnectedDeviceSystem SELECT (filter(count(*), WHERE actionName = 'APP_STARTED' and lastExitOrTerminationReason IN ('EXIT_BRIGHTSCRIPT_TIMEOUT', 'EXIT_BRIGHTSCRIPT_CRASH', 'EXIT_OUT_OF_MEMORY')) / filter(count(*), WHERE actionName = 'APP_STARTED')) as '%' facet deviceModel timeseries auto"
}
]
}
Expand All @@ -205,7 +205,7 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM RokuSystem SELECT count(*) as 'Crashes' WHERE actionName = 'APP_STARTED' and lastExitOrTerminationReason IN ('EXIT_BRIGHTSCRIPT_TIMEOUT', 'EXIT_BRIGHTSCRIPT_CRASH', 'EXIT_OUT_OF_MEMORY') FACET deviceModel"
"query": "FROM ConnectedDeviceSystem SELECT count(*) as 'Crashes' WHERE actionName = 'APP_STARTED' and lastExitOrTerminationReason IN ('EXIT_BRIGHTSCRIPT_TIMEOUT', 'EXIT_BRIGHTSCRIPT_CRASH', 'EXIT_OUT_OF_MEMORY') FACET deviceModel"
}
]
}
Expand All @@ -225,7 +225,7 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM RokuSystem SELECT count(*) as 'Crashes' WHERE actionName = 'APP_STARTED' and lastExitOrTerminationReason IN ('EXIT_BRIGHTSCRIPT_TIMEOUT', 'EXIT_BRIGHTSCRIPT_CRASH', 'EXIT_OUT_OF_MEMORY') FACET lastExitOrTerminationReason"
"query": "FROM ConnectedDeviceSystem SELECT count(*) as 'Crashes' WHERE actionName = 'APP_STARTED' and lastExitOrTerminationReason IN ('EXIT_BRIGHTSCRIPT_TIMEOUT', 'EXIT_BRIGHTSCRIPT_CRASH', 'EXIT_OUT_OF_MEMORY') FACET lastExitOrTerminationReason"
}
]
}
Expand All @@ -245,7 +245,7 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM RokuSystem SELECT count(*) as 'Crashes' WHERE actionName = 'APP_STARTED' and lastExitOrTerminationReason IN ('EXIT_BRIGHTSCRIPT_TIMEOUT', 'EXIT_BRIGHTSCRIPT_CRASH', 'EXIT_OUT_OF_MEMORY') FACET appVersion, appBuild"
"query": "FROM ConnectedDeviceSystem SELECT count(*) as 'Crashes' WHERE actionName = 'APP_STARTED' and lastExitOrTerminationReason IN ('EXIT_BRIGHTSCRIPT_TIMEOUT', 'EXIT_BRIGHTSCRIPT_CRASH', 'EXIT_OUT_OF_MEMORY') FACET appVersion, appBuild"
}
]
}
Expand All @@ -265,12 +265,12 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM RokuSystem SELECT count(*) as 'Crashes' WHERE actionName = 'APP_STARTED' and lastExitOrTerminationReason IN ('EXIT_BRIGHTSCRIPT_TIMEOUT', 'EXIT_BRIGHTSCRIPT_CRASH', 'EXIT_OUT_OF_MEMORY') FACET appVersion, appBuild TIMESERIES auto"
"query": "FROM ConnectedDeviceSystem SELECT count(*) as 'Crashes' WHERE actionName = 'APP_STARTED' and lastExitOrTerminationReason IN ('EXIT_BRIGHTSCRIPT_TIMEOUT', 'EXIT_BRIGHTSCRIPT_CRASH', 'EXIT_OUT_OF_MEMORY') FACET appVersion, appBuild TIMESERIES auto"
}
]
}
}
]
}
]
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
domain: VIDEO
# Represents all instances of a customer's Roku App monitored with New Relic's Roku agent.
type: ROKU_SYSTEM
type: CONNECTED_DEVICE_SYSTEM

synthesis:
identifier: appId
Expand All @@ -10,7 +10,7 @@ synthesis:

conditions:
- attribute: eventType
value: RokuSystem
value: ConnectedDeviceSystem

dashboardTemplates:
newRelic:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ appLaunches:
title: App launches (count)
unit: COUNT
query:
select: count(*)
from: RokuSystem
select: count(*)
from: ConnectedDeviceSystem
where: actionName = 'APP_STARTED'

httpErrors:
title: HTTP errors (count)
unit: COUNT
query:
select: count(*)
from: RokuSystem
where: actionName = 'HTTP_ERROR' or httpCode > 400
from: ConnectedDeviceSystem
where: actionName = 'HTTP_ERROR' or httpCode > 400

0 comments on commit 1c200b8

Please sign in to comment.