REST API  14
REST API for Luna Network HSMs
GET /api/lunasa/network/devices/{deviceid}/measurementStats

GET /api/lunasa/network/devices/{deviceid}/measurementStats?duration=90

This resource allows to list the measurement statistics according to the duration entered in the query.

User Privileges

Users with the following role privileges can perform this command:

  • admin
  • operator
  • monitor

Queries

duration

The measurement duration in seconds (1-99999).

Use: Required

JSON Schema:

    Object
    type: string

Parameters

deviceid

The identifier of a network device.

Use: Required

JSON Schema:

    Object
    type: string

Responses

200

Measurement statistics information for the given interface.

JSON Schema: Network Device MeasurementStats

400

APPLIANCE_MEASUREMENT_DURATION_REQUIRED

Duration for measurement statistics is required.

400

APPLIANCE_FAILED_TO_GET_MEASUREMENT_STATS

Failed to return measurement statistics.

404

APPLIANCE_INTERFACE_DOES_NOT_EXIST

Specified interface does not exist.

Example Request

    GET
    https://1.2.3.4:8443/api/lunasa/network/devices/{deviceid}/measurementStats?duration=90
    { }

Example Result

{
    "clientStatistics": [
        {
            "1.2.3.4":
                {
                    "avg": "58.98",
                    "classId": "default",
                    "max": "109.76",
                    "min": "25.27"
                }
        },
        {
            "5.6.7.8":
                {
                    "avg": "58.92",
                    "classId": "testClass",
                    "max": "109.76",
                    "min": "25.27"
                }
        }
    ]
}

See Also

GET /api/lunasa/network/measurement