Get domain metrics in detail¶
Get domain metrics in detail, usually in 5 minites, supported metrics are the ones with time group as m
Request Format¶
METHOD {URI-scheme}://{apigw-address}/solar-api/{version}/detailService/getDomainDetail
Request Parameters¶
Name | Location | Required | Datatype | Description |
---|---|---|---|---|
token | Query | false | String | token, required when user account calls Solar API |
orgId | Query | false | String | orgnization Id, required when service account calls Solar API |
mdmid | Query | true | String | mdm id, can only pass in one mdm id |
metrics | Query | true | String | domain metrics |
begin_time | Query | true | String | begin time, format is yyyy-MM-dd HH:mm:ss |
end_time | Query | true | String | end time, format is yyyy-MM-dd HH:mm:ss |
Response Parameters¶
Name | Datatype | Description |
---|---|---|
timestamp | String | timestamp |
mdmId | String | mdm id |
metrics… | String | metrics… |
Error Codes¶
See Common response code.
Example¶
Request Example¶
GET
https://{apigw-address}/solar-api/v1.0/detailService/getDomainDetail?mdmid=LnxxxxxsG&metrics=metrics1,metrics2&begin_time=2019-01-01 00:00:00&end_time=2019-12-31 00:00:00&token=APP_PORTAL_S_P3HKyz7Qpk7FUwSxxxxxxxv3M86n4ZZ
Response Example¶
{
"metrics": [
{
"INV.a": "9999.000000",
"INV.b": "0.3717",
"INV.c": "223",
"mdmId": "Ln1AUCsG",
"timestamp": "2019-01"
},
{
"INV.a": "9999.000000",
"INV.b": "0.0417",
"INV.c": "25",
"mdmId": "Ln1AUCsG",
"timestamp": "2019-02"
}
],
"status": 0,
"msg": "success"
}