Ad Widget

Collapse

Simple conversion from json to graph

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • holamedia
    Junior Member
    • Dec 2020
    • 3

    #1

    Simple conversion from json to graph

    Hi guys,

    I need simple advice.
    I have json with a lot of data such as:

    {"trace_id": 148433, "trace_note": "test", "trace_duration: "3305", "trace_created_at": "2021-10-28 13:52:37.000000"}

    I need to make graph base on:
    Trace time - Trace duration.

    So graph add data based on time provided in json file, and add trace duration as value.

    Thanks.
  • niveastn
    Member
    • Oct 2021
    • 82

    #2
    Hey

    You can create an item that reads this json, and with a regex (item conf > preprocessing >Add > Regular expression) gets only "Trace time" and another one that gets "Trace duration"
    Play around with what you want returned here https://regex101.com/ they even have a few tips, reference and explanations, and you can even change for what type of language you are doing it (:

    Comment

    Working...