Skip to main content
1-Visitor
Sep 19, 2014 8:58 AM UTC
Solved

Set trigger on move label [SI]

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

    KaelLizakAnswer
    16-Pearl
    Sep 19, 2014 3:07 PM UTC

    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

    2 replies

    1-Visitor
    Sep 19, 2014 9:55 AM UTC

    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?

    Translate
    KaelLizak16-PearlAnswer
    16-Pearl
    Sep 19, 2014 3:07 PM UTC

    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

    Translate