Range

Function

This API is used to get Alarm > Intelligent Analysis configuration parameter scope.

Request Message

None.

Sample:

POST /API/Intelligent/IntelligentAnalysis/Range HTTP/1.1
{
    "version": "1.0",
    "data": {}
}

Response Message

Parameter Description

Table 1
ParameterRangeTypeDescription
channel_infoobjectTotal channel information see Table 2.
page_type"ChannelConfig", "AarmConfig"stringIt is used to distinguish the data of channel configuration page or alarm configuration page.
channel_maxintThe maximum number of channels.
Table 2
ParameterRangeTypeDescription
CH1objectSee Table 3
object
IP_CH1object
object
WIFI_CH1object
object
Table 3
ParameterRangeTypeDescription
"status""Offline", "Online", "Notsupport"stringstatus.
report_type"Daily report", "Weekly report", "Monthly report", "Annual report"Daily report, Weekly report, Monthly report, Yearly report.
cross_type"Number of in", "Number of out"stringcrossing type.
search_datestring length:10stringSearch date.
ai_cross_countboolDistinguish between first-generation and second-generation CC, here the default is true.
detection_type"Motion", "Person", "Vehicle", "Non-motorized Vehicle"stringdetection type.

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {
        "channel_max": 16,
        "channel_info": {
            "type": "object",
            "items": {
                "CH1": {
                    "type": "object",
                    "items": {
                        "status": {
                            "description": "Only offline channel has this variable.",
                            "type": "string",
                            "mode": "r",
                            "items": [
                                "Offline",
                                "Online",
                                "Notsupport"
                            ]
                        },
                        "report_type": {
                            "type": "string",
                            "items": [
                                "Daily report",
                                "Weekly report",
                                "Monthly report",
                                "Annual report"
                            ]
                        },
                        "cross_type": {
                            "type": "string",
                            "items": [
                                "Number of in",
                                "Number of out"
                            ]
                        },
                        "search_date": {
                            "type": "string",
                            "len": 10
                        },
                        "ai_cross_count": {
                            "type": "bool"
                        },
                        "detection_type": {
                            "type": "string",
                            "items": [
                                "Motion",
                                "Person",
                                "Vehicle",
                                "Non-motorized Vehicle"
                            ]
                        }
                    }
                }
            }
        }
    }
}

Error Code

See Response Messages Body and Common error_code for more information.