Campaigns have the following structure:
{
"id" : int64,
"name" : string,
"created_date" : string(datetime),
"launch_date" : string(datetime),
"send_by_date" : string(datetime),
"completed_date" : string(datetime),
"status" : string,
"Scenarios" : bool,
"timeline" : []Timeline,
"customer" : {}Customer,
"customerId" : int64,
"repeat_delay" : string,
"parent_id" : int64,
"total_targets" : int64,
"sensibilisation_type" : string,
"hourly_hour" : bool,
"all_scenarios" : bool
}
Gottaphish keeps track of every event for a campaign in it's timeline. Each event has the following format:
{
"campaign_id" : int64,
"campaign" : {}Campaign,
"time" : string(datetime),
"message" : string
}