Virtru SDK for C++  2.8.0
Virtru C++ SDK library - Create, Read, and Manage TDF3 Files
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
virtru_audit_service.h
Go to the documentation of this file.
1 #ifndef VIRTRU_TDF3_CPP_VIRTRU_AUDIT_SERVICE_H
2 #define VIRTRU_TDF3_CPP_VIRTRU_AUDIT_SERVICE_H
3 
4 #include "network_interface.h"
5 
6 namespace virtru {
7 
8  class AuditService {
9  public:
12  AuditService(const std::string &auditUrl);
13 
14 
17  std::string getEvents();
18 
19 
23  std::string getEventById(const std::string& eventId);
24 
25 
29  void addQueryParam(const std::string& key, const std::string& value);
30 
31 
35  void addHeader(const std::string& key, const std::string& value);
36 
37 
39  ~AuditService() = default;
40 
41  private:
42  std::string makeHttpGet(const std::string& fullUrl);
43 
44 
45  private:
46  std::string m_auditUrl;
47  std::shared_ptr<INetwork> m_httpServiceProvider;
48  std::string m_queryString;
50  };
51 
52 } // namespace virtru
53 #endif // VIRTRU_TDF3_CPP_VIRTRU_AUDIT_SERVICE_H
std::string makeHttpGet(const std::string &fullUrl)
std::string getEventById(const std::string &eventId)
std::string m_auditUrl
Definition: virtru_audit_service.h:46
std::unordered_map< std::string, std::string > HttpHeaders
Definition: network_interface.h:27
~AuditService()=default
Destructor.
HttpHeaders m_additionalHeaders
Definition: virtru_audit_service.h:49
std::string getEvents()
std::shared_ptr< INetwork > m_httpServiceProvider
Definition: virtru_audit_service.h:47
Definition: virtru_audit_service.h:8
void addHeader(const std::string &key, const std::string &value)
std::string m_queryString
Definition: virtru_audit_service.h:48
AuditService(const std::string &auditUrl)
void addQueryParam(const std::string &key, const std::string &value)