For more authentication options, see: https://doc.rapida.ai/api-reference/authentication
Parameters
Configuration for the client connection.
Usage
from rapida import (
ConnectionConfig,
GetEndpointLogRequest,
get_endpoint_log
)
from pprint import pprint
connection_config = ConnectionConfig.default_connection_config(
ConnectionConfig.with_sdk("{your-rapida-api-key}")
)
response = get_endpoint_log(
client_cfg=connection_config,
request=GetEndpointLogRequest(
id=2230958607199895552,
endpointId=2223006263292198912,
),
)
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 endpoint log by endpoint ID and log ID
response, err := clients.GetEndpointLog(context.Background(), connectionConfig, &rapida_proto.GetEndpointLogRequest{
EndpointId: "ENDPOINT_ID",
Id: "ENDPOINT_LOG_ID",
})
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,
GetEndpointLog,
GetEndpointLogRequest,
} from "@rapidaai/nodejs";
(async () => {
const connectionCfg = ConnectionConfig.DefaultConnectionConfig(
ConnectionConfig.WithSDK({
ApiKey: process.env.RAPIDA_PROJECT_CREDENTIAL,
})
);
getEndpointLog(connectionCfg)
})();
async function getEndpointLog(connectionCfg) {
const request = new GetEndpointLogRequest();
request.setId(2223006263292198912);
request.setEndpointid(2223006263292198912);
const response = await GetEndpointLog(connectionCfg, request);
if (response.getError()) {
console.error(
"Error fetching endpoint log:",
response.getError()?.getHumanmessage()
);
} else {
console.log("Endpoint Log Details:", response.getData());
}
}
Response
Numeric status code for the operation.
Indicates whether the operation was successful.
Detailed log information for the endpoint execution.
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.