🎉 Portkey raises Series A - $15M to build AI that never breaks  Read announcement →
from portkey_ai import Portkey
portkey = Portkey(
api_key="PORTKEY_API_KEY"
)
res = portkey.logs.exports.update(
export_id="EXPORT_ID",
workspace_id="WORKSPACE_ID",
filters={
"time_of_generation_max": "2024-07-25"
}
)
print(res){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"total": 123,
"object": "export"
}from portkey_ai import Portkey
portkey = Portkey(
api_key="PORTKEY_API_KEY"
)
res = portkey.logs.exports.update(
export_id="EXPORT_ID",
workspace_id="WORKSPACE_ID",
filters={
"time_of_generation_max": "2024-07-25"
}
)
print(res){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"total": 123,
"object": "export"
}Documentation Index
Fetch the complete documentation index at: https://portkey-docs-log-export-guide-1773064217.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Show child attributes
id, trace_id, created_at, request, response, is_success, ai_org, ai_model, req_units, res_units, total_units, request_url, cost, cost_currency, response_time, response_status_code, mode, config, prompt_slug, metadata Was this page helpful?