Documentation ¶
Index ¶
- Variables
- func Init(config edgegrid.Config)
- type APIWindowResponse
- type DCTDRow
- type DCTData
- type DCTMeta
- type DcTrafficResponse
- type IPStatusPerProperty
- type IpStatIp
- type IpStatPerPropDRow
- type IpStatPerPropData
- type IpStatPerPropMeta
- type PropertyDRow
- type PropertyTData
- type PropertyTMeta
- type PropertyTrafficResponse
- type WindowResponse
- func GetDatacentersTrafficWindow() (*WindowResponse, error)
- func GetDemandWindow(domainName string, propertyName string) (*WindowResponse, error)
- func GetLatencyDomainsWindow(domainName string) (*WindowResponse, error)
- func GetLivenessTestsWindow() (*WindowResponse, error)
- func GetPropertiesTrafficWindow() (*WindowResponse, error)
Constants ¶
This section is empty.
Variables ¶
var ( // Config contains the Akamai OPEN Edgegrid API credentials // for automatic signing of requests Config edgegrid.Config // Create a new instance of the logger. GtmLog *logrus.Logger )
Functions ¶
Types ¶
type APIWindowResponse ¶
type DCTMeta ¶
type DCTMeta struct { Uri string `json:uri"` Domain string `json:"domain"` Interval string `json:"interval,omitempty"` DatacenterId int `json:"datacenterId"` DatacenterNickname string `json:"datacenterNickname"` Start string `json:"start"` End string `json:"end"` }
Datacenter Traffic Report Structs
type DcTrafficResponse ¶
type DcTrafficResponse struct { Metadata *DCTMeta `json:"metadata"` DataRows []*DCTData `json:"dataRows"` DataSummary interface{} `json:"dataSummary"` Links []*configgtm.Link `json:"links"` }
Response structure returned by the Datacenter Traffic API
func GetTrafficPerDatacenter ¶
func GetTrafficPerDatacenter(domainName string, datacenterID int, optArgs map[string]string) (*DcTrafficResponse, error)
GetTrafficPerDatacenter retrieves Report Traffic per datacenter. Opt args - start, end.
type IPStatusPerProperty ¶
type IPStatusPerProperty struct { Metadata *IpStatPerPropMeta `json:"metadata"` DataRows []*IpStatPerPropData `json:"dataRows"` DataSummary interface{} `json:"dataSummary"` Links []*configgtm.Link `json:"links"` }
IP Availability Status Response structure returned by the Reports API.
func GetIpStatusPerProperty ¶
func GetIpStatusPerProperty(domainName string, propertyName string, optArgs map[string]string) (*IPStatusPerProperty, error)
GetIpStatusPerProperty retrieves current IP Availability Status for specified property in the given domainname.
type IpStatPerPropDRow ¶
type IpStatPerPropData ¶
type IpStatPerPropData struct { Timestamp string `json:"timestamp"` CutOff float64 `json:"cutOff"` Datacenters []*IpStatPerPropDRow `json:"datacenters"` }
type IpStatPerPropMeta ¶
type PropertyDRow ¶
type PropertyTData ¶
type PropertyTData struct { Timestamp string `json:"timestamp"` Datacenters []*PropertyDRow `json:"datacenters"` }
type PropertyTMeta ¶
type PropertyTMeta struct { Uri string `json:uri"` Domain string `json:"domain"` Interval string `json:"interval,omitempty"` Property string `json:"property"` Start string `json:"start"` End string `json:"end"` }
Property Traffic Report Structs
type PropertyTrafficResponse ¶
type PropertyTrafficResponse struct { Metadata *PropertyTMeta `json:"metadata"` DataRows []*PropertyTData `json:"dataRows"` DataSummary interface{} `json:"dataSummary"` Links []*configgtm.Link `json:"links"` }
The Property Traffic Response structure returned by the Reports API
func GetTrafficPerProperty ¶
func GetTrafficPerProperty(domainName string, propertyName string, optArgs map[string]string) (*PropertyTrafficResponse, error)
GetTrafficPerProperty retrieves report traffic for the specified property in the specified domain.
type WindowResponse ¶
func GetDatacentersTrafficWindow ¶
func GetDatacentersTrafficWindow() (*WindowResponse, error)
GetDatacentersTrafficWindow is a utility function that retrieves the data window for Traffic category of Report APIs
func GetDemandWindow ¶
func GetDemandWindow(domainName string, propertyName string) (*WindowResponse, error)
GetDemandWindow is a utility function that retrieves the data window for Demand category of Report APIs
func GetLatencyDomainsWindow ¶
func GetLatencyDomainsWindow(domainName string) (*WindowResponse, error)
GetLatencyDomainsWindow is a utility function that retrieves the data window for Latency category of Report APIs
func GetLivenessTestsWindow ¶
func GetLivenessTestsWindow() (*WindowResponse, error)
GetLivenessTestsWindow is a utility function that retrieves the data window for Liveness category of Report APIs
func GetPropertiesTrafficWindow ¶
func GetPropertiesTrafficWindow() (*WindowResponse, error)
GetPropertiesTrafficWindow is a utility function that retrieves the data window for Traffic category of Report API