Skip to content

Commit 115c888

Browse files
committed
fix: removed unused member
1 parent 95d024e commit 115c888

File tree

5 files changed

+0
-13
lines changed

5 files changed

+0
-13
lines changed

src/DIRAC/MonitoringSystem/Client/Types/BaseType.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ class BaseType:
1414
:type keyFields: python:list
1515
:param monitoringFields: This is the value what we plot
1616
:type monitoringFields: python:list
17-
:param int dataToKeep: Data retention. We keep all data by default.
1817
:param dict mapping: We can specify the mapping of the documents. It is used during the creation of an index.
1918
Note: If you do not want to be analysed a string, you have to set the mapping
2019
:param str period: We can configure the elasticsearch index name with a period.
@@ -24,7 +23,6 @@ class BaseType:
2423
2524
"""
2625

27-
########################################################################
2826
def __init__(self):
2927
"""c'tor
3028
@@ -38,9 +36,6 @@ def __init__(self):
3836
self.index = None
3937
self.index = self._getIndex()
4038

41-
# we only keep the last month of the data.
42-
self.dataToKeep = -1
43-
4439
########################################################################
4540
def checkType(self):
4641
"""

src/DIRAC/MonitoringSystem/Client/Types/ComponentMonitoring.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,5 @@ def __init__(self):
4444
}
4545
)
4646

47-
self.dataToKeep = 86400 * 30 # we need to define...
48-
4947
self.period = "month"
5048
self.checkType()

src/DIRAC/MonitoringSystem/Client/Types/PilotSubmissionMonitoring.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,4 @@ def __init__(self):
3636
}
3737
)
3838

39-
self.dataToKeep = 86400 * 30 * 14
40-
4139
self.checkType()

src/DIRAC/MonitoringSystem/Client/Types/RMSMonitoring.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,5 @@ def __init__(self):
4646
}
4747
)
4848

49-
self.dataToKeep = 86400 * 30 # we need to define...
50-
5149
self.period = "month"
5250
self.checkType()

src/DIRAC/MonitoringSystem/Client/Types/WMSHistory.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,4 @@ def __init__(self):
5050
)
5151
# {'timestamp': {'type': 'date'}} will be added for all monitoring types
5252

53-
self.dataToKeep = 86400 * 30
54-
5553
self.checkType()

0 commit comments

Comments
 (0)