Documentation
¶
Overview ¶
DON'T EDIT; This file is used as a template by tools/generate_plugindata
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
type ChimpAPI ¶
type ChimpAPI struct {
Transport http.RoundTripper
sync.Mutex
// contains filtered or unexported fields
}
func (*ChimpAPI) GetLists ¶
func (a *ChimpAPI) GetLists() (ListsResponse, error)
type FacebookLikes ¶
type IndustryStats ¶
type List ¶
type List struct {
ID string `json:"id"`
WebID int `json:"web_id"`
Name string `json:"name"`
Contact struct {
Company string `json:"company"`
Address1 string `json:"address1"`
Address2 string `json:"address2"`
City string `json:"city"`
State string `json:"state"`
Zip string `json:"zip"`
Country string `json:"country"`
Phone string `json:"phone"`
} `json:"contact"`
PermissionReminder string `json:"permission_reminder"`
UseArchiveBar bool `json:"use_archive_bar"`
CampaignDefaults struct {
FromName string `json:"from_name"`
FromEmail string `json:"from_email"`
Subject string `json:"subject"`
Language string `json:"language"`
} `json:"campaign_defaults"`
NotifyOnSubscribe string `json:"notify_on_subscribe"`
NotifyOnUnsubscribe string `json:"notify_on_unsubscribe"`
DateCreated time.Time `json:"date_created"`
ListRating int `json:"list_rating"`
EmailTypeOption bool `json:"email_type_option"`
SubscribeURLShort string `json:"subscribe_url_short"`
SubscribeURLLong string `json:"subscribe_url_long"`
BeamerAddress string `json:"beamer_address"`
Visibility string `json:"visibility"`
DoubleOptin bool `json:"double_optin"`
HasWelcome bool `json:"has_welcome"`
MarketingPermissions bool `json:"marketing_permissions"`
Modules []interface{} `json:"modules"`
Stats struct {
MemberCount int `json:"member_count"`
UnsubscribeCount int `json:"unsubscribe_count"`
CleanedCount int `json:"cleaned_count"`
MemberCountSinceSend int `json:"member_count_since_send"`
UnsubscribeCountSinceSend int `json:"unsubscribe_count_since_send"`
CleanedCountSinceSend int `json:"cleaned_count_since_send"`
CampaignCount int `json:"campaign_count"`
CampaignLastSent time.Time `json:"campaign_last_sent"`
MergeFieldCount int `json:"merge_field_count"`
AvgSubRate int `json:"avg_sub_rate"`
AvgUnsubRate int `json:"avg_unsub_rate"`
TargetSubRate int `json:"target_sub_rate"`
OpenRate float64 `json:"open_rate"`
ClickRate float64 `json:"click_rate"`
LastSubDate time.Time `json:"last_sub_date"`
LastUnsubDate string `json:"last_unsub_date"`
} `json:"stats"`
Links []struct {
Rel string `json:"rel"`
Href string `json:"href"`
Method string `json:"method"`
TargetSchema string `json:"targetSchema,omitempty"`
Schema string `json:"schema,omitempty"`
} `json:"_links"`
}
type ListsResponse ¶
type ListsResponse struct {
Lists []List `json:"lists"`
TotalItems int `json:"total_items"`
Constraints struct {
MayCreate bool `json:"may_create"`
MaxInstances int `json:"max_instances"`
CurrentTotalInstances int `json:"current_total_instances"`
} `json:"constraints"`
Links []struct {
Rel string `json:"rel"`
Href string `json:"href"`
Method string `json:"method"`
TargetSchema string `json:"targetSchema"`
Schema string `json:"schema"`
} `json:"_links"`
}
type MailChimp ¶
type MailChimp struct {
APIKey string `toml:"api_key"`
DaysOld int `toml:"days_old"`
CampaignID string `toml:"campaign_id"`
Log telegraf.Logger `toml:"-"`
// contains filtered or unexported fields
}
func (*MailChimp) Description ¶
func (*MailChimp) SampleConfig ¶
type Report ¶
type Report struct {
ID string `json:"id"`
CampaignTitle string `json:"campaign_title"`
Type string `json:"type"`
EmailsSent int `json:"emails_sent"`
AbuseReports int `json:"abuse_reports"`
Unsubscribed int `json:"unsubscribed"`
SendTime string `json:"send_time"`
TimeSeries []TimeSeries
Bounces Bounces `json:"bounces"`
Forwards Forwards `json:"forwards"`
Opens Opens `json:"opens"`
Clicks Clicks `json:"clicks"`
FacebookLikes FacebookLikes `json:"facebook_likes"`
IndustryStats IndustryStats `json:"industry_stats"`
ListStats ListStats `json:"list_stats"`
}
type ReportsParams ¶
func (*ReportsParams) String ¶
func (p *ReportsParams) String() string
type ReportsResponse ¶
Click to show internal directories.
Click to hide internal directories.