Details

    • Type: New Feature Request
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0alpha2
    • Fix Version/s: None
    • Component/s: API (A)
    • Labels:

      Description

      ZBXNEXT-1424 implements the possibility to read, create and adjust valuemaps via the API.

      It would be logical to now have history.get output value mapped information as well.

      My suggestion is the following solution:

      We should be able to set a flag on the history.get call, expandValueMap feels logical to me.

      {
          "jsonrpc": "2.0",
          "method": "history.get",
          "params": {
              "output": "extend",
              "history": 3,
              "itemids": "23296",
              "sortfield": "clock",
              "sortorder": "DESC",
              "limit": 1,
              "expandValueMap": 1
          },
          "auth": "038e1d7b1735c6a5436ee9eae095879e",
          "id": 1
      }
      

      The output would look something like this then:

      {
          "jsonrpc": "2.0",
          "result": [
              {
                  "itemid": "23296",
                  "clock": "1351090456",
                  "value": "5",
                  "mappedvalue": "Some string representing this value",
                  "ns": "435307141"
              }
          ],
          "id": 1
      }
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              qix Raymond Kuiper
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: