getFunctionsByNameLogsWithHttpInfo method

Future<Response> getFunctionsByNameLogsWithHttpInfo(
  1. String name
)

Is the output of a function's most recent run — its error text when that run failed, else what it printed.

Is the output of a function's most recent run — its error text when that run failed, else what it printed. It is the LAST run only, and it is empty when the function has never run. There is no log retention behind this beyond the recorded invocation itself.

Note: This method returns the HTTP Response.

Parameters:

  • String name (required): Name is the function the URL names.

Implementation

Future<Response> getFunctionsByNameLogsWithHttpInfo(String name,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/functions/{name}/logs'
    .replaceAll('{name}', name);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}