components

Download Spec

get /monitor-service/api/v1/components

Get all the deployed privx components status

Response

ExamplesSchema

Get all components status OK

{
  "instance_name_1": [
    {
      "component_name": "string",
      "component_type": "MICROSERVICE",
      "hostname": "localhost",
      "status_uri": "/monitor-service/api/v1/status",
      "created": "2017-01-01T15:05:05Z",
      "status": {
        "error_code": "GENERAL_ERROR",
        "error_message": "string",
        "property": "string",
        "details": [
          {
            "error_code": "GENERAL_ERROR",
            "error_message": "string",
            "property": "string",
            "details": [
              null
            ]
          }
        ]
      }
    }
  ],
  "instance_name_2": [
    {
      "component_name": "string",
      "component_type": "MICROSERVICE",
      "hostname": "localhost",
      "status_uri": "/monitor-service/api/v1/status",
      "created": "2017-01-01T15:05:05Z",
      "status": {
        "error_code": "GENERAL_ERROR",
        "error_message": "string",
        "property": "string",
        "details": [
          {
            "error_code": "GENERAL_ERROR",
            "error_message": "string",
            "property": "string",
            "details": [
              null
            ]
          }
        ]
      }
    }
  ]
}

get /monitor-service/api/v1/components/{hostname}

Get component status object by hostname.

hostname

string

required

Hostname

Response

ExamplesSchema

Successful response, returns a component if found

{
  "privx1": [
    {
      "component_name": "string",
      "component_type": "MICROSERVICE",
      "hostname": "localhost",
      "status_uri": "/monitor-service/api/v1/status",
      "created": "2017-01-01T15:05:05Z",
      "status": {
        "error_code": "GENERAL_ERROR",
        "error_message": "string",
        "property": "string",
        "details": [
          {
            "error_code": "GENERAL_ERROR",
            "error_message": "string",
            "property": "string",
            "details": [
              null
            ]
          }
        ]
      }
    }
  ]
}

Was this page helpful?