# Obtain various alarm statistical values ​​listed by day - ListUHostsecWarnDaysStatisticsV2

## Overview

Obtain various alarm statistical values ​​​​listed by day, but do not count brute force cracking failure data, SshBruteFailed is 0






## Definition

### Public Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Action**     | string  | Corresponding API command name, the current API is `ListUHostsecWarnDaysStatisticsV2`.                      | **Yes** |
| **PublicKey**  | string  | The user's public key can be obtained from [Console](https://console.sigcalcloud.com/uaccount/api_manage)                                             | **Yes** |
| **Signature**  | string  | User signature generated based on public key and API command, see [Signature Algorithm](/docs/api/summary/signature.md)  | **Yes** |

### Request Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **ProjectId** | string | Project ID. If not filled in, the default project is used, and the sub-account must be filled in. Please refer to the [GetProjectList interface](/docs/api/summary/get_project_list). |**Yes**|
| **StartTime** | string | Start time for statistics (y-m-d hh:mm:ss). If not filled in, statistics will start from a week ago by default. |No|
| **EndTime** | string | End time for statistics (y-m-d hh:mm:ss). If not filled in, the default is the current time. |No|

### Response Field

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **RetCode** | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. |**Yes**|
| **Action** | string | Operation command name. |**Yes**|
| **Message** | string | Returns an error message, providing detailed description when `RetCode` is non-zero. |No|
| **Statistics** | array[[*Statistics*](#statistics)] | Array of statistical objects by day |**Yes**|

#### Data Model


#### Statistics

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Date** | string | Time for alarm statistics |**Yes**|
| **BaseCheck** | int | Security Baseline Check Alert Statistics |**Yes**|
| **AbnormalLogin** | int | Abnormal Login Alert Statistics |**Yes**|
| **SshBruteSucceeded** | int | Brute Force Success Alert Statistics |**Yes**|
| **SshBruteFailed** | int | Brute Force Failure Statistics |**Yes**|
| **Trojan** | int | Trojan Alert Statistics |**Yes**|
| **VulCheck** | int | Vulnerability Check Alert Statistics |**Yes**|

## Example

### Request Example
    
```
https://api.sigcalcloud.com/?Action=ListUHostsecWarnDaysStatisticsV2
&ProjectId=FyFZMrbc
&StartTime=NTwdDMoh
&EndTime=NwAZPGPe
```

### Response Example
    
```json
{
  "Action": "ListUHostsecWarnDaysStatisticsV2Response",
  "RetCode": 0,
  "Statistics": [
    {
      "AbnormalLogin": 7,
      "BaseCheck": 4,
      "Date": "dbNWmcTX",
      "SshBruteFailed": 3,
      "SshBruteSucceeded": 1,
      "Trojan": 3,
      "VulCheck": 2
    }
  ]
}
```





