Weekly Bongo

A forum for all EdgeRater users

Moderator: Chris White

Post Reply
OzAsh
Posts: 1
Joined: Fri Sep 28, 2012 10:33 pm

Weekly Bongo

Post by OzAsh »

What do I have to change to the following scan to make it apply to the weekly Bongo. I see a scan for a Bongo CHANGE but I want to use the Bongo Weekly as a filter - either up or down with my other criteria

cond1: "Bongo()[PlotDn]";
event: cond1

Ash
Chris White
Posts: 212
Joined: Mon Nov 29, 2010 9:21 pm

Re: Weekly Bongo

Post by Chris White »

When you refer to another script from your current script you can specify the cycle period that you want the other script to use.

For example, there is an existing script called Bongo which has an output line called BongoDn. Normally when you add that script to a chart the cycle period automatically changes to reflect whatever chart period you are looking at (daily, weekly, etc).

However if you want a script that is specifically set to weekly so that whenever this new script is added to a chart it always uses the weekly cycle, you can call the original Bongo script with a 'Cycle' extension such as #DAY1, #WEEK1 etc. The '1' here refers to how many days or weeks to use as the cycle period.

So, for example I could write the following script which when added to a chart shows an event whenever the Bongo Daily is down and the Bongo Weekly is down:

Code: Select all

DailyDn: "Bongo[BongoDn]#DAY1";
WeeklyDn: "Bongo[BongoDn]#WEEK1";
Event: DailyDn & WeeklyDn;
Chris.
Post Reply