archiveResourceEvents(body=None, x__xgafv=None)
Finds orphan ResourceEvents matching the criteria and moves them to the ArchivedResourceEvents table.
Close httplib2 connections.
revertArchivedResourceEvents(body=None, x__xgafv=None)
Finds matching ArchivedResourceEvents and moves them back to the ResourceEvents table.
archiveResourceEvents(body=None, x__xgafv=None)
Finds orphan ResourceEvents matching the criteria and moves them to the ArchivedResourceEvents table.
Args:
body: object, The request body.
The object takes the form of:
{ # Request for archiving resource events.
"archiveTime": "A String", # Optional. Time to set as ArchiveTime in the archive table. If not provided, the current time is used.
"batchSize": 42, # Required. The number of events to process in a single transaction batch.
"eventCutoffTime": "A String", # Required. Only events with EventTime earlier than this cutoff will be archived.
"maxEventsMove": 42, # Required. The maximum total number of events to move in this request.
"organizationId": "A String", # Required. The organization ID for which to archive events.
"region": "A String", # Required. The region of the workload(s) whose events should be archived. This is used to filter workloads based on AssurantWorkloadData.region.
}
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Response for archiving resource events.
"movedEventsCount": 42, # The total number of events successfully moved to the archive table.
}
close()
Close httplib2 connections.
revertArchivedResourceEvents(body=None, x__xgafv=None)
Finds matching ArchivedResourceEvents and moves them back to the ResourceEvents table.
Args:
body: object, The request body.
The object takes the form of:
{ # Request for reverting archived resource events.
"archiveEndTime": "A String", # Required. Only events within this time range will be reverted. This helps prevent reverting everything when something goes wrong.
"archiveStartTime": "A String", # Required. Only events within this time range will be reverted. This helps prevent reverting everything when something goes wrong.
"batchSize": 42, # Required. The number of events to process in a single transaction batch.
"maxEventsMove": 42, # Required. The maximum total number of events to move in this request.
"organizationId": "A String", # Required. The organization ID for which to revert events.
"region": "A String", # Required. The region of the workload(s) whose events should be reverted. This is used to filter workloads based on AssurantWorkloadData.region.
}
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Response for reverting archived resource events.
"movedEventsCount": 42, # The total number of events successfully moved to the original table.
}