[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



Is this method the fastest way to store the data in mem so I can walk
it.

I have to walk these alarms and determine if I've sent an email to that 
escalation_group or not.  If I have not then I need to send it.  If I
have I need to verify the timeout (15 minutes) has not occured.  If it
has I need to "escalate" the issue and got to the send escalation_group 
that is associated with the notification_group that is associated with a
location that is associated with and alarm.

I will keep track of what I have done in a table.

+---------------+------------------+------+-----+---------------------+-------+
| Field         | Type             | Null | Key | Default             |
Extra |
+---------------+------------------+------+-----+---------------------+-------+
| alarm_id      | int(11)          |      | PRI | 0                  
|       |
| escalation_id | int(10) unsigned |      | PRI | 0                  
|       |
| success       | enum('Y','N')    |      |     | N                  
|       |
| sent          | datetime         |      |     | 0000-00-00 00:00:00
|       |
+---------------+------------------+------+-----+---------------------+-------+

On Wed, 2004-04-28 at 08:51, Jason Etheridge wrote:
> Chris Fowler wrote:
> > When I get into the hash of hashes I have to know if a key points to a
> > value or another hash.
> 
> if ( ($a_ref->($ref}->{$ref2}->{$ref3}) =~ /^HASH(.+)$/ ) {
> 
> 	// it's probably a hash reference unless stuff
> 	// like "HASH(0x10d870)" could be valid data
> 
> } else {
> 
> 	// it's not a hash
> 
> }
> 
> > So I want to mimic the data I just want to do it right.
> 
> There's the kicker.  How do you define that? :D
> 
> -- Jason


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="01209" href="msg01209.html">[ale] Organizing data</a></strong>
<ul><li><em>From:</em> cfowler at outpostsentinel.com (Chris Fowler)</li></ul></li>
<li><strong><a name="01212" href="msg01212.html">[ale] Organizing data</a></strong>
<ul><li><em>From:</em> phasefx at magusaptus.com (Jason Etheridge)</li></ul></li>
<li><strong><a name="01213" href="msg01213.html">[ale] Organizing data</a></strong>
<ul><li><em>From:</em> cfowler at outpostsentinel.com (Chris Fowler)</li></ul></li>
<li><strong><a name="01220" href="msg01220.html">[ale] Organizing data</a></strong>
<ul><li><em>From:</em> phasefx at magusaptus.com (Jason Etheridge)</li></ul></li>
<li><strong><a name="01221" href="msg01221.html">[ale] Organizing data</a></strong>
<ul><li><em>From:</em> cfowler at outpostsentinel.com (Chris Fowler)</li></ul></li>
<li><strong><a name="01224" href="msg01224.html">[ale] Organizing data</a></strong>
<ul><li><em>From:</em> phasefx at magusaptus.com (Jason Etheridge)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg01225.html">[ale] Organizing data</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg01227.html">[ale] Organizing data</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg01245.html">[ale] Organizing data</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg01227.html">[ale] Organizing data</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#01226"><strong>Date</strong></a></li>
<li><a href="threads.html#01226"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>