Ad Widget

Collapse

LLD macro in another LLD macro on the same discovery rule

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • verde
    Member
    • Jul 2021
    • 39

    #1

    LLD macro in another LLD macro on the same discovery rule

    Hi,
    I'd like to know if it's possible that an LLD macro can include another LLD macro, or How could it be possible to create the following item prototype?

    LLD macros:
    ==========
    {#MACRO1} $.id Remove
    {#MACRO2} $.[?(@.id=='{#MACRO1}')].vm.name Remove
    Add
    Item prototype:
    ===========
    Name: item {#MACRO2} on {#MACRO1}
    Key : vmname[ {#MACRO1} - {#MACRO2} ]


    Currently, the item is being created as "item {#MACRO2} on 53" but the desired is like this "item blaze on 53"

    [
    {
    id: 53,
    vm: {
    "name": "blaze",
    "y": 12
    }

    },,,,,

    ]


    Regards
    Last edited by verde; 19-01-2022, 06:02.
Working...