Volume

Created by Vijendra Sawant, Modified on Wed, 1 Nov, 2023 at 7:39 PM by Vijendra Sawant


/*
Calculation Script name - WhizCalVolume
Description - calculate the volume of a metric based on the time or
                 any dimension that quantifies the metric.
Product Version - v66
Script Version - 1.0

***Disclaimer - This is proprietary code of Whiz.AI. If you want to build on top of this computation script please make a copy/clone of this script and then alter the script which is copied or cloned. When version upgrade happens there are chances that this script may get modified hence any customization done by customer/partner developer may be overwritten.

Key Functions - 1.Function name : getComputationObj
                purpose : get instance of class present in WhizCalVolumeLib.
                2.Function name : compute
                purpose : calculate volume of metric.
                input parameters :metadataQuery
                output parameters : dataframe
              
Key variables - query : implicit variable
                WhizCalVolumeLib : The name of the object present in WhizCalVolumeLib.js(library script).
                                   excution scripts can call WhizCalVolumeLib scripts functions using given object.
*/



//** Start of Function code    **//  

log.info("******************** WhizCalVolume **********************");

//Name for metadata query, this helps logging and identification of query.
query.name("WhizCalVolume_Query");

//calling the function from library script 
WhizCalVolumeLib.getComputationObj().compute(query);

//**  End of Function code   **//  


/*
 ** configuration to be set in calculation metric **

default_filter: In this section's dynamicArgs sub-section, we will have the information related to the necessary aggregations required.
                 Because there are no aggregations necessary, the dynamicArgs are empty.

**The configuration below should be copied and pasted to calculate the Volume.*
*/

"default_filter": {
    "dynamicArgs": {
    }
}

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article