blob: 79d196b07fa454fa4266ce3f6c1ecaaf363757e3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.metric;
/**
* Application metrics aggregated across all deployments.
*
* @author bratseth
*/
public class ApplicationMetrics {
private final double queryServiceQuality;
private final double writeServiceQuality;
public ApplicationMetrics(double queryServiceQuality, double writeServiceQuality) {
this.queryServiceQuality = queryServiceQuality;
this.writeServiceQuality = writeServiceQuality;
}
/**
* Returns the quality of service for queries as a number between 1 (perfect) and 0 (none)
*/
public double queryServiceQuality() {
return queryServiceQuality;
}
/**
* Returns the quality of service for writes as a number between 1 (perfect) and 0 (none)
*/
public double writeServiceQuality() {
return writeServiceQuality;
}
}
|