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 savings
    static void main​(java.lang.String[] argv)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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 from
      planType - The plan we're retrieving calls for
      runTime - Timestamp used for logging purposes
      connInfo - The controller to the API credentials and methods