Skip to content

Latest commit

 

History

History
65 lines (48 loc) · 1.77 KB

LogExplorerApi.md

File metadata and controls

65 lines (48 loc) · 1.77 KB

Fastly\Api\LogExplorerApi

$apiInstance = new Fastly\Api\LogExplorerApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);

Methods

Note

All URIs are relative to https://api.fastly.com

Method HTTP request Description
getLogRecords() GET /observability/log-explorer Retrieve log records

getLogRecords()

getLogRecords($options): \Fastly\Model\GetLogRecordsResponse // Retrieve log records

Retrieves log records.

Example

    $options['service_id'] = 'service_id_example'; // string
$options['start'] = 'start_example'; // string
$options['end'] = 'end_example'; // string
$options['limit'] = 3.4; // float
$options['next_cursor'] = 'next_cursor_example'; // string
$options['filter'] = 'filter_example'; // string

try {
    $result = $apiInstance->getLogRecords($options);
} catch (Exception $e) {
    echo 'Exception when calling LogExplorerApi->getLogRecords: ', $e->getMessage(), PHP_EOL;
}

Options

Note: the input parameter is an associative array with the keys listed below.

Name Type Description Notes
service_id string
start string
end string
limit float [optional]
next_cursor string [optional]
filter string [optional]

Return type

\Fastly\Model\GetLogRecordsResponse

[Back to top] [Back to API list] [Back to README]