For more authentication options, see: https://doc.rapida.ai/api-reference/authentication
Parameters
ConnectionConfig
required
Configuration for the client connection.
GetAllEndpointLogRequest
required
Show child attributes
Show child attributes
Paginate
required
uint64
required
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
int32
Numeric status code for the operation.
boolean
Indicates whether the operation was successful.
EndpointLog[]
Array of endpoint log objects returned by the request.
Show child attributes
Show child attributes
uint64
Unique identifier for the endpoint log entry.
uint64
The identifier of the endpoint this log belongs to.
string
Source system or origin of the endpoint execution.
string
Current status of the endpoint execution.
uint64
Associated project identifier.
uint64
Associated organization identifier.
uint64
Model identifier tied to the endpoint provider.
uint64
Time taken for the endpoint execution in milliseconds.
timestamp
Timestamp when the log entry was created.
timestamp
Timestamp when the log entry was last updated.
Metric[]
Metadata[]
Argument[]
object
object
Pagination information for the response.