@Extension public class DatadogItemListener extends ItemListener
ItemListener
to trigger events and calculate metrics:
- When an item gets created, the onCreated(Item)
method will be invoked.
- When an item gets copied, the onCopied(Item, Item)
method will be invoked.
- When an item gets deleted, the onDeleted(Item)
method will be invoked.
- When an item gets updated, the onUpdated(Item)
method will be invoked.
- When an item gets their location changed, the onLocationChanged(Item, String, String)
method will be invoked.ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
DatadogItemListener() |
Modifier and Type | Method and 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) |
all, checkBeforeCopy, fireLocationChange, fireOnCopied, fireOnCreated, fireOnDeleted, fireOnUpdated, onBeforeShutdown, onCheckCopy, onLoaded, onRenamed, register
public void onCreated(Item item)
onCreated
in class ItemListener
public void onDeleted(Item item)
onDeleted
in class ItemListener
public void onUpdated(Item item)
onUpdated
in class ItemListener
public void onCopied(Item src, Item item)
onCopied
in class ItemListener
public void onLocationChanged(Item item, String oldFullName, String newFullName)
onLocationChanged
in class ItemListener
Copyright © 2016–2023. All rights reserved.