case class OozieSLA(nominalTime: String, shouldStart: Option[String] = None, shouldEnd: Option[String] = None, maxDuration: Option[String] = None, alertEvents: Seq[SLAAlert] = Seq.empty[SLAAlert], alertContacts: Seq[String] = Seq.empty[String], notificationMsg: Option[String] = None, upstreamApps: Seq[String] = Seq.empty[String], name: String = "_sla") extends XmlSerializable with OozieProperties with Nameable with Product with Serializable
- nominalTime
This is the time relative to which your jobs' SLAs will be calculated. Generally since Oozie workflows are aligned with synchronous data dependencies, this nominal time can be parameterized to be passed the value of your coordinator nominal time. Nominal time is also required in case of independent workflows and you can specify the time in which you expect the workflow to be run if you don't have a synchronous dataset associated with it.
- shouldStart
Relative to nominal-time this is the amount of time (along with time-unit - MINUTES, HOURS, DAYS) within which your job should start running to meet SLA. This is optional.
- shouldEnd
Relative to nominal-time this is the amount of time (along with time-unit - MINUTES, HOURS, DAYS) within which your job should finish to meet SLA.
- maxDuration
This is the maximum amount of time (along with time-unit - MINUTES, HOURS, DAYS) your job is expected to run. This is optional.
- alertEvents
Specify the types of events for which Email alerts should be sent. Allowable values in this comma-separated list are start_miss, end_miss and duration_miss. *_met events can generally be deemed low priority and hence email alerting for these is not neccessary. However, note that this setting is only for alerts via email alerts and not via JMS messages, where all events send out notifications, and user can filter them using desired selectors. This is optional and only applicable when alert-contact is configured.
- alertContacts
Specify a comma separated list of email addresses where you wish your alerts to be sent. This is optional and need not be configured if you just want to view your job SLA history in the UI and do not want to receive email alerts.
- notificationMsg
The message to use when an SLA has not been met
- upstreamApps
List of upstream applications affected by SLA being missed.
- Alphabetic
- By Inheritance
- OozieSLA
- Serializable
- Serializable
- Product
- Equals
- Nameable
- OozieProperties
- PropertyFormatter
- XmlSerializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
OozieSLA(nominalTime: String, shouldStart: Option[String] = None, shouldEnd: Option[String] = None, maxDuration: Option[String] = None, alertEvents: Seq[SLAAlert] = Seq.empty[SLAAlert], alertContacts: Seq[String] = Seq.empty[String], notificationMsg: Option[String] = None, upstreamApps: Seq[String] = Seq.empty[String], name: String = "_sla")
- nominalTime
This is the time relative to which your jobs' SLAs will be calculated. Generally since Oozie workflows are aligned with synchronous data dependencies, this nominal time can be parameterized to be passed the value of your coordinator nominal time. Nominal time is also required in case of independent workflows and you can specify the time in which you expect the workflow to be run if you don't have a synchronous dataset associated with it.
- shouldStart
Relative to nominal-time this is the amount of time (along with time-unit - MINUTES, HOURS, DAYS) within which your job should start running to meet SLA. This is optional.
- shouldEnd
Relative to nominal-time this is the amount of time (along with time-unit - MINUTES, HOURS, DAYS) within which your job should finish to meet SLA.
- maxDuration
This is the maximum amount of time (along with time-unit - MINUTES, HOURS, DAYS) your job is expected to run. This is optional.
- alertEvents
Specify the types of events for which Email alerts should be sent. Allowable values in this comma-separated list are start_miss, end_miss and duration_miss. *_met events can generally be deemed low priority and hence email alerting for these is not neccessary. However, note that this setting is only for alerts via email alerts and not via JMS messages, where all events send out notifications, and user can filter them using desired selectors. This is optional and only applicable when alert-contact is configured.
- alertContacts
Specify a comma separated list of email addresses where you wish your alerts to be sent. This is optional and need not be configured if you just want to view your job SLA history in the UI and do not want to receive email alerts.
- notificationMsg
The message to use when an SLA has not been met
- upstreamApps
List of upstream applications affected by SLA being missed.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val alertContacts: Seq[String]
- val alertEvents: Seq[SLAAlert]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
buildSequenceProperties(actionName: String, propName: String, valueSequence: Seq[String]): Map[String, String]
Convert a sequence of property values to a map of KV pairs
Convert a sequence of property values to a map of KV pairs
- actionName
The name of the action to insert into the property name
- valueSequence
The property values
- Attributes
- protected
- Definition Classes
- OozieProperties
-
def
buildSequenceToSingleValueProperty(actionName: String, propName: String, valueSequence: Seq[String]): Map[String, String]
Convert a sequence of properties to a single (comma separated) value and map to a KV pair
Convert a sequence of properties to a single (comma separated) value and map to a KV pair
- actionName
The name of the action to insert into the property name
- propName
The name of the property
- valueSequence
The property values
- Attributes
- protected
- Definition Classes
- OozieProperties
-
def
buildStringOptionProperty(actionName: String, propName: String, option: Option[String]): Map[String, String]
Convert an optional property to a map of KV pairs
Convert an optional property to a map of KV pairs
- actionName
The name of the action to insert into the property name
- propName
The name of the property
- option
the optional value to convert
- Attributes
- protected
- Definition Classes
- OozieProperties
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatProperty(property: String): String
format predicates to expected pattern
format predicates to expected pattern
- Attributes
- protected
- Definition Classes
- PropertyFormatter
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val maxDuration: Option[String]
-
val
name: String
The name of the object
The name of the object
- Definition Classes
- OozieSLA → Nameable
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val nominalTime: String
- val notificationMsg: Option[String]
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
properties: Map[String, String]
Get the Oozie properties for this object
Get the Oozie properties for this object
- Definition Classes
- OozieSLA → OozieProperties
- val shouldEnd: Option[String]
- val shouldStart: Option[String]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toXML: Elem
The XML for this node
The XML for this node
- Definition Classes
- OozieSLA → XmlSerializable
- val upstreamApps: Seq[String]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
withActionName(actionName: String): ActionProperties[OozieSLA]
Add the owning node name to this SLA object