public ServiceCall < LogCollection > listAllLogs ( ListAllLogsOptions listAllLogsOptions ) { Validator . notNull ( listAllLogsOptions , "listAllLogsOptions cannot be null" ) ; String [ ] pathSegments = { "v1/logs" } ; RequestBuilder builder = RequestBuilder . get ( RequestBuilder . constructHttpUrl ( getEndPoint ( ) , pathSegments ) ) ; builder . query ( "version" , versionDate ) ; Map < String , String > sdkHeaders = SdkCommon . getSdkHeaders ( "conversation" , "v1" , "listAllLogs" ) ; for ( Entry < String , String > header : sdkHeaders . entrySet ( ) ) { builder . header ( header . getKey ( ) , header . getValue ( ) ) ; } builder . header ( "Accept" , "application/json" ) ; builder . query ( "filter" , listAllLogsOptions . filter ( ) ) ; if ( listAllLogsOptions . sort ( ) != null ) { builder . query ( "sort" , listAllLogsOptions . sort ( ) ) ; } if ( listAllLogsOptions . pageLimit ( ) != null ) { builder . query ( "page_limit" , String . valueOf ( listAllLogsOptions . pageLimit ( ) ) ) ; } if ( listAllLogsOptions . cursor ( ) != null ) { builder . query ( "cursor" , listAllLogsOptions . cursor ( ) ) ; } return createServiceCall ( builder . build ( ) , ResponseConverterUtils . getObject ( LogCollection . class ) ) ; }
List log events in all workspaces .