Get trended attributes - Metasys - LIT-12013522 - Software Application - Basic Services client library for .NET (and COM) - Metasys API - 4.2

Metasys REST Client for .NET and COM Developer Guide

Brand
Metasys
Product name
Basic Services client library for .NET (and COM)
Metasys API
Document type
API Reference Guide
Document number
LIT-12013522
Version
4.2
Revision date
2021-04-07
Language
English

To get all available trended attributes of an object, when you have the object ID, use the GetTrendedAttributes.

Note: You can only read samples for attributes that have Trend objects configured for them. If you try to retrieve samples for an attribute of an object that does not have any samples, the client library raises the following exception MetasysHttpNotFoundException.
Table 1. Get trended attributes .NET signature
Library method name GetTrendedAttributes
Description Get a list of trended attributes for a specific object.
Method signature List<Attribute>GetTrendedAttributes(Guid id);
Method input parameters id: GUID of the target object the method retrieves the list of attributes from after configuring the trend object.
Return value A list of Attribute objects.