# MetricExample

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

\
\


## MetricExample

**MetricExample Methods:**

| Method                                                                                                                    | Request                                                                                                                                                       | Response                                                                                                                                      |
| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| [**create**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/MetricExample/README.md#create) | [CreateMetricExampleRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/MetricExample/README.md#createmetricexamplerequest) | [MetricExampleInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/MetricExample/README.md#metricexampleinfo)   |
| [**update**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/MetricExample/README.md#update) | [UpdateMetricExampleRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/MetricExample/README.md#updatemetricexamplerequest) | [MetricExampleInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/MetricExample/README.md#metricexampleinfo)   |
| [**delete**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/MetricExample/README.md#delete) | [MetricExampleRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/MetricExample/README.md#metricexamplerequest)             | [Empty](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/MetricExample/README.md#empty)                           |
| [**get**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/MetricExample/README.md#get)       | [MetricExampleRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/MetricExample/README.md#metricexamplerequest)             | [MetricExampleInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/MetricExample/README.md#metricexampleinfo)   |
| [**list**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/MetricExample/README.md#list)     | [MetricExampleQuery](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/MetricExample/README.md#metricexamplequery)                 | [MetricExamplesInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/MetricExample/README.md#metricexamplesinfo) |
| [**stat**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/MetricExample/README.md#stat)     | [MetricExampleStatQuery](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/MetricExample/README.md#metricexamplestatquery)         | [Struct](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/MetricExample/README.md#struct)                         |

\


### create

> **POST** /inventory/v1/metric-example/create

\{{< tabs " create " >\}}

\{{< tab "Request Example" >\}}

[CreateMetricExampleRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/MetricExample/README.md#createmetricexamplerequest)

* **metric\_id** (string) `Required`
* **name** (string) `Required`
* **options** (Struct) `Required`
* **tags** (Struct)

\{{< highlight json >\}} {

} \{{< /highlight >\}} \{{< /tab >\}}

\{{< tab "Response Example" >\}}

[MetricExampleInfo](#METRICEXAMPLEINFO)

* **example\_id** (string) `Required`
* **name** (string) `Required`
* **options** (Struct) `Required`
* **tags** (Struct) `Required`
* **domain\_id** (string) `Required`
* **user\_id** (string) `Required`
* **metric\_id** (string) `Required`
* **namespace\_id** (string) `Required`
* **created\_at** (string) `Required`
* **updated\_at** (string) `Required`

\{{< highlight json >\}} {

} \{{< /highlight >\}} \{{< /tab >\}}

\{{< /tabs >\}}

\


### update

> **POST** /inventory/v1/metric-example/update

\{{< tabs " update " >\}}

\{{< tab "Request Example" >\}}

[UpdateMetricExampleRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/MetricExample/README.md#updatemetricexamplerequest)

* **example\_id** (string) `Required`
* **name** (string)
* **options** (Struct)
* **tags** (Struct)

\{{< highlight json >\}} {

} \{{< /highlight >\}} \{{< /tab >\}}

\{{< tab "Response Example" >\}}

[MetricExampleInfo](#METRICEXAMPLEINFO)

* **example\_id** (string) `Required`
* **name** (string) `Required`
* **options** (Struct) `Required`
* **tags** (Struct) `Required`
* **domain\_id** (string) `Required`
* **user\_id** (string) `Required`
* **metric\_id** (string) `Required`
* **namespace\_id** (string) `Required`
* **created\_at** (string) `Required`
* **updated\_at** (string) `Required`

\{{< highlight json >\}} {

} \{{< /highlight >\}} \{{< /tab >\}}

\{{< /tabs >\}}

\


### delete

> **POST** /inventory/v1/metric-example/delete

\{{< tabs " delete " >\}}

\{{< tab "Request Example" >\}}

[MetricExampleRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/MetricExample/README.md#metricexamplerequest)

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

\{{< highlight json >\}} {

} \{{< /highlight >\}} \{{< /tab >\}}

\{{< /tabs >\}}

\


### get

> **POST** /inventory/v1/metric-example/get

\{{< tabs " get " >\}}

\{{< tab "Request Example" >\}}

[MetricExampleRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/MetricExample/README.md#metricexamplerequest)

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

\{{< highlight json >\}} {

} \{{< /highlight >\}} \{{< /tab >\}}

\{{< tab "Response Example" >\}}

[MetricExampleInfo](#METRICEXAMPLEINFO)

* **example\_id** (string) `Required`
* **name** (string) `Required`
* **options** (Struct) `Required`
* **tags** (Struct) `Required`
* **domain\_id** (string) `Required`
* **user\_id** (string) `Required`
* **metric\_id** (string) `Required`
* **namespace\_id** (string) `Required`
* **created\_at** (string) `Required`
* **updated\_at** (string) `Required`

\{{< highlight json >\}} {

} \{{< /highlight >\}} \{{< /tab >\}}

\{{< /tabs >\}}

\


### list

> **POST** /inventory/v1/metric-example/list

\{{< tabs " list " >\}}

\{{< tab "Request Example" >\}}

[MetricExampleQuery](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/MetricExample/README.md#metricexamplequery)

* **query** (Query)
* **example\_id** (string)
* **name** (string)
* **metric\_id** (string)
* **namespace\_id** (string)

\{{< highlight json >\}} {

} \{{< /highlight >\}} \{{< /tab >\}}

\{{< /tabs >\}}

\


### stat

> **POST** /inventory/v1/metric-example/stat

\
\


## Message

### CreateMetricExampleRequest

* **metric\_id** (string) `Required`
* **name** (string) `Required`
* **options** (Struct) `Required`
*   **tags** (Struct)

    \


### MetricExampleInfo

* **example\_id** (string) `Required`
* **name** (string) `Required`
* **options** (Struct) `Required`
* **tags** (Struct) `Required`
* **domain\_id** (string) `Required`
* **user\_id** (string) `Required`
* **metric\_id** (string) `Required`
* **namespace\_id** (string) `Required`
* **created\_at** (string) `Required`
*   **updated\_at** (string) `Required`

    \


### MetricExampleQuery

* **query** (Query)
* **example\_id** (string)
* **name** (string)
* **metric\_id** (string)
*   **namespace\_id** (string)

    \


### MetricExampleRequest

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

    \


### MetricExampleStatQuery

*   **query** (StatisticsQuery) `Required`

    \


### MetricExamplesInfo

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

    \


### UpdateMetricExampleRequest

* **example\_id** (string) `Required`
* **name** (string)
* **options** (Struct)
*   **tags** (Struct)

    \
