Skip to content

Commit 3f00dfe

Browse files
committed
feat: Added monitoring client type for pilot submission
1 parent 8716925 commit 3f00dfe

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
from DIRAC.MonitoringSystem.Client.Types.BaseType import BaseType
2+
3+
4+
class PilotMonitoring(BaseType):
5+
def __init__(self):
6+
7+
super(PilotMonitoring, self).__init__()
8+
9+
self.keyFields = ["HostName", "SiteDirector", "Site", "CE", "Queue", "Status"]
10+
11+
self.monitoringFields = ["NumTotal", "NumSucceeded"]
12+
13+
self.index = "pilotStats_index"
14+
15+
self.addMapping(
16+
{
17+
"HostName": {"type": "keyword"},
18+
"SiteDirector": {"type": "keyword"},
19+
"Site": {"type": "keyword"},
20+
"CE": {"type": "keyword"},
21+
"Queue": {"type": "keyword"},
22+
"Status": {"type": "keyword"},
23+
}
24+
)

0 commit comments

Comments
 (0)