CM Monitors

CM Monitor

GET /_cm/monitors/<monitor_id>

Description Fetch the monitor with latest tag values

Http Method GET

ENDPOINT /_cm/monitors/<monitor_id>

Request Header Authorization Basic <token>

Request Parameters

URL Parameters

  • monitor_id (string, required): The ID of the associated monitor.

Sample Request

curl --location 'https://app.4pointx.com/_cm/monitors/5a2571b8-7192-4176-8e29-a7c821e6e2d3' \
--header 'Authorization: Basic <token>'

Sample Response

Success

{
    "acceleration_x": 52.730000000000004,
    "acceleration_y": 55.77,
    "acceleration_z": 11227.66,
    "displacement_x": 1.8,
    "displacement_y": 2.2,
    "displacement_z": 36.9,
    "temperature": 36.9,
    "velocity_x": 8.535,
    "velocity_y": 0.10200000000000001,
    "velocity_z": 0.158
}

Error

{
  "error": {
      "status": 401,
      "message": "Unauthorized access to module by general-user"
    }
  }
{
  "error": {
    "status": 400,
    "message": "Invalid Monitor Id"
  }
}

CM Monitors List

GET /_cm/monitors/_list

Description Fetch the list of monitors with tag values

Http Method GET

ENDPOINT /_cm/monitors/_list

Request Header Authorization Basic <token>

Request Parameters

URL Parameters

  • asset_id (string, required): The ID of the associated asset.

Sample Request

curl --location 'https://app.4pointx.com/_cm/monitors/_list?asset_id=d3fe9877-b4f4-477e-a790-96a22a4cc665&from=2023-11-15T05:26:36.085Z&to=2024-11-15T05:26:36.085Z' \
--header 'Authorization: Basic <token>'

Sample Response

Success

[
    {
        "monitor_name": "Tecom Condition 2.0 (POC)",
        "timestamp": 1719170044000,
        "acceleration_z": {
            "value": 3879075.84,
            "color": "Black"
        },
        "temperature": {
            "value": 37.9,
            "color": "Black"
        },
        "displacement_x": {
            "value": 1.0,
            "color": "Black"
        },
        "displacement_y": {
            "value": 0.9,
            "color": "Black"
        },
        "displacement_z": {
            "value": 1.7000000000000002,
            "color": "Black"
        },
        "velocity_x": {
            "value": 3801.088,
            "color": "Black"
        },
        "velocity_y": {
            "value": 3997.696,
            "color": "Black"
        },
        "velocity_z": {
            "value": 6946.816,
            "color": "Black"
        },
        "acceleration_x": {
            "value": 2231500.8,
            "color": "Black"
        },
        "acceleration_y": {
            "value": 2040135.68,
            "color": "Black"
        }
    },
    {
        "monitor_name": "Tecom Condition 2.0 (New)",
        "timestamp": 1721740894000,
        "displacement_x": {
            "value": 3.0,
            "color": "Black"
        },
        "displacement_y": {
            "value": 3.7,
            "color": "Black"
        },
        "displacement_z": {
            "value": 4.6000000000000005,
            "color": "Black"
        },
        "velocity_x": {
            "value": 11796.48,
            "color": "Black"
        },
        "velocity_y": {
            "value": 12713.984,
            "color": "Black"
        },
        "velocity_z": {
            "value": 15269.888,
            "color": "Black"
        },
        "acceleration_x": {
            "value": 7372144.640000001,
            "color": "Black"
        },
        "acceleration_y": {
            "value": 7836139.5200000005,
            "color": "Black"
        },
        "acceleration_z": {
            "value": 8293580.8,
            "color": "Black"
        },
        "temperature": {
            "value": 37.800000000000004,
            "color": "Black"
        }
    }
]

Error

{
    "error": {
      "status": 401,
      "message": "Unauthorized access to module by general-user"
    }
}
{
  "error": {
    "status": 400,
    "message": "Invalid Asset Id"
  }
}