4 Replies Latest reply on Jul 24, 2018 8:20 AM by gregor

    PI Web API Filter

    TamLe

      How do you add a filter(s) to the URL?

      https://<server>/piwebapi/streamsets/value?webid=<webid>&Name=RevenueMeterActivePower&webid=<webid>&Name=RevenueMeterActivePower returns the following. How do I only return RevenueMeterActivePower?

       

      {

        "WebId": "<webid>",

        "Name": "RevenueMeterActivePower",

        "Path": "\\\\<server>\\SoCo\\Generation\\SPC\\Solar\\Butler Facility|RevenueMeterActivePower",

        "Links": {

        "Source": "https://<server>/piwebapi/attributes/<webid>"

        },

        "Value": {

        "Timestamp": "2017-09-29T13:41:05Z",

        "Value": 84.2400055,

        "UnitsAbbreviation": "MW",

        "Good": true,

        "Questionable": false,

        "Substituted": false

        }

        },

        {

        "WebId": "<webid>",

        "Name": "WindSpeed",

        "Path": "\\\\<server>\\SoCo\\Generation\\SPC\\Solar\\Adobe\\Blocks\\ADB BLK01\\ADB BLK01 PCS002\\ADB BLK01 PCS002 WS1|WindSpeed",

        "Links": {

        "Source": "https://<server>/piwebapi/attributes/<webid>"

        },

        "Value": {

        "Timestamp": "2017-09-29T13:39:05Z",

        "Value": 0.0,

        "UnitsAbbreviation": "m/s",

        "Good": true,

        "Questionable": false,

        "Substituted": false

        }

        }