Class: PlatformAPI::Archive

Inherits:
Object
  • Object
show all
Defined in:
lib/platform-api/client.rb

Overview

An audit trail archive represents a monthly json zipped file containing events

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Archive

Returns a new instance of Archive.



1488
1489
1490
# File 'lib/platform-api/client.rb', line 1488

def initialize(client)
  @client = client
end

Instance Method Details

#info(enterprise_account_id_or_enterprise_account_name, archive_year, archive_month) ⇒ Object

Get archive for a single month.

Parameters:

  • enterprise_account_id_or_enterprise_account_name:

    unique identifier of the enterprise account or unique name of the enterprise account

  • archive_year:

    year of the archive

  • archive_month:

    month of the archive



1497
1498
1499
# File 'lib/platform-api/client.rb', line 1497

def info(, archive_year, archive_month)
  @client.archive.info(, archive_year, archive_month)
end

#list(enterprise_account_id_or_enterprise_account_name) ⇒ Object

List existing archives.

Parameters:

  • enterprise_account_id_or_enterprise_account_name:

    unique identifier of the enterprise account or unique name of the enterprise account



1504
1505
1506
# File 'lib/platform-api/client.rb', line 1504

def list()
  @client.archive.list()
end