-
Notifications
You must be signed in to change notification settings - Fork 73
/
ModifyGlobalProperty.scala
37 lines (28 loc) · 1.1 KB
/
ModifyGlobalProperty.scala
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
package com.normation.rudder.domain.eventlog
import com.normation.eventlog._
import com.normation.utils.HashcodeCaching
case class ModifyGlobalProperty(
eventType: ModifyGlobalPropertyEventType
, eventDetails : EventLogDetails
) extends EventLog {
override final val eventLogCategory = GlobalPropertyEventLogCategory
override val cause = None
val propertyName = eventType.propertyName
}
case class ModifyGlobalPropertyEventFilter (eventType : ModifyGlobalPropertyEventType) extends EventLogFilter {
def apply(x :(EventLogType,EventLogDetails)) : ModifyGlobalProperty = ModifyGlobalProperty(eventType,x._2)
}
object ModifyGlobalPropertyEventLogsFilter {
val eventTypes =
ModifySendServerMetricsEventType ::
ModifyComplianceModeEventType ::
ModifyHeartbeatPeriodEventType ::
ModifyAgentRunIntervalEventType ::
ModifyAgentRunSplaytimeEventType ::
ModifyAgentRunStartHourEventType ::
ModifyAgentRunStartMinuteEventType ::
ModifyRudderSyslogProtocolEventType ::
Nil
final val eventList : List[EventLogFilter] =
eventTypes.map(ModifyGlobalPropertyEventFilter)
}