For more authentication options, see: https://doc.rapida.ai/api-reference/authentication
Parameters
Configuration for the client connection.
Show child attributes
Show child attributes
The unique identifier of the endpoint for which to retrieve all log entries.
Usage
from rapida import (
ConnectionConfig,
GetAllEndpointLogRequest,
get_all_endpoint_log
)
from pprint import pprint
connection_config = ConnectionConfig.default_connection_config(
ConnectionConfig.with_sdk("{your-rapida-api-key}")
)
response = get_all_endpoint_log(
client_cfg=connection_config,
request=GetAllEndpointLogRequest(
endpointId=2223006263292198912,
paginate=Paginate(page=0, pageSize=20),
# criterias=[Criteria(key="KEY", value="VALUE", logic="should")],
),
)
pprint(response)
package main
import (
"context"
"fmt"
"os"
clients "github.com/rapidaai/rapida-go/rapida/clients"
rapida_proto "github.com/rapidaai/rapida-go/rapida/clients/protos"
connections "github.com/rapidaai/rapida-go/rapida/connections"
)
func main() {
// Configure client connection using RAPIDA_PROJECT_CREDENTIAL environment variable
connectionConfig := connections.
DefaultconnectionConfig(connections.WithSDK(os.Getenv("RAPIDA_PROJECT_CREDENTIAL"))).WithLocal()
// Retrieve all endpoint logs with pagination for a specific endpoint
response, err := clients.GetAllEndpointLog(context.Background(), connectionConfig, &rapida_proto.GetAllEndpointLogRequest{
Paginate: &rapida_proto.Paginate{
Page: 0,
PageSize: 20,
},
EndpointId: 2223006263292198912,
// Optional: Add filtering criteria
// Criterias: []*rapida_proto.Criteria{{
// Key: "key",
// Value: "value",
// Logic: "should", // or "must"
// }},
})
if err != nil {
fmt.Printf("Error while making call using rapida: %+v\n", err)
return
}
// Print the response
fmt.Printf("Rapida calling response: %+v\n", response)
}
import {
ConnectionConfig,
GetAllEndpointLog,
Paginate,
Criteria,
GetAllEndpointLogRequest,
} from "@rapidaai/nodejs";
(async () => {
const connectionCfg = ConnectionConfig.DefaultConnectionConfig(
ConnectionConfig.WithSDK({
ApiKey: process.env.RAPIDA_PROJECT_CREDENTIAL,
})
);
getAllEndpointLogs(connectionCfg)
})();
async function getAllEndpointLogs(connectionCfg) {
const request = new GetAllEndpointLogRequest();
let paginate = new Paginate();
paginate.setPage(0);
paginate.setPagesize(20);
request.setPaginate(paginate);
let criteria = new Criteria();
criteria.setKey("KEY FOR FILTER");
criteria.setValue("MATCHING _VAULE");
criteria.setLogic("should" || "must");
request.addCriterias(criteria);
const response = await GetAllEndpointLog(connectionCfg, request);
if (response.getError()) {
console.error(
"Error fetching all endpoint logs:",
response.getError()?.getHumanmessage()
);
} else {
console.log("All Endpoint Logs:", response.getData().toObject());
}
}
Response
Numeric status code for the operation.
Indicates whether the operation was successful.
Array of endpoint log objects returned by the request.
Show child attributes
Show child attributes
Unique identifier for the endpoint log entry.
The identifier of the endpoint this log belongs to.
Source system or origin of the endpoint execution.
Current status of the endpoint execution.
Associated project identifier.
Associated organization identifier.
Model identifier tied to the endpoint provider.
Time taken for the endpoint execution in milliseconds.
Timestamp when the log entry was created.
Timestamp when the log entry was last updated.
Pagination information for the response.
Show child attributes
Show child attributes
Total number of endpoint logs available.
Total number of pages available.
Current page number (0-based).
Number of items per page.
Indicates if there are more pages available.
Indicates if there are previous pages available.