const apiInstance = new Fastly.LogExplorerApi();
Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
getLogRecords | GET /observability/log-explorer | Retrieve log records |
getLogRecords({ service_id, start, end, [limit, ][next_cursor, ][filter] })
Retrieves log records.
const options = {
service_id: "service_id_example", // required
start: "start_example", // required
end: "end_example", // required
limit: 3.4,
next_cursor: "next_cursor_example",
filter: "filter_example",
};
apiInstance.getLogRecords(options)
.then((data) => {
console.log(data, "API called successfully.");
})
.catch((error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
service_id | String | ||
start | String | ||
end | String | ||
limit | Number | [optional] | |
next_cursor | String | [optional] | |
filter | String | [optional] |