Package com.cyara.apisamples
Class MatchedConnectionFailures
java.lang.Object
com.cyara.apisamples.MatchedConnectionFailures
public class MatchedConnectionFailures
extends java.lang.Object
Grabs all the Pulse calls for a given timeframe and checks for
any that failed on Step 0 or Step 1, a connection failure. Then
checks transcriptions and audio recordings to find the closest
matching failure, broken down by each. These failures and matches
are then process recursively into a hierarchal network graph,
showing you the most common failure types.
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.0
- Author:
- Chris Ryan
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
MATCHESFILENAME
private static java.lang.String
OUTPUTFILENAME
-
Constructor Summary
Constructors Constructor Description MatchedConnectionFailures()
-
Method Summary
Modifier and Type Method Description private static void
addClosestMatches()
Processes the file of Step 0 and 1 Failures, finding similar matching failures for each one.private static java.lang.String
findClosestAudio(java.lang.String step1AudioFilePath)
Processes a specific failed call's audio, running PESQ against every other failure audio to find the closest match.private static java.lang.String
findClosestTranscription(java.lang.String step1Transcription, int testResultId)
Processes a specific failed call's transcription, running Levenshtein against every other failure transcription to find the closest match.private static void
findStep0Or1Failures()
Grabs all the Pulse calls from a selected date until now.static void
main(java.lang.String[] argv)
-
Field Details
-
OUTPUTFILENAME
private static final java.lang.String OUTPUTFILENAME- See Also:
- Constant Field Values
-
MATCHESFILENAME
private static final java.lang.String MATCHESFILENAME- See Also:
- Constant Field Values
-
-
Constructor Details
-
MatchedConnectionFailures
public MatchedConnectionFailures()
-
-
Method Details
-
main
public static void main(java.lang.String[] argv) -
findStep0Or1Failures
private static void findStep0Or1Failures()Grabs all the Pulse calls from a selected date until now. Each Pulse call is processed, checking for a Step 0 or Step 1 Failure. If it is, the call is stored. If the failure is on Step 1, the audio for Step 1 is downloaded.- Since:
- 1.0
-
addClosestMatches
private static void addClosestMatches()Processes the file of Step 0 and 1 Failures, finding similar matching failures for each one. All of this is then exported to a new file, which GenerateNetworkGraph will then use.- Since:
- 1.0
- See Also:
findClosestAudio(java.lang.String)
,findClosestTranscription(java.lang.String,int)
-
findClosestAudio
private static java.lang.String findClosestAudio(java.lang.String step1AudioFilePath)Processes a specific failed call's audio, running PESQ against every other failure audio to find the closest match.- Parameters:
step1AudioFilePath
- This failure's audio file- Returns:
- The closest matching failure audio, if any, and its MOS
- Since:
- 1.0
-
findClosestTranscription
private static java.lang.String findClosestTranscription(java.lang.String step1Transcription, int testResultId)Processes a specific failed call's transcription, running Levenshtein against every other failure transcription to find the closest match.- Parameters:
step1Transcription
- This failure's transcriptiontestResultId
- The id of the failure we're processing- Returns:
- The closest matching testResultId, and how close
- Since:
- 1.0
-