Class DatadogItemListener
- java.lang.Object
-
- hudson.model.listeners.ItemListener
-
- org.datadog.jenkins.plugins.datadog.listeners.DatadogItemListener
-
- All Implemented Interfaces:
ExtensionPoint
@Extension public class DatadogItemListener extends ItemListener
This class registers anItemListener
to trigger events and calculate metrics: - When an item gets created, theonCreated(Item)
method will be invoked. - When an item gets copied, theonCopied(Item, Item)
method will be invoked. - When an item gets deleted, theonDeleted(Item)
method will be invoked. - When an item gets updated, theonUpdated(Item)
method will be invoked. - When an item gets their location changed, theonLocationChanged(Item, String, String)
method will be invoked.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description DatadogItemListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onCopied(Item src, Item item)
void
onCreated(Item item)
void
onDeleted(Item item)
void
onLocationChanged(Item item, String oldFullName, String newFullName)
void
onUpdated(Item item)
-
Methods inherited from class hudson.model.listeners.ItemListener
all, checkBeforeCopy, fireLocationChange, fireOnCopied, fireOnCreated, fireOnDeleted, fireOnUpdated, onBeforeShutdown, onCheckCopy, onLoaded, onRenamed, register
-
-
-
-
Method Detail
-
onCreated
public void onCreated(Item item)
- Overrides:
onCreated
in classItemListener
-
onDeleted
public void onDeleted(Item item)
- Overrides:
onDeleted
in classItemListener
-
onUpdated
public void onUpdated(Item item)
- Overrides:
onUpdated
in classItemListener
-
onCopied
public void onCopied(Item src, Item item)
- Overrides:
onCopied
in classItemListener
-
onLocationChanged
public void onLocationChanged(Item item, String oldFullName, String newFullName)
- Overrides:
onLocationChanged
in classItemListener
-
-