All URIs are relative to https://api.whylabsapp.com
Method | HTTP request | Description |
---|---|---|
export_audit_logs | POST /v1/audit-logs/export | Export audit logs |
Response export_audit_logs(start_date, end_date)
Export audit logs
Query audit logs from BigQuery and export them to a file on s3
- Api Key Authentication (ApiKeyAuth):
import time
import whylabs_client
from whylabs_client.api import audit_logs_api
from whylabs_client.model.response import Response
from pprint import pprint
# Defining the host is optional and defaults to https://api.whylabsapp.com
# See configuration.py for a list of all supported configuration parameters.
configuration = whylabs_client.Configuration(
host = "https://api.whylabsapp.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with whylabs_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = audit_logs_api.AuditLogsApi(api_client)
start_date = "start_date_example" # str |
end_date = "end_date_example" # str |
# example passing only required values which don't have defaults set
try:
# Export audit logs
api_response = api_instance.export_audit_logs(start_date, end_date)
pprint(api_response)
except whylabs_client.ApiException as e:
print("Exception when calling AuditLogsApi->export_audit_logs: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
start_date | str | ||
end_date | str |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | ExportAuditLogs 200 response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]