Can you setup charts per DeviceID.ProductClass?

Hi,

I am trying to setup charts on the overview page to show me routers in an online, past 24 hours and offline state but have a graph per DeviceID.ProductClass as I have a few differnt ones on the TR69 server but I seem to be running into issues?

I believe I need to add a filter as I tried with a parameter but that hasn’t worked.

Does anyone know if this is possible and if so what the syntax may be?

I have managed to resolve this in 2x ways, The charts config is below if anyone needs it in the future.

  1. Online Status for a Specific Product Class

online1:
label: “‘Nokia G-240W-G status’”
slices:
1_onlineNow:
color: “‘#31a354’”
filter: Events.Inform > NOW() - 5 * 60 * 1000 AND DeviceID.ProductClass =
“G-240W-G”
label: “‘Online now’”
2_past24:
color: “‘#fff300’”
filter: Events.Inform > (NOW() - 5 * 60 * 1000) - (24 * 60 * 60 * 1000) AND
Events.Inform < (NOW() - 5 * 60 * 1000) AND DeviceID.ProductClass =
“G-240W-G”
label: “‘Past 24 hours’”
3_others:
color: “‘#ff0000’”
filter: Events.Inform < (NOW() - 5 * 60 * 1000) - (24 * 60 * 60 * 1000) AND
DeviceID.ProductClass = “G-240W-G”
label: “‘Offline’”

  1. Online Status for all CPEs apart from specific product classes.

online:
label: “‘Other CPE status’”
slices:
1_onlineNow:
color: “‘#31a354’”
filter: Events.Inform > NOW() - 5 * 60 * 1000 AND DeviceID.ProductClass NOT LIKE
“G-140W-C” AND DeviceID.ProductClass NOT LIKE “G-240W-G”
label: “‘Online now’”
2_past24:
color: “‘#fff300’”
filter: Events.Inform > (NOW() - 5 * 60 * 1000) - (24 * 60 * 60 * 1000) AND
Events.Inform < (NOW() - 5 * 60 * 1000) AND DeviceID.ProductClass NOT
LIKE “G-140W-C” AND DeviceID.ProductClass NOT LIKE “G-240W-G”
label: “‘Past 24 hours’”
3_others:
color: “‘#ff0000’”
filter: Events.Inform < (NOW() - 5 * 60 * 1000) - (24 * 60 * 60 * 1000) AND
DeviceID.ProductClass NOT LIKE “G-140W-C” AND DeviceID.ProductClass NOT
LIKE “G-240W-G”
label: “‘Offline’”