Package com.cyara.apisamples
Class CyaraSavings
java.lang.Object
com.cyara.apisamples.CyaraSavings
public class CyaraSavings
extends java.lang.Object
This program will grab every validation that occurred in a
campaign for the last X months. It will export to a csv the
duration of each call in minutes, its result, and other misc info.
This data can then be used to calculate usage, errors found, time saved, etc.
This is not an official Cyara product and is not officially supported. It is used for demonstration and training purposes. For assistance, contact chris.ryan@cyara.com
- Version:
- 1.2
- Author:
- Chris Ryan
-
Constructor Summary
Constructors Constructor Description CyaraSavings()
-
Method Summary
Modifier and Type Method Description private static void
calculateLastXMonths(int months, java.lang.String planType, long runTime, ApiFunctionalities connInfo)
The brain behind the program that pulls and logs all the data you need for calculating savingsstatic void
main(java.lang.String[] argv)
-
Constructor Details
-
CyaraSavings
public CyaraSavings()
-
-
Method Details
-
main
public static void main(java.lang.String[] argv) -
calculateLastXMonths
private static void calculateLastXMonths(int months, java.lang.String planType, long runTime, ApiFunctionalities connInfo)The brain behind the program that pulls and logs all the data you need for calculating savings- Parameters:
months
- The number of months to retrieve calls fromplanType
- The plan we're retrieving calls forrunTime
- Timestamp used for logging purposesconnInfo
- The controller to the API credentials and methods
-