Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) DescribeMetrics ¶
func (c *Client) DescribeMetrics(ch chan<- *prometheus.Desc)
func (*Client) GetMetricsByDomain ¶
func (c *Client) GetMetricsByDomain(domain string) ([]*prometheus.Metric, error)
func (*Client) UpdateSiteList ¶
type SiteDesc ¶
type SiteDesc struct { SiteId int `json:"site_id"` Status string `json:"status"` Domain string `json:"domain"` AccountId int `json:"account_id"` AccelerationLevel string `json:"acceleration_level"` AccelerationLevelRaw string `json:"acceleration_level_raw"` SiteCreationDate int64 `json:"site_creation_date"` Ips []string `json:"ips"` Active string `json:"active"` SupportAllTlsVersions bool `json:"support_all_tls_versions"` UseWildcardSanInsteadOfFullDomainSan bool `json:"use_wildcard_san_instead_of_full_domain_san"` AddNakedDomainSan bool `json:"add_naked_domain_san"` DisplayName string `json:"display_name"` Security struct { Waf struct { Rules []struct { Action string `json:"action,omitempty"` ActionText string `json:"action_text,omitempty"` Id string `json:"id"` Name string `json:"name"` BlockBadBots bool `json:"block_bad_bots,omitempty"` ChallengeSuspectedBots bool `json:"challenge_suspected_bots,omitempty"` ActivationMode string `json:"activation_mode,omitempty"` ActivationModeText string `json:"activation_mode_text,omitempty"` DdosTrafficThreshold int `json:"ddos_traffic_threshold,omitempty"` } `json:"rules"` } `json:"waf"` } `json:"security"` Res int `json:"res"` ResMessage string `json:"res_message"` }
type SiteListResponse ¶
type StatsSummaryResponse ¶
type StatsTimeSeriesResponse ¶
type StatsTimeSeriesResponse struct { BandwidthTimeSeries []TSData `json:"bandwidth_timeseries,omitempty"` VisitsTimeSeries []TSData `json:"visits_timeseries,omitempty"` HitsTimeSeries []TSData `json:"hits_timeseries,omitempty"` Res int `json:"res"` ResMessage string `json:"res_message"` DebugInfo struct { IdInfo string `json:"id-info"` } `json:"debug_info"` }
Click to show internal directories.
Click to hide internal directories.