Generalize LLD macros into 2nd preprocessing stage

XMLWordPrintable

    • Type: Change Request
    • Resolution: Unresolved
    • Priority: Minor
    • None
    • Affects Version/s: 7.0.0
    • Component/s: Frontend (F), Server (S)
    • Environment:
      Debian 12

      While working with LLD, I discovered another place that requires javascript preprocessing, but feels like it should be simpler: Preprocessing of individual discoveries.

       

      Currently there is no way to do this but reading the whole JSON by javascript, making changes to individual discoveries and then re-exporting to JSON.

       

      Currently the "LLD Macros" tab is fixed to one preprocessing command: JSONPath from individual discovery's sub-JSON - let's call it {#LLDVALUE}.

      I propose expading this into a full per-individual-discovery preprocessing stage, adding other steps known from standard preprocessing, allowing more freedom in input formats.

       

      I propose expanding the "LLD Macros" tab into this format:

       

      Preprocessing function Source macro Preprocessing arguments

       

      By default include the, now implicit, "JSON to macros" step:

      Preprocessing function Source macro Preprocessing arguments
      JSON to macros {#LLDVALUE} none

       

            Assignee:
            Valdis Murzins
            Reporter:
            user185953
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: