# Diagnosis

## Diagnosis - GetDirectorDiagnosisAPIStat

Fetches the system diagnostic information of API server.

**GET**

```
https://api-server-host-name/monitorapi/v1/director/diagnosis/api/stat?metrics={metrics_name}
```

#### Parameter

| Field   | Label in UI | Type   | Description                                                                    |
| ------- | ----------- | ------ | ------------------------------------------------------------------------------ |
| metrics |             | String | Query string specifying to retrieve data for specific metrics. Optional Field. |

#### Success Response

```json
[
    {
        "api16.logpoint.local": {
            "1594180200": {
                "zpoolStatistics": [
                    {
                        "name": "app_pool",
                        "health": "ONLINE",
                        "diskAllocation": "3.56G",
                        "freeDisk": "26.2G",
                        "readOperations": "28",
                        "writeOperations": "7",
                        "readBandwidth": "516K",
                        "writeBandwidth": "148K",
                        "failedDisks": []
                    },
                    {
                        "name": "data_pool",
                        "health": "ONLINE",
                        "diskAllocation": "22.2M",
                        "freeDisk": "25.7G",
                        "readOperations": "2",
                        "writeOperations": "4",
                        "readBandwidth": "30.0K",
                        "writeBandwidth": "69.2K",
                        "failedDisks": []
                    },
                    {
                        "name": "rpool",
                        "health": "ONLINE",
                        "diskAllocation": "3.32G",
                        "freeDisk": "20.6G",
                        "readOperations": "12",
                        "writeOperations": "9",
                        "readBandwidth": "419K",
                        "writeBandwidth": "157K",
                        "failedDisks": []
                    }
                ],
                "hardware": "VMware, Inc., VMware Virtual Platform",
                "serialNumber": "VMware-42 33 c8 63 ab ef e3 db-85 ba 1e b2 2c 19 dd 29",
                "diskUsage": [
                    {
                        "filesystem": "rpool/ROOT/com_root",
                        "size": "19G",
                        "used": "3.4G",
                        "available": "16G",
                        "usedPercentage": "18",
                        "mountedOn": "/"
                    },
                    {
                        "filesystem": "app_pool/application",
                        "size": "29G",
                        "used": "3.6G",
                        "available": "26G",
                        "usedPercentage": "13",
                        "mountedOn": "/opt/commander"
                    },
                    {
                        "filesystem": "data_pool/bigstore",
                        "size": "25G",
                        "used": "21M",
                        "available": "25G",
                        "usedPercentage": "1",
                        "mountedOn": "/opt/commander/bigstore"
                    },
                    {
                        "filesystem": "total",
                        "size": "73G",
                        "used": "6.9G",
                        "available": "66G",
                        "usedPercentage": "10",
                        "mountedOn": "-"
                    }
                ],
                "numberOfCores": "4",
                "memoryUsageInMb": {
                    "totalMemory": 7983,
                    "inactiveMemory": 110,
                    "freeMemory": 5375,
                    "availableMemory": 5361
                },
                "idlePercentage": "88.70",
                "ioWait": {
                    "value": 3.53,
                    "message": "High disk IO load: 3.53... It may be necessary to distribute the disk IO to more drives or limit the amount of logs"
                },
                "loadAverage": {
                    "value": 0.48,
                    "message": "No CPU load problems detected"
                },
                "kernelSwap": {
                    "value": "60",
                    "message": "Kernel Swap Info:vm.swappiness = 60 - please set it to 1 by adding vm.swappiness=1 to /etc/sysctl.conf and set it using sysctl vm.swappiness=1"
                },
                "swappingIoInMb": {
                    "value": 0.0,
                    "message": "No memory problems detected"
                },
                "diagnosticsVersion": "2.0.0"
            }
        }
    }
]
```

## Diagnosis - GetDirectorDiagnosisFabricStat

Fetches the system diagnostic information of Fabric server(s).

**GET**

```
https://api-server-host-name/monitorapi/v1/director/diagnosis/fabric/stat?metrics={metrics_name}
```

#### Parameter

| Field   | Label in UI | Type   | Description                                                                    |
| ------- | ----------- | ------ | ------------------------------------------------------------------------------ |
| metrics |             | String | Query string specifying to retrieve data for specific metrics. Optional Field. |

#### Success Response

```json
[
    {
        "fabric15.logpoint.local": {
            "1596546000": {
                "fabricServerCount": 1,
                "fabricProxyService": "active",
                "fabricProxyServerState": "standalone",
                "fabricProxyNumAliveConnections": "18",
                "fabricProxyZnodeCount": "667",
                "fabricProxyAvgLatency": "0",
                "fabricProxyMaxLatency": "288",
                "fabricProxyMinLatency": "0",
                "fabricProxyOpenFileDescriptorCount": "54",
                "fabricProxyMaxFileDescriptorCount": "4096",
                "fabricStorageTotalCapacity": null,
                "fabricStoragePresentCapacity": null,
                "fabricStorageUsedPercent": null,
                "underReplicatedBlocks": null,
                "liveDatanodes": null,
                "fabAuthService": "active",
                "fabAuthAdminService": "active",
                "zpoolStatistics": [
                    {
                        "name": "app_pool",
                        "health": "ONLINE",
                        "diskAllocation": "325M",
                        "freeDisk": "29.4G",
                        "readOperations": "0",
                        "writeOperations": "1",
                        "readBandwidth": "2.22K",
                        "writeBandwidth": "17.6K",
                        "failedDisks": []
                    },
                    {
                        "name": "data_pool",
                        "health": "ONLINE",
                        "diskAllocation": "167M",
                        "freeDisk": "25.6G",
                        "readOperations": "0",
                        "writeOperations": "1",
                        "readBandwidth": "822",
                        "writeBandwidth": "23.7K",
                        "failedDisks": []
                    },
                    {
                        "name": "rpool",
                        "health": "ONLINE",
                        "diskAllocation": "3.32G",
                        "freeDisk": "20.6G",
                        "readOperations": "0",
                        "writeOperations": "8",
                        "readBandwidth": "2.91K",
                        "writeBandwidth": "158K",
                        "failedDisks": []
                    }
                ],
                "hardware": "VMware, Inc., VMware Virtual Platform",
                "serialNumber": "VMware-42 33 d5 67 f4 72 d5 51-68 7d a3 6c 32 b5 3f 8b",
                "diskUsage": [
                    {
                        "filesystem": "rpool/ROOT/com_root",
                        "size": "19G",
                        "used": "3.4G",
                        "available": "16G",
                        "usedPercentage": "18",
                        "mountedOn": "/"
                    },
                    {
                        "filesystem": "app_pool/application",
                        "size": "29G",
                        "used": "324M",
                        "available": "29G",
                        "usedPercentage": "2",
                        "mountedOn": "/opt/commander"
                    },
                    {
                        "filesystem": "data_pool/bigstore",
                        "size": "25G",
                        "used": "165M",
                        "available": "25G",
                        "usedPercentage": "1",
                        "mountedOn": "/opt/commander/bigstore"
                    },
                    {
                        "filesystem": "total",
                        "size": "73G",
                        "used": "3.8G",
                        "available": "69G",
                        "usedPercentage": "6",
                        "mountedOn": "-"
                    }
                ],
                "numberOfCores": "4",
                "memoryUsageInMb": {
                    "totalMemory": 7983,
                    "inactiveMemory": 74,
                    "freeMemory": 5693,
                    "availableMemory": 5601
                },
                "idlePercentage": "95.80",
                "ioWait": {
                    "value": 2.45,
                    "message": "High disk IO load: 2.45... It may be necessary to distribute the disk IO to more drives or limit the amount of logs"
                },
                "loadAverage": {
                    "value": 0.13,
                    "message": "No CPU load problems detected"
                },
                "kernelSwap": {
                    "value": "60",
                    "message": "Kernel Swap Info:vm.swappiness = 60 - please set it to 1 by adding vm.swappiness=1 to /etc/sysctl.conf and set it using sysctl vm.swappiness=1"
                },
                "swappingIoInMb": {
                    "value": 0.0,
                    "message": "No memory problems detected"
                },
                "diagnosticsVersion": "2.0.0"
            }
        }
    }
]
```

***

## Diagnosis - GetDirectorDiagnosisLPSMStat

Fetches the system diagnostic information of LPSM server.

**GET**

```
https://api-server-host-name/monitorapi/v1/director/diagnosis/lpsm/stat?metrics={metrics_name}
```

#### Parameter

| Field   | Label in UI | Type   | Description                                                                    |
| ------- | ----------- | ------ | ------------------------------------------------------------------------------ |
| metrics |             | String | Query string specifying to retrieve data for specific metrics. Optional Field. |

#### Success Response

```json
[
    {
        "lpsm236.logpoint.com": {
            "1594181700": {
                "lpsmVersion": "1.5.0",
                "hardware": "VMware, Inc., VMware Virtual Platform",
                "serialNumber": "VMware-42 33 02 b9 2a 4d 52 97-6d b8 ad 17 b4 be 20 78",
                "diskUsage": [
                    {
                        "filesystem": "rpool/ROOT/lp_root",
                        "size": "19G",
                        "used": "3.3G",
                        "available": "16G",
                        "usedPercentage": "18",
                        "mountedOn": "/"
                    },
                    {
                        "filesystem": "app_pool/application",
                        "size": "9.7G",
                        "used": "2.5G",
                        "available": "7.2G",
                        "usedPercentage": "26",
                        "mountedOn": "/opt"
                    },
                    {
                        "filesystem": "app_store_pool/app_store",
                        "size": "9.7G",
                        "used": "20M",
                        "available": "9.7G",
                        "usedPercentage": "1",
                        "mountedOn": "/opt/makalu/app_store"
                    },
                    {
                        "filesystem": "data_pool/storage",
                        "size": "35G",
                        "used": "896K",
                        "available": "35G",
                        "usedPercentage": "1",
                        "mountedOn": "/opt/makalu/storage"
                    },
                    {
                        "filesystem": "total",
                        "size": "73G",
                        "used": "5.8G",
                        "available": "68G",
                        "usedPercentage": "8",
                        "mountedOn": "-"
                    }
                ],
                "zpoolStatistics": [
                    {
                        "name": "app_pool",
                        "diskAllocation": "2.46G",
                        "freeDisk": "7.48G",
                        "readOperations": "0",
                        "writeOperations": "4",
                        "readBandwidth": "7.22K",
                        "writeBandwidth": "77.2K",
                        "health": "ONLINE",
                        "failedDisks": []
                    },
                    {
                        "name": "app_store_pool",
                        "diskAllocation": "20.2M",
                        "freeDisk": "9.92G",
                        "readOperations": "0",
                        "writeOperations": "0",
                        "readBandwidth": "234",
                        "writeBandwidth": "221",
                        "health": "ONLINE",
                        "failedDisks": []
                    },
                    {
                        "name": "data_pool",
                        "diskAllocation": "1.89M",
                        "freeDisk": "35.7G",
                        "readOperations": "0",
                        "writeOperations": "0",
                        "readBandwidth": "242",
                        "writeBandwidth": "8.29K",
                        "health": "ONLINE",
                        "failedDisks": []
                    },
                    {
                        "name": "rpool",
                        "diskAllocation": "3.24G",
                        "freeDisk": "20.6G",
                        "readOperations": "1",
                        "writeOperations": "7",
                        "readBandwidth": "30.8K",
                        "writeBandwidth": "157K",
                        "health": "ONLINE",
                        "failedDisks": []
                    }
                ],
                "numberOfCores": "4",
                "memoryUsageInMb": {
                    "totalMemory": 7983,
                    "inactiveMemory": 81,
                    "freeMemory": 5982,
                    "availableMemory": 5925
                },
                "idlePercentage": "98.64",
                "ioWait": {
                    "value": "2.1",
                    "message": "High disk IO load: 2.1... It may be necessary to distribute the disk IO to more drives or limit the amount of logs"
                },
                "loadAverage": {
                    "value": "0.01",
                    "message": "No CPU load problems detected"
                },
                "swappingIoInMb": {
                    "value": 0.0,
                    "message": "No memory problems detected"
                },
                "kernelSwap": {
                    "value": "60",
                    "message": "Kernel Swap Info:vm.swappiness = 60 - please set it to 1 by adding vm.swappiness=1 to /etc/sysctl.conf and set it using sysctl vm.swappiness=1"
                },
                "messageQueueStatistics": {
                    "nodeName": "lpsm-messaging-server@localhost",
                    "totalConsumers": 5,
                    "totalQueues": 5,
                    "totalExchanges": 21,
                    "totalConnections": 2,
                    "totalChannels": 4,
                    "queueTotalMessages": 0,
                    "queueTotalMessagesReady": 0,
                    "queueTotalMessagesUnacknowledged": 0,
                    "messagesPublished": 3844,
                    "messagesDelivered": 3845,
                    "running": true,
                    "uptime": 7747027,
                    "osPid": "7906",
                    "diskFree": 16792682496,
                    "diskFreeLimit": 50000000,
                    "diskFreeAlarm": false,
                    "vmMemoryLimit": 3348401356,
                    "memUsed": 53996576,
                    "memAlarm": false,
                    "processLimit": 1048576,
                    "fdTotal": 65536,
                    "fdUsed": 26,
                    "socketsTotal": 58890,
                    "socketsUsed": 3,
                    "procUsed": 217,
                    "queuesNotRunning": ""
                },
                "services": [
                    {
                        "name": "incoherent_updater",
                        "cpu": 0.0,
                        "memory": 0.27,
                        "status": "up"
                    },
                    {
                        "name": "support_con_client",
                        "cpu": 0.0,
                        "memory": 0.06,
                        "status": "up"
                    },
                    {
                        "name": "commander_vpnclient",
                        "cpu": 0.0,
                        "memory": 0.06,
                        "status": "up"
                    },
                    {
                        "name": "jobprocessor",
                        "cpu": 0.0,
                        "memory": 0.24,
                        "status": "up"
                    },
                    {
                        "name": "msui_cleaner",
                        "cpu": 0.0,
                        "memory": 0.27,
                        "status": "up"
                    },
                    {
                        "name": "system_notifications",
                        "cpu": 0.0,
                        "memory": 0.32,
                        "status": "up"
                    },
                    {
                        "name": "mongodb",
                        "cpu": 0.0,
                        "memory": 0.74,
                        "status": "up"
                    },
                    {
                        "name": "webserver",
                        "cpu": 0.0,
                        "memory": 0.28,
                        "status": "up"
                    },
                    {
                        "name": "pool_reader",
                        "cpu": 0.0,
                        "memory": 0.35,
                        "status": "up"
                    },
                    {
                        "name": "support_connection_timeout",
                        "cpu": 0.0,
                        "memory": 0.25,
                        "status": "up"
                    },
                    {
                        "name": "system_metrics",
                        "cpu": 0.0,
                        "memory": 0.28,
                        "status": "up"
                    }
                ],
                "diagnosticsVersion": "2.0.0"
            }
        }
    }
]
```

## Diagnosis - GetDirectorHealth

Fetches the health status on the basis of version compatibility of the API Server and the Fabric Server(s).

**GET**

```
https://api-server-host-name/monitorapi/v1/director/health
```

#### Success Response

```json
{
    "version": {
        "message": "All the Fabric and API servers are in same version.",
        "status": "OK"
    }
}
```

## Diagnosis - GetDirectorVersion

Fetches the current version of the Director Components.

**GET**

```
https://api-server-host-name/monitorapi/v1/director/version
```

#### Success Response

```json
{
    "fabric": {
        "fabric12.logpoint.local": "1.2.0",
        "fabric10.logpoint.local": "1.2.0",
        "fabric11.logpoint.local": "1.2.0"
    },
    "api": {
        "api13.logpoint.local": "1.2.0"
    },
    "lpsm": {
        "lpsm9-14": "1.0.1"
    }
}
```

## Diagnosis - GetLogpointDiagnosisJava

Fetches the java\_memory diagnostic information of Logpoint.

**GET**

```
https://api-server-host-name/monitorapi/v1/{pool_UUID}/{logpoint_identifier}/diagnosis/java?metrics={metrics}
```

#### Parameter

| Field   | Label in UI | Type   | Description                                                                    |
| ------- | ----------- | ------ | ------------------------------------------------------------------------------ |
| metrics |             | String | Query string specifying to retrieve data for specific metrics. Optional Field. |

#### Success Response

```json
[
    {
        "b5ac4e99fc724ec7ba2081f4eed87c19": {
            "c7e0c00da17c407499a76f21a09a9720": {
                "1594278000": {
                    "javaProcesses": [
                        {
                            "processName": "file_keeper__logpoint",
                            "pid": "15425",
                            "message": []
                        },
                        {
                            "processName": "indexsearcher_default",
                            "pid": "15494",
                            "message": [
                                "Young GC is too slow, takes: 0.13816666666666666 millisecs (avg), sb. no more than 50 ms in avg"
                            ]
                        },
                        {
                            "processName": "premerger",
                            "pid": "15431",
                            "message": [
                                "Young GC is too slow, takes: 0.26836363636363636 millisecs (avg), sb. no more than 50 ms in avg"
                            ]
                        },
                        {
                            "processName": "lookup_populator",
                            "pid": "15496",
                            "message": []
                        },
                        {
                            "processName": "enrichment_service",
                            "pid": "15435",
                            "message": []
                        },
                        {
                            "processName": "file_keeper__LogPointAlerts",
                            "pid": "15501",
                            "message": [
                                "Young GC is too slow, takes: 0.218 millisecs (avg), sb. no more than 50 ms in avg"
                            ]
                        },
                        {
                            "processName": "analyzer",
                            "pid": "15410",
                            "message": []
                        },
                        {
                            "processName": "lookup_indexsearcher",
                            "pid": "15350",
                            "message": []
                        },
                        {
                            "processName": "merger",
                            "pid": "15513",
                            "message": [
                                "Young GC is too slow, takes: 0.1545 millisecs (avg), sb. no more than 50 ms in avg"
                            ]
                        },
                        {
                            "processName": "indexsearcher__LogPointAlerts",
                            "pid": "15322",
                            "message": [
                                "Young GC is too slow, takes: 0.14079999999999998 millisecs (avg), sb. no more than 50 ms in avg"
                            ]
                        },
                        {
                            "processName": "file_keeper_default",
                            "pid": "15514",
                            "message": [
                                "Young GC is too slow, takes: 0.4653333333333333 millisecs (avg), sb. no more than 50 ms in avg"
                            ]
                        },
                        {
                            "processName": "dynamic_entity_service",
                            "pid": "15515",
                            "message": [
                                "Young GC is too slow, takes: 0.662 millisecs (avg), sb. no more than 50 ms in avg"
                            ]
                        },
                        {
                            "processName": "labeling",
                            "pid": "15421",
                            "message": []
                        },
                        {
                            "processName": "indexsearcher__logpoint",
                            "pid": "15423",
                            "message": []
                        }
                    ],
                    "diagnosticsVersion": "2.0.0"
                }
            }
        }
    }
]
```

***

## Diagnosis - GetLogpointDiagnosisNormFront

Fetches the norm front diagnostic information of Logpoint.

**GET**

```
https://api-server-host-name/monitorapi/v1/{pool_UUID}/{logpoint_identifier}/diagnosis/norm_front?metrics={metrics}
```

#### Parameter

| Field   | Label in UI | Type   | Description                                                                    |
| ------- | ----------- | ------ | ------------------------------------------------------------------------------ |
| metrics |             | String | Query string specifying to retrieve data for specific metrics. Optional Field. |

#### Success Response

```json
[
    {
        "b5ac4e99fc724ec7ba2081f4eed87c19": {
            "c7e0c00da17c407499a76f21a09a9720": {
                "1594278000": {
                    "actualEps": 0,
                    "averageEps": 0,
                    "totalQueueSizeInBytes": 0.0,
                    "affectedProcesses": [],
                    "diagnosticsVersion": "2.0.0"
                }
            }
        }
    }
]
```

***

## Diagnosis - GetLogpointDiagnosisNormalisers

Fetches the normalisers diagnostic information of Logpoint.

**GET**

```
https://api-server-host-name/monitorapi/v1/{pool_UUID}/{logpoint_identifier}/diagnosis/normalisers?metrics={metrics}
```

#### Parameter

| Field   | Label in UI | Type   | Description                                                                    |
| ------- | ----------- | ------ | ------------------------------------------------------------------------------ |
| metrics |             | String | Query string specifying to retrieve data for specific metrics. Optional Field. |

#### Success Response

```json
[
    {
        "b5ac4e99fc724ec7ba2081f4eed87c19": {
            "c7e0c00da17c407499a76f21a09a9720": {
                "1594278000": {
                    "configuredNormalizers": null,
                    "activeNormalizers": 4,
                    "averageNormalizerLoadinCpuPercentage": 0.1,
                    "totalDoableEps": 0,
                    "averageDoableEps": 0,
                    "totalActualEps": 0,
                    "averageActualEps": 0,
                    "message": [],
                    "totalQueueSizeInBytes": 0.0,
                    "affectedProcesses": [],
                    "diagnosticsVersion": "2.0.0"
                }
            }
        }
    }
]
```

## Diagnosis - GetLogpointDiagnosisPremerger

Fetches the premerger diagnostic information of Logpoint.

**GET**

```
https://api-server-host-name/monitorapi/v1/{pool_UUID}/{logpoint_identifier}/diagnosis/premerger?metrics={metrics}
```

#### Parameter

| Field   | Label in UI | Type   | Description                                                                    |
| ------- | ----------- | ------ | ------------------------------------------------------------------------------ |
| metrics |             | String | Query string specifying to retrieve data for specific metrics. Optional Field. |

#### Success Response

```json
[
    {
        "b5ac4e99fc724ec7ba2081f4eed87c19": {
            "c7e0c00da17c407499a76f21a09a9720": {
                "1594278000": {
                    "completeWidgets": 1,
                    "incompleteWidgets": 0,
                    "message": [
                        "Widget completion looks fine!!"
                    ],
                    "incompleteLiveSearches": [],
                    "diagnosticsVersion": "2.0.0"
                }
            }
        }
    }
]
```

***

## Diagnosis - GetLogpointDiagnosisStat

Fetches the system diagnostic information of Logpoint.

**GET**

```
https://api-server-host-name/monitorapi/v1/{pool_UUID}/{logpoint_identifier}/diagnosis/stat?metrics={metrics}
```

#### Parameter

| Field   | Label in UI | Type   | Description                                                                    |
| ------- | ----------- | ------ | ------------------------------------------------------------------------------ |
| metrics |             | String | Query string specifying to retrieve data for specific metrics. Optional Field. |

#### Success Response

```json
[
    {
        "b5ac4e99fc724ec7ba2081f4eed87c19": {
            "c7e0c00da17c407499a76f21a09a9720": {
                "1594202400": {
                    "logPointVersion": "7.1.0.339",
                    "openFiles": 13546,
                    "hardware": "VMware, Inc., VMware Virtual Platform",
                    "serialNumber": "VMware-42 33 31 1b 81 eb 1c 8a-6e db c2 30 50 44 ec 17",
                    "diskUsage": [
                        {
                            "filesystem": "rpool/ROOT/lp_root",
                            "size": "19G",
                            "used": "4.3G",
                            "available": "15G",
                            "usedPercentage": "23",
                            "mountedOn": "/"
                        },
                        {
                            "filesystem": "app_pool/application",
                            "size": "9.7G",
                            "used": "2.0G",
                            "available": "7.7G",
                            "usedPercentage": "21",
                            "mountedOn": "/opt"
                        },
                        {
                            "filesystem": "app_store_pool/app_store",
                            "size": "9.7G",
                            "used": "113M",
                            "available": "9.6G",
                            "usedPercentage": "2",
                            "mountedOn": "/opt/makalu/app_store"
                        },
                        {
                            "filesystem": "data_pool/storage",
                            "size": "35G",
                            "used": "410M",
                            "available": "35G",
                            "usedPercentage": "2",
                            "mountedOn": "/opt/makalu/storage"
                        },
                        {
                            "filesystem": "total",
                            "size": "73G",
                            "used": "6.8G",
                            "available": "67G",
                            "usedPercentage": "10",
                            "mountedOn": "-"
                        }
                    ],
                    "zpoolStatistics": [
                        {
                            "name": "app_pool",
                            "diskAllocation": "2.00G",
                            "freeDisk": "7.94G",
                            "readOperations": "0",
                            "writeOperations": "9",
                            "readBandwidth": "4.81K",
                            "writeBandwidth": "177K",
                            "health": "ONLINE",
                            "failedDisks": []
                        },
                        {
                            "name": "app_store_pool",
                            "diskAllocation": "121M",
                            "freeDisk": "9.82G",
                            "readOperations": "0",
                            "writeOperations": "3",
                            "readBandwidth": "1.86K",
                            "writeBandwidth": "69.0K",
                            "health": "ONLINE",
                            "failedDisks": []
                        },
                        {
                            "name": "data_pool",
                            "diskAllocation": "419M",
                            "freeDisk": "35.3G",
                            "readOperations": "0",
                            "writeOperations": "6",
                            "readBandwidth": "898",
                            "writeBandwidth": "158K",
                            "health": "ONLINE",
                            "failedDisks": []
                        },
                        {
                            "name": "rpool",
                            "diskAllocation": "4.25G",
                            "freeDisk": "19.6G",
                            "readOperations": "0",
                            "writeOperations": "9",
                            "readBandwidth": "11.7K",
                            "writeBandwidth": "179K",
                            "health": "ONLINE",
                            "failedDisks": []
                        }
                    ],
                    "numberOfCores": "4",
                    "memoryUsageInMb": {
                        "totalMemory": 7976,
                        "inactiveMemory": 240,
                        "freeMemory": 563,
                        "availableMemory": 669
                    },
                    "idlePercentage": "89.20",
                    "ioWait": {
                        "value": "1.34",
                        "message": "High disk IO load: 1.34... It may be necessary to distribute the disk IO to more drives or limit the amount of logs"
                    },
                    "loadAverage": {
                        "value": "0.59",
                        "message": "No CPU load problems detected"
                    },
                    "swappingIoInMb": {
                        "value": 0.0,
                        "message": "No memory problems detected"
                    },
                    "kernelSwap": {
                        "value": "60",
                        "message": "Kernel Swap Info:vm.swappiness = 60 - please set it to 1 by adding vm.swappiness=1 to /etc/sysctl.conf and set it using sysctl vm.swappiness=1"
                    },
                    "serviceLayers": {
                        "collection": {
                            "cpu": 0.0,
                            "memory": 1519.52,
                            "queue": 0
                        },
                        "normalization": {
                            "cpu": 2.0,
                            "memory": 4.55,
                            "queue": 0
                        },
                        "enrichment": {
                            "cpu": 0.0,
                            "memory": 9.66,
                            "queue": 0
                        },
                        "indexing": {
                            "cpu": 1.0,
                            "memory": 19.360000000000003,
                            "queue": 0
                        },
                        "liveSearch": {
                            "cpu": 0.0,
                            "memory": 7.07,
                            "storage": 2.47
                        }
                    },
                    "stoppedServices": [
                        "remote_con_server"
                    ],
                    "repoDiskUsage": [
                        {
                            "repoName": "default",
                            "currentUsageInMb": "0.74805",
                            "logSizeYesterdayInMb": 0,
                            "logSizeLastMonthInMb": 0
                        },
                        {
                            "repoName": "_logpoint",
                            "currentUsageInMb": "383.72363",
                            "logSizeYesterdayInMb": 0,
                            "logSizeLastMonthInMb": 0
                        },
                        {
                            "repoName": "_LogPointAlerts",
                            "currentUsageInMb": "0.05176",
                            "logSizeYesterdayInMb": null,
                            "logSizeLastMonthInMb": null
                        }
                    ],
                    "diagnosticsVersion": "2.0.0"
                }
            }
        }
    }
]
```

