Class: Yandex360::AuditResource
- Defined in:
- lib/yandex360/resources/audit.rb
Overview
Mail and Disk audit logs.
These are two separate endpoints and they page by opaque token rather than page number, so there is no combined listing and no page argument.
See https://yandex.ru/dev/api360/doc/ru/ref/AuditLogService/
Constant Summary collapse
- MAX_PAGE_SIZE =
Events per page; the API caps this at 100.
100
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
- #disk(org_id:, page_size: MAX_PAGE_SIZE, page_token: nil, **filters) ⇒ Object
-
#mail(org_id:, page_size: MAX_PAGE_SIZE, page_token: nil, **filters) ⇒ Object
Accepts the documented filters as extra keywords: after_date, before_date, include_uids, exclude_uids and, for mail, types.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from Yandex360::Resource
Instance Method Details
#disk(org_id:, page_size: MAX_PAGE_SIZE, page_token: nil, **filters) ⇒ Object
20 21 22 |
# File 'lib/yandex360/resources/audit.rb', line 20 def disk(org_id:, page_size: MAX_PAGE_SIZE, page_token: nil, **filters) events(org_id: org_id, log: "disk", page_size: page_size, page_token: page_token, **filters) end |
#mail(org_id:, page_size: MAX_PAGE_SIZE, page_token: nil, **filters) ⇒ Object
Accepts the documented filters as extra keywords: after_date, before_date, include_uids, exclude_uids and, for mail, types.
16 17 18 |
# File 'lib/yandex360/resources/audit.rb', line 16 def mail(org_id:, page_size: MAX_PAGE_SIZE, page_token: nil, **filters) events(org_id: org_id, log: "mail", page_size: page_size, page_token: page_token, **filters) end |