Skip to content

Commit a624624

Browse files
committed
add a template for custom check items and use it for tests
1 parent 5991954 commit a624624

File tree

2 files changed

+117
-269
lines changed

2 files changed

+117
-269
lines changed
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
import CustomCheck, { Status } from "@/resources/CustomCheck";
2+
3+
export const customCheckItems: CustomCheck[] = [
4+
{
5+
id: "CustomChecks/6131fa95-9414-1898-9c83-c5b18587945b",
6+
custom_check_id: "Audit Message Ingestion",
7+
category: "ServiceControl.Audit Health",
8+
status: Status.Fail,
9+
failure_reason: "I dont know the reason",
10+
reported_at: "2025-01-10T05:06:30.4074087Z",
11+
originating_endpoint: {
12+
name: "Particular.ServiceControl.Audit",
13+
host_id: "ff605b55-6fbb-af56-5753-73c1ff73e601",
14+
host: "COMPUSA",
15+
},
16+
},
17+
{
18+
id: "CustomChecks/36752f09-8a72-752e-e48f-6c378329d43b",
19+
custom_check_id: "Error Message Ingestion",
20+
category: "ServiceControl Health",
21+
status: Status.Fail,
22+
failure_reason: "I am unable to ingest error messages",
23+
reported_at: "2025-01-10T05:42:00.531067Z",
24+
originating_endpoint: {
25+
name: "Particular.ServiceControl",
26+
host_id: "9f822d11-b097-a4df-3db5-e069e5d356fe",
27+
host: "COMPUSA",
28+
},
29+
},
30+
{
31+
id: "CustomChecks/93b62dc3-e1bf-abfd-4268-8d36fef2b0c6",
32+
custom_check_id: "ServiceControl database",
33+
category: "Storage space",
34+
status: Status.Pass,
35+
failure_reason: "",
36+
reported_at: "2025-01-10T05:52:03.8512021Z",
37+
originating_endpoint: {
38+
name: "Particular.ServiceControl",
39+
host_id: "9f822d11-b097-a4df-3db5-e069e5d356fe",
40+
host: "COMPUSA",
41+
},
42+
},
43+
{
44+
id: "CustomChecks/7e09172e-7c59-9a0c-52da-e2ecc1784e15",
45+
custom_check_id: "Saga Audit Configuration",
46+
category: "Configuration",
47+
status: Status.Fail,
48+
failure_reason: "There is something wrong in Saga Audit configuration",
49+
reported_at: "2025-01-10T05:52:03.850927Z",
50+
originating_endpoint: {
51+
name: "Particular.ServiceControl",
52+
host_id: "9f822d11-b097-a4df-3db5-e069e5d356fe",
53+
host: "COMPUSA",
54+
},
55+
},
56+
{
57+
id: "CustomChecks/4dc66bce-632b-5404-bc3d-e1943d99c301",
58+
custom_check_id: "Error Database Index Lag",
59+
category: "ServiceControl Health",
60+
status: Status.Pass,
61+
failure_reason: "",
62+
reported_at: "2025-01-10T05:52:05.8153025Z",
63+
originating_endpoint: {
64+
name: "Particular.ServiceControl",
65+
host_id: "9f822d11-b097-a4df-3db5-e069e5d356fe",
66+
host: "COMPUSA",
67+
},
68+
},
69+
{
70+
id: "CustomChecks/66675ab0-b69a-6a5a-6a56-da7709464fba",
71+
custom_check_id: "Message Ingestion Process",
72+
category: "ServiceControl Health",
73+
status: Status.Fail,
74+
failure_reason: "Unable to ingest messages",
75+
reported_at: "2025-01-10T05:52:29.398929Z",
76+
originating_endpoint: {
77+
name: "Particular.ServiceControl",
78+
host_id: "9f822d11-b097-a4df-3db5-e069e5d356fe",
79+
host: "COMPUSA",
80+
},
81+
},
82+
{
83+
id: "CustomChecks/418dafe7-1dd2-886b-65d1-2b3e71e4feb2",
84+
custom_check_id: "Error Message Ingestion Process",
85+
category: "ServiceControl Health",
86+
status: Status.Fail,
87+
failure_reason: "No idea whats going on here",
88+
reported_at: "2025-01-10T05:52:29.3984912Z",
89+
originating_endpoint: {
90+
name: "Particular.ServiceControl",
91+
host_id: "9f822d11-b097-a4df-3db5-e069e5d356fe",
92+
host: "COMPUSA",
93+
},
94+
},
95+
{
96+
id: "CustomChecks/a406f1a7-412c-dd2c-7f90-9aa32da0698b",
97+
custom_check_id: "Audit Message Ingestion Process",
98+
category: "ServiceControl Health",
99+
status: Status.Pass,
100+
failure_reason: "",
101+
reported_at: "2025-01-10T05:52:31.4929675Z",
102+
originating_endpoint: {
103+
name: "Particular.ServiceControl.Audit",
104+
host_id: "ff605b55-6fbb-af56-5753-73c1ff73e601",
105+
host: "COMPUSA",
106+
},
107+
},
108+
];

0 commit comments

Comments
 (0)