## Diagnosis - GetLogpointDiagnosisStoreHandler

Fetches the store handler diagnostic information of Logpoint.

**GET**

```
https://api-server-host-name/monitorapi/v1/{pool_UUID}/{logpoint_identifier}/diagnosis/store_handler?metrics={metrics}
```

#### Parameter

| Field   | Label in UI | Type   | Description                                                                    |
| ------- | ----------- | ------ | ------------------------------------------------------------------------------ |
| metrics |             | String | Query string specifying to retrieve data for specific metrics. Optional Field. |

#### Success Response

```json
[
    {
        "b5ac4e99fc724ec7ba2081f4eed87c19": {
            "c7e0c00da17c407499a76f21a09a9720": {
                "1594278000": {
                    "actualEps": 0,
                    "averageEps": 0,
                    "totalQueueSizeInBytes": 0.0,
                    "affectedProcesses": [],
                    "diagnosticsVersion": "1.0.0"
                }
            }
        }
    }
]
```

## Diagnosis - GetPoolInfo

Fetches pool and machine information.

**GET**

```
https://api-server-host-name/monitorapi/v1/director/poolinfo
```

#### Success Response

```json
[
    {
        "active": true,
        "machines": [
            {
                "director_mode": "fabric_only",
                "identifier": "2ea122a7bea4451b855967837d552a78",
                "name": "LogPoint",
                "version": "6.11.0"
            }
        ],
        "name": "Pool1",
        "pool_uuid": "99e45a6941d0435dab3133f603e41303"
    },
    {
        "active": false,
        "machines": [],
        "name": "Pool2",
        "pool_uuid": "513345eef98440df903457a5370d1233"
    }
]
```
