Implement max_avg_duration criteria

Add a new sla criteria: max_avg_duration

Change-Id: I3ee6a710378cf05ce7b597d9784aca1c9d378483
Merge "Implement max_avg_duration criteria"