Sha256: c15186d872432b2204a69ccffe68facf66be5a1805a6ed0fcc1565a145c632f0

Contents?: true

Size: 1.48 KB

Versions: 1

Compression:

Stored size: 1.48 KB

Contents

# Fastly::LogExplorerApi


```ruby
require 'fastly'
api_instance = Fastly::LogExplorerApi.new
```

## Methods

> [!NOTE]
> All URIs are relative to `https://api.fastly.com`

Method | HTTP request | Description
------ | ------------ | -----------
[**get_log_records**](LogExplorerApi.md#get_log_records) | **GET** /observability/log-explorer | Retrieve log records


## `get_log_records()`

```ruby
get_log_records(opts): <GetLogRecordsResponse> # Retrieve log records
```

Retrieves log records.

### Examples

```ruby
api_instance = Fastly::LogExplorerApi.new
opts = {
    service_id: 'service_id_example', # String | 
    start: 'start_example', # String | 
    _end: '_end_example', # String | 
    limit: 8.14, # Float | 
    next_cursor: 'next_cursor_example', # String | 
    filter: 'filter_example', # String | 
}

begin
  # Retrieve log records
  result = api_instance.get_log_records(opts)
  p result
rescue Fastly::ApiError => e
  puts "Error when calling LogExplorerApi->get_log_records: #{e}"
end
```

### Options

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **service_id** | **String** |  |  |
| **start** | **String** |  |  |
| **_end** | **String** |  |  |
| **limit** | **Float** |  | [optional] |
| **next_cursor** | **String** |  | [optional] |
| **filter** | **String** |  | [optional] |

### Return type

[**GetLogRecordsResponse**](GetLogRecordsResponse.md)

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to README]](../../README.md)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fastly-9.0.0 docs/LogExplorerApi.md