Package dev.vality.damsel.reports
Class ReportingSrv.Client
java.lang.Object
org.apache.thrift.TServiceClient
dev.vality.damsel.reports.ReportingSrv.Client
- All Implemented Interfaces:
ReportingSrv.Iface
- Enclosing class:
- ReportingSrv
public static class ReportingSrv.Client extends org.apache.thrift.TServiceClient implements ReportingSrv.Iface
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReportingSrv.Client.Factory -
Field Summary
Fields inherited from class org.apache.thrift.TServiceClient
iprot_, oprot_, seqid_ -
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidcancelReport(String party_id, String shop_id, long report_id)Запрос на отмену отчета ReportNotFound, если отчет не найденStringgeneratePresignedUrl(String file_id, String expires_at)Сгенерировать ссылку на файл file_id - идентификатор файла expires_at - время до которого ссылка будет считаться действительной Возвращает presigned url FileNotFound, если файл не найден InvalidRequest, если expires_at некорректенlonggenerateReport(ReportRequest request, ReportType report_type)Сгенерировать отчет с указанным типом по магазину за указанный промежуток времени Возвращает идентификатор отчета PartyNotFound, если party не найден ShopNotFound, если shop не найден InvalidRequest, если промежуток времени некорректенReportgetReport(String party_id, String shop_id, long report_id)Запрос на получение отчета ReportNotFound, если отчет не найденList<Report>getReports(ReportRequest request, List<ReportType> report_types)Получить список отчетов по магазину за указанный промежуток времени с фильтрацией по типу В случае если список report_types пустой, фильтрации по типу не будет Возвращает список отчетов или пустой список, если отчеты по магазину не найдены InvalidRequest, если промежуток времени некорректен DatasetTooBig, если размер списка превышает допустимый лимитvoidrecvCancelReport()StringrecvGeneratePresignedUrl()longrecvGenerateReport()ReportrecvGetReport()List<Report>recvGetReports()voidsendCancelReport(String party_id, String shop_id, long report_id)voidsendGeneratePresignedUrl(String file_id, String expires_at)voidsendGenerateReport(ReportRequest request, ReportType report_type)voidsendGetReport(String party_id, String shop_id, long report_id)voidsendGetReports(ReportRequest request, List<ReportType> report_types)Methods inherited from class org.apache.thrift.TServiceClient
getInputProtocol, getOutputProtocol, receiveBase, sendBase, sendBaseOneway
-
Constructor Details
-
Client
public Client(org.apache.thrift.protocol.TProtocol prot) -
Client
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot)
-
-
Method Details
-
getReports
public List<Report> getReports(ReportRequest request, List<ReportType> report_types) throws DatasetTooBig, InvalidRequest, org.apache.thrift.TExceptionDescription copied from interface:ReportingSrv.IfaceПолучить список отчетов по магазину за указанный промежуток времени с фильтрацией по типу В случае если список report_types пустой, фильтрации по типу не будет Возвращает список отчетов или пустой список, если отчеты по магазину не найдены InvalidRequest, если промежуток времени некорректен DatasetTooBig, если размер списка превышает допустимый лимит- Specified by:
getReportsin interfaceReportingSrv.Iface- Throws:
DatasetTooBigInvalidRequestorg.apache.thrift.TException
-
sendGetReports
public void sendGetReports(ReportRequest request, List<ReportType> report_types) throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
recvGetReports
public List<Report> recvGetReports() throws DatasetTooBig, InvalidRequest, org.apache.thrift.TException- Throws:
DatasetTooBigInvalidRequestorg.apache.thrift.TException
-
generateReport
public long generateReport(ReportRequest request, ReportType report_type) throws PartyNotFound, ShopNotFound, InvalidRequest, org.apache.thrift.TExceptionDescription copied from interface:ReportingSrv.IfaceСгенерировать отчет с указанным типом по магазину за указанный промежуток времени Возвращает идентификатор отчета PartyNotFound, если party не найден ShopNotFound, если shop не найден InvalidRequest, если промежуток времени некорректен- Specified by:
generateReportin interfaceReportingSrv.Iface- Throws:
PartyNotFoundShopNotFoundInvalidRequestorg.apache.thrift.TException
-
sendGenerateReport
public void sendGenerateReport(ReportRequest request, ReportType report_type) throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
recvGenerateReport
public long recvGenerateReport() throws PartyNotFound, ShopNotFound, InvalidRequest, org.apache.thrift.TException- Throws:
PartyNotFoundShopNotFoundInvalidRequestorg.apache.thrift.TException
-
getReport
public Report getReport(String party_id, String shop_id, long report_id) throws ReportNotFound, org.apache.thrift.TExceptionDescription copied from interface:ReportingSrv.IfaceЗапрос на получение отчета ReportNotFound, если отчет не найден- Specified by:
getReportin interfaceReportingSrv.Iface- Throws:
ReportNotFoundorg.apache.thrift.TException
-
sendGetReport
public void sendGetReport(String party_id, String shop_id, long report_id) throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
recvGetReport
- Throws:
ReportNotFoundorg.apache.thrift.TException
-
cancelReport
public void cancelReport(String party_id, String shop_id, long report_id) throws ReportNotFound, org.apache.thrift.TExceptionDescription copied from interface:ReportingSrv.IfaceЗапрос на отмену отчета ReportNotFound, если отчет не найден- Specified by:
cancelReportin interfaceReportingSrv.Iface- Throws:
ReportNotFoundorg.apache.thrift.TException
-
sendCancelReport
public void sendCancelReport(String party_id, String shop_id, long report_id) throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
recvCancelReport
- Throws:
ReportNotFoundorg.apache.thrift.TException
-
generatePresignedUrl
public String generatePresignedUrl(String file_id, String expires_at) throws FileNotFound, InvalidRequest, org.apache.thrift.TExceptionDescription copied from interface:ReportingSrv.IfaceСгенерировать ссылку на файл file_id - идентификатор файла expires_at - время до которого ссылка будет считаться действительной Возвращает presigned url FileNotFound, если файл не найден InvalidRequest, если expires_at некорректен- Specified by:
generatePresignedUrlin interfaceReportingSrv.Iface- Throws:
FileNotFoundInvalidRequestorg.apache.thrift.TException
-
sendGeneratePresignedUrl
public void sendGeneratePresignedUrl(String file_id, String expires_at) throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
recvGeneratePresignedUrl
public String recvGeneratePresignedUrl() throws FileNotFound, InvalidRequest, org.apache.thrift.TException- Throws:
FileNotFoundInvalidRequestorg.apache.thrift.TException
-