I was looking for a hint or an idea. Here are all the details, anyways.
| search (SPECPB="*LOSS-OF-ALL-CHAN*")
| dedup EVTTIME SPECPB
| eval bintime_u=eventtime_u
| bin bintime_u span=1d
| stats list(sectorname) as sectorname list(eventtime) as eventtime list(clrtime) as clrtime list(eventduration_u) as eventduration_u sum(eventduration_u) as cumulative_sector_down count(eventduration_u) as cumulative_event_count by bintime_u sitename
| eval bintime=strftime(bintime_u,"%m-%d")
| eval mean_site_down=cumulative_sector_down/cumulative_event_count
| eval siteavailability_d=100-round(100*mean_site_down/86400,2)
| xyseries sitename,bintime,siteavailability_d
My events:
_time sitename sectorname eventtime clrtime SPECPB eventduration_u
So I'm getting correct results when the event lasts within a day (i.e. it starts after 00:00 and ends before 24:00 of the same day). If the event lasts longer then one day, starting on the day before and ending on the next day, the current day has obviously no event. I need to spread such events trough the following bins somehow.
Regards,
NJ
... View more