blob: b8e7e835eb8e3c72094962247ce67525c8bb3b06 (
plain)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
package org.onap.ccsdk.cds.blueprintsprocessor.functions.k8s.instance.healthcheck
import com.fasterxml.jackson.annotation.JsonProperty
class K8sRbInstanceHealthCheck {
@get:JsonProperty("Id")
var id: String? = null
@get:JsonProperty("StartedAt")
var startedAt: String? = null
@get:JsonProperty("CompletedAt")
var completedAt: String? = null
@get:JsonProperty("Status")
var status: String? = null
@get:JsonProperty("Tests")
var tests: List<K8sHealthCheckTest>? = null
override fun toString(): String {
return "$id:$status"
}
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return false
return true
}
override fun hashCode(): Int {
return javaClass.hashCode()
}
}
class K8sHealthCheckTest {
@get:JsonProperty("Name")
var name: String? = null
@get:JsonProperty("StartedAt")
var startedAt: String? = null
@get:JsonProperty("CompletedAt")
var completedAt: String? = null
@get:JsonProperty("Status")
var status: String? = null
@get:JsonProperty("Info")
var info: String? = null
override fun toString(): String {
return "$name:$status"
}
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return false
return true
}
override fun hashCode(): Int {
return javaClass.hashCode()
}
}
|