POST api/HistoryData/QueryTemplateByID
获取模板内容
Request Information
URI Parameters
None.
Body Parameters
tm_id 模板ID
TemplateOnHistoryName | Description | Type | Additional information |
---|---|---|---|
tm_id | string |
None. |
Request Formats
application/json, text/json
{ "tm_id": "sample string 1" }
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
qry_type 查询类型 1:所有电站 3:自有电站(如用户为组织,则自有为:拥有和归属本节点) qry_time_start 查询时间 起 yyyy-MM-dd HH:mm qry_time_end 查询时间 止 yyyy-MM-dd HH:mm times 数据粒度 分钟 5 15 60 qry_status 输出格式 0:列表 1:曲线 2:所有 pws_historys 选择电站、设备列表: [{ id 电站ID pw_name 电站名称 pw_address 电站地址 status 电站状态(-1:离线 0:待机 1:正常 2:停机) inverters 设备列表 [{ sn 设备sn name 设备名称 change_num 更换序号 change_type 更换设备的类型 0:无更换 -1:被更换的设备 1:更换上线的设备 relation_sn 原设备/新设备SN relation_name 原设备/新设备名称 status 设备状态(-1:离线 0:待机 1:正常 2:停机) ]} }] targets 指标列表 [{ target_index 指标标识 -排序号 target_key 指标key target_name 指标中文名 target_sn_six 支持SN号第六位的字母 如 s,d,m 所有则为空 target_sn_seven 支持SN号第七位的字母 如 s,t template_content 模板内容 ]}
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |