[1af742]: / project / co⚡e_-_sparkplug™_mqtt_edge_and_host-edge_b9741afd / function_blocks_d9bd2ff1 / fb_device_309d3c13 / fb_device_98658e3f / getmetricbyname_7405529a / 7405529a73814c4abf03667e6f5f50a5.object  Maximize  Restore  History

Download this file

1 lines (1 with data), 5.2 kB

1
{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)7405529a-7381-4c4a-bf03-667e6f5f50a5","ParentGuid":"(Guid)98658e3f-2022-4201-ad82-e23b1cb5aaf1","Name":"(string)GetMetricbyName","Properties":{"@Type":"2c41fa04:IDictionary","@Value":{}},"TypeGuid":"(Guid)f8a58466-d7f6-439f-bbb8-d4600e41d099","EmbeddedTypeGuids":{"@Type":"[Guid]","@Value":["(Guid)a9ed5b7e-75c5-4651-af16-d2c27e98cb94","(Guid)3b83b776-fb25-43b8-99f2-3c507c9143fc"]}}},"TypeInfos":{"2c41fa04":"{2c41fa04-1834-41c1-816e-303c7aa2c05b}","81297157":"{81297157-7ec9-45ce-845e-84cab2b88ade}","Guid":"System.Guid","string":"System.String"}},"object":{"Graph":{"@Type":"f8a58466","@Value":{"Implementation":{"@Type":"3b83b776","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)276","Tag":null,"Text":"(string)//Device Metric"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)277","Tag":null,"Text":"(string)eError := SPStack.ERROR.DeviceIDNotFound;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)278","Tag":null,"Text":"(string)_metrics.ItterateRestart(HasNext => HasNext);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)279","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)280","Tag":null,"Text":"(string)WHILE HasNext AND NOT FoundMetric DO"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)281","Tag":null,"Text":"(string)    _metrics.ItterateNext(itfElement => itfElement,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)282","Tag":null,"Text":"(string)        HasNext => HasNext);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)283","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)284","Tag":null,"Text":"(string)    IF __QUERYINTERFACE(itfElement,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)285","Tag":null,"Text":"(string)        _Metric) THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)286","Tag":null,"Text":"(string)        IF _Metric.Name = MetricName THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)287","Tag":null,"Text":"(string)            FoundMetric := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)288","Tag":null,"Text":"(string)            eError := SPStack.ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)289","Tag":null,"Text":"(string)            Metric := _Metric;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)290","Tag":null,"Text":"(string)        END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)291","Tag":null,"Text":"(string)    END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)292","Tag":null,"Text":"(string)END_WHILE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)293","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)294","Tag":null,"Text":"(string)xError := (eError <> SPStack.ERROR.NO_ERROR);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)295","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)296","Tag":null,"Text":"(string)IF Metric = 0 THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)297","Tag":null,"Text":"(string)    Metric := SPStack.GVL_SPStack.InvalidMetric;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)186","Tag":null,"Text":"(string)END_IF"}}]}}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)261","Tag":null,"Text":"(string)METHOD GetMetricbyName"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)262","Tag":null,"Text":"(string)VAR_IN_OUT CONSTANT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)263","Tag":null,"Text":"(string)    MetricName : WSTRING;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)264","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)265","Tag":null,"Text":"(string)VAR_OUTPUT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)266","Tag":null,"Text":"(string)    Metric : SPStack.IMetric;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)267","Tag":null,"Text":"(string)    GetTimestamp : SPStack.T_DateTime; //NOT IMPLEMENTED"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)268","Tag":null,"Text":"(string)    xError : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)269","Tag":null,"Text":"(string)    eError : SPStack.ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)270","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)271","Tag":null,"Text":"(string)VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)272","Tag":null,"Text":"(string)    HasNext : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)273","Tag":null,"Text":"(string)    FoundMetric : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)274","Tag":null,"Text":"(string)    itfElement : SPStack.IElement;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)275","Tag":null,"Text":"(string)    _Metric : SPStack.IMetric;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)75","Tag":null,"Text":"(string)END_VAR"}}]}}}}}}},"TypeInfos":{"3b83b776":"{3b83b776-fb25-43b8-99f2-3c507c9143fc}","a5de0b0b":"{a5de0b0b-1cb5-4913-ac21-9d70293ec00d}","a9ed5b7e":"{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}","f3878285":"{f3878285-8e4f-490b-bb1b-9acbb7eb04db}","f8a58466":"{f8a58466-d7f6-439f-bbb8-d4600e41d099}","long":"System.Int64","string":"System.String"}}},"FormatVersion":"1.0"}