# History

A History is a record of data collection based on a Schedule.

> **Package : spaceone.api.statistics.v1**

\
\


## History

**History Methods:**

| Method                                                                                                               | Request                                                                                                                                      | Response                                                                                                                   |
| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| [**create**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/statistics/v1/History/README.md#create) | [CreateHistoryRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/statistics/v1/History/README.md#createhistoryrequest) | [Empty](https://github.com/cloudforet-io/api-doc/blob/master/content/en/statistics/v1/History/README.md#empty)             |
| [**list**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/statistics/v1/History/README.md#list)     | [QueryHistoryRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/statistics/v1/History/README.md#queryhistoryrequest)   | [HistoryInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/statistics/v1/History/README.md#historyinfo) |
| [**stat**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/statistics/v1/History/README.md#stat)     | [HistoryStatRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/statistics/v1/History/README.md#historystatrequest)     | [Struct](https://github.com/cloudforet-io/api-doc/blob/master/content/en/statistics/v1/History/README.md#struct)           |

\


### create

Creates a new History. Gets a Schedule as an input and creates a History as an output. You can use this method to manually run a specific Schedule.

> **POST** /statistics/v1/history/create

\


### list

Gets a list of all Histories. You can use a query to get a filtered list of Histories.

> **POST** /statistics/v1/history/list

\


### stat

> **POST** /statistics/v1/history/stat

\
\


## Message

### CreateHistoryRequest

*   **schedule\_id** (string) `Required`

    \


### HistoryInfo

* **results** (HistoryValueInfo) `Repeated` `Required`
*   **total\_count** (int32) `Required`

    \


### HistoryStatRequest

* **query** (StatisticsQuery) `Required`
*   **topic** (string)

    \


### HistoryValueInfo

* **topic** (string) `Required`
* **values** (Struct) `Required`
* **domain\_id** (string) `Required`
*   **created\_at** (string) `Required`

    \


### QueryHistoryRequest

* **query** (Query)
*   **topic** (string)

    \
