POST api/HistoryData/GetStationHistoryDataChart
获取图表/列表数据
Request Information
URI Parameters
None.
Body Parameters
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 inverters 设备列表 [{ sn 设备sn ]} }] targets 选择的指标列表 [{ target_key 指标key }]
TemplateContent| Name | Description | Type | Additional information |
|---|---|---|---|
| qry_type | integer |
None. |
|
| qry_time_start | string |
None. |
|
| qry_time_end | string |
None. |
|
| times | integer |
None. |
|
| qry_status | integer |
None. |
|
| pws_historys | Collection of PowerStationHistory |
None. |
|
| targets | Collection of EquipmentTarget |
None. |
Request Formats
application/json, text/json
{
"qry_type": 1,
"qry_time_start": "sample string 2",
"qry_time_end": "sample string 3",
"times": 4,
"qry_status": 5,
"pws_historys": [
{
"id": "sample string 1",
"pw_name": "sample string 2",
"pw_address": "sample string 3",
"status": 4,
"inverters": [
{
"sn": "sample string 1",
"name": "sample string 2",
"change_num": 3,
"change_type": 4,
"relation_sn": "sample string 5",
"relation_name": "sample string 6",
"status": 7
},
{
"sn": "sample string 1",
"name": "sample string 2",
"change_num": 3,
"change_type": 4,
"relation_sn": "sample string 5",
"relation_name": "sample string 6",
"status": 7
}
]
},
{
"id": "sample string 1",
"pw_name": "sample string 2",
"pw_address": "sample string 3",
"status": 4,
"inverters": [
{
"sn": "sample string 1",
"name": "sample string 2",
"change_num": 3,
"change_type": 4,
"relation_sn": "sample string 5",
"relation_name": "sample string 6",
"status": 7
},
{
"sn": "sample string 1",
"name": "sample string 2",
"change_num": 3,
"change_type": 4,
"relation_sn": "sample string 5",
"relation_name": "sample string 6",
"status": 7
}
]
}
],
"targets": [
{
"target_index": "sample string 1",
"target_key": "sample string 2",
"target_name": "sample string 3",
"target_sn_six": "sample string 4",
"target_sn_seven": "sample string 5",
"template_content": "sample string 6"
},
{
"target_index": "sample string 1",
"target_key": "sample string 2",
"target_name": "sample string 3",
"target_sn_six": "sample string 4",
"target_sn_seven": "sample string 5",
"template_content": "sample string 6"
}
]
}
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
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 原设备/新设备名称 targets 指标及数据: [{ target_key 指标key target_name 指标中文名 datas 数据 [{ stat_date 数据时间 value 数值 ]} ]} }]
HttpResponseMessage| Name | 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. |