# Log

> **Package : spaceone.api.monitoring.plugin**

## Log

{% hint style="info" %}
**Log Methods:**
{% endhint %}

| NO | Method            | Request Type              | Response Type                                            | Description |
| -- | ----------------- | ------------------------- | -------------------------------------------------------- | ----------- |
| 1  | [**list**](#list) | [LogRequest](#logrequest) | **`stream`**   [PluginLogsResponse](#pluginlogsresponse) |             |

### list

| Type     | Message                                   |
| -------- | ----------------------------------------- |
| Request  | [LogRequest](#logrequest)                 |
| Response | [PluginLogsResponse](#pluginlogsresponse) |

## Message

### LogRequest

| No | Field        | Type                                                                                                                     | Required | Description |
| -- | ------------ | ------------------------------------------------------------------------------------------------------------------------ | -------- | ----------- |
| 1  | options      | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto)       | ✅        |             |
| 2  | secret\_data | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto)       | ✅        |             |
| 3  | filter       | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto)       | ✅        |             |
| 4  | resource     | [google.protobuf.Value](https://developers.google.com/protocol-buffers/docs/reference/overview)                          | ❌        |             |
| 5  | start        | [google.protobuf.Timestamp](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/timestamp.proto) | ❌        |             |
| 6  | end          | [google.protobuf.Timestamp](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/timestamp.proto) | ❌        |             |
| 7  | sort         | [Sort](#sort)                                                                                                            | ❌        |             |
| 8  | limit        | [int32](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/type.proto)                          | ❌        |             |

### LogsInfo

| No | Field | Type                                                                                                | Description |
| -- | ----- | --------------------------------------------------------------------------------------------------- | ----------- |
| 1  | logs  | [google.protobuf.ListValue](https://developers.google.com/protocol-buffers/docs/reference/overview) |             |

### PluginLogsResponse

| No | Field          | Type                                                                                                                   | Required | Description |
| -- | -------------- | ---------------------------------------------------------------------------------------------------------------------- | -------- | ----------- |
| 1  | resource\_type | string                                                                                                                 | ✅        |             |
| 2  | actions        | [spaceone.api.core.v1.PluginAction](https://spaceone-dev.gitbook.io/spaceone-apis/v0.9.6/core/v1/plugin##pluginaction) | ❌        |             |
| 3  | result         | [LogsInfo](#logsinfo)                                                                                                  | ✅        |             |

### Sort

| No | Field | Type   | Description |
| -- | ----- | ------ | ----------- |
| 1  | key   | string |             |
| 2  | desc  | bool   |             |
