blob: 33a3ce957ed2cdf8eeae7c2362838bc882479d02 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.metric;
/**
* Metrics for a single deployment of an application.
*
* @author bratseth
*/
public class DeploymentMetrics {
private final double queriesPerSecond;
private final double writesPerSecond;
private final long documentCount;
private final double queryLatencyMillis;
private final double writeLatencyMillis;
public DeploymentMetrics(double queriesPerSecond, double writesPerSecond,
long documentCount,
double queryLatencyMillis, double writeLatencyMillis) {
this.queriesPerSecond = queriesPerSecond;
this.writesPerSecond = writesPerSecond;
this.documentCount = documentCount;
this.queryLatencyMillis = queryLatencyMillis;
this.writeLatencyMillis = writeLatencyMillis;
}
public double queriesPerSecond() {
return queriesPerSecond;
}
public double writesPerSecond() {
return writesPerSecond;
}
public long documentCount() {
return documentCount;
}
public double queryLatencyMillis() {
return queryLatencyMillis;
}
public double writeLatencyMillis() {
return writeLatencyMillis;
}
}
|