Skip to content

Latest commit

 

History

History
62 lines (46 loc) · 1.38 KB

LogExplorerApi.md

File metadata and controls

62 lines (46 loc) · 1.38 KB

Fastly.LogExplorerApi

const apiInstance = new Fastly.LogExplorerApi();

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({ service_id, start, end, [limit, ][next_cursor, ][filter] })

Retrieves log records.

Example

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);
  });

Options

Name Type Description Notes
service_id String
start String
end String
limit Number [optional]
next_cursor String [optional]
filter String [optional]

Return type

GetLogRecordsResponse

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