robjones23
Registered User.
- Local time
- Today, 10:56
- Joined
- Dec 16, 2004
- Messages
- 66
Hi,
I'm trying to figure out how to get this working and i'm struggling to get my head around it. I need to create a Database which looks at outages in a system and calculates the outage time.
Initially this seemed easy enough and I soon had a database which would figure out hrs / mins of an outage. The only problem is that I now need to account for supported hours.
Our hours of support are 07:00:01 - 21:59:59. Anything outside of this would be considered "out of hours".
So if a system falls over at 8PM, and then doesn't come back up until 8AM the next day, even though the real time hours would = 12 hours, the actual reported hours needs to be 3 hours.
I'd need 3 outputs, outage total (which I already have), outage core (between 07:00:01 - 21:59:59) and outage non core (which could probably just be total - core if thats easier)
Any ideas on the best way to accomplish this? I'd like to keep it as efficient as possible but the data coming in may hinder this (It needs some formatting to get the correct dd/mm/yyy hh:mm:ss formatting.
Cheers,
Rob.
I'm trying to figure out how to get this working and i'm struggling to get my head around it. I need to create a Database which looks at outages in a system and calculates the outage time.
Initially this seemed easy enough and I soon had a database which would figure out hrs / mins of an outage. The only problem is that I now need to account for supported hours.
Our hours of support are 07:00:01 - 21:59:59. Anything outside of this would be considered "out of hours".
So if a system falls over at 8PM, and then doesn't come back up until 8AM the next day, even though the real time hours would = 12 hours, the actual reported hours needs to be 3 hours.
I'd need 3 outputs, outage total (which I already have), outage core (between 07:00:01 - 21:59:59) and outage non core (which could probably just be total - core if thats easier)
Any ideas on the best way to accomplish this? I'd like to keep it as efficient as possible but the data coming in may hinder this (It needs some formatting to get the correct dd/mm/yyy hh:mm:ss formatting.
Cheers,
Rob.