Skip to main content
1-Visitor
September 19, 2014
Solved

Set trigger on move label [SI]

  • September 19, 2014
  • 1 reply
  • 1522 views

Hi all,

I want to log label moving in Configuration Management, but I only see events for addLabel and deleteLabel.

I suppose that the movel label is a concatenation of those two actions.

But then the question is how can I distinguish between a normal add label and a move label operation?

Veikko

    Best answer by KaelLizak

    Hello Viekko,

    At a quick glance, it looks like there is a boolean getMoveLabel() which looks like it returns true if the label oepration is a move label operation. It is on the ScriptAddLabelArgumentBean. This is from the ScriptAddLabelArgumentsBean class.

    Regards,

    Kael

    1 reply

    1-Visitor
    September 19, 2014

    Look like there is a parameter moveLabel in the addlabel event. Thats what I get using the auditlog with --filter=operation:addlabel

    So the question would then be: What bean and what parameter I need to check in the event trigger script?

    KaelLizak16-PearlAnswer
    16-Pearl
    September 19, 2014

    Hello Viekko,

    At a quick glance, it looks like there is a boolean getMoveLabel() which looks like it returns true if the label oepration is a move label operation. It is on the ScriptAddLabelArgumentBean. This is from the ScriptAddLabelArgumentsBean class.

    Regards,

    Kael