| 1 |
package dynect |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
type AllDSFDetailedResponse struct { |
| 6 |
ResponseBlock |
| 7 |
Data []DSFService `json:"data"` |
| 8 |
} |
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
type DSFResponse struct { |
| 13 |
ResponseBlock |
| 14 |
Data DSFService `json:"data"` |
| 15 |
} |
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
type DSFService struct { |
| 20 |
ID string `json:"service_id"` |
| 21 |
Label string `json:"label"` |
| 22 |
Active string `json:"active"` |
| 23 |
TTL string `json:"ttl"` |
| 24 |
PendingChange string `json:"pending_change"` |
| 25 |
Notifiers []Notifier `json:"notifiers"` |
| 26 |
Nodes []DSFNode `json:"nodes"` |
| 27 |
Rulesets []DSFRuleset `json:"rulesets"` |
| 28 |
} |
| 29 |
|
| 30 |
type DSFRuleset struct { |
| 31 |
ID string `json:"dsf_ruleset_id` |
| 32 |
Label string `json:"label"` |
| 33 |
CriteriaType string `json:"criteria_type"` |
| 34 |
Criteria interface{} `json:"criteria"` |
| 35 |
Ordering string `json:"ordering"` |
| 36 |
Eligible string `json:"eligible"` |
| 37 |
PendingChange string `json:"pending_change"` |
| 38 |
ResponsePools []DSFResponsePool `json:"response_pools"` |
| 39 |
} |
| 40 |
|
| 41 |
type DSFResponsePool struct { |
| 42 |
ID string `json:"dsf_response_pool_id"` |
| 43 |
Label string `json:"label"` |
| 44 |
Automation string `json:"automation"` |
| 45 |
CoreSetCount string `json:"core_set_count"` |
| 46 |
Eligible string `json:"eligible"` |
| 47 |
PendingChange string `json:"pending_change"` |
| 48 |
RsChains []DSFRecordSetChain `json:"rs_chains"` |
| 49 |
Rulesets []DSFRuleset `json:"rulesets"` |
| 50 |
Status string `json:"status"` |
| 51 |
LastMonitored string `json:"last_monitored"` |
| 52 |
Notifier string `json:"notifier"` |
| 53 |
} |
| 54 |
|
| 55 |
type DSFRecordSetChain struct { |
| 56 |
ID string `json:"dsf_record_set_failover_chain_id"` |
| 57 |
Status string `json:"status"` |
| 58 |
Core string `json:"core"` |
| 59 |
Label string `json:"label"` |
| 60 |
DSFResponsePoolID string `json:"dsf_response_pool_id"` |
| 61 |
DSFServiceID string `json:"service_id"` |
| 62 |
PendingChange string `json:"pending_change"` |
| 63 |
DSFRecordSets []DSFRecordSet `json:"record_sets"` |
| 64 |
} |
| 65 |
|
| 66 |
type DSFRecordSet struct { |
| 67 |
Status string `json:"status"` |
| 68 |
Eligible string `json:"eligible"` |
| 69 |
ID string `json:"dsf_record_set_id"` |
| 70 |
MonitorID string `json:"dsf_monitor_id"` |
| 71 |
Label string `json:"label"` |
| 72 |
TroubleCount string `json:"trouble_count"` |
| 73 |
Records []DSFRecord `json:"records"` |
| 74 |
FailCount string `json:"fail_count"` |
| 75 |
TorpidityMax string `json:"torpidity_max"` |
| 76 |
TTLDerived string `json:"ttl_derived"` |
| 77 |
LastMonitored string `json:"last_monitored"` |
| 78 |
TTL string `json:"ttl"` |
| 79 |
ServiceID string `json:"service_id"` |
| 80 |
ServeCount string `json:"serve_count"` |
| 81 |
Automation string `json:"automation"` |
| 82 |
PendingChange string `json:"pending_change"` |
| 83 |
} |
| 84 |
|
| 85 |
type DSFRecord struct { |
| 86 |
Status string `json:"status"` |
| 87 |
Endpoints []string `json:"endpoints"` |
| 88 |
RDataClass string `json:"rdata_class"` |
| 89 |
Weight int `json:"weight"` |
| 90 |
Eligible string `json:"eligible"` |
| 91 |
ID string `json:"dsf_record_id"` |
| 92 |
DSFRecordSetID string `json:"dsf_record_set_id"` |
| 93 |
|
| 94 |
EndpointUpCount int `json:"endpoint_up_count"` |
| 95 |
Label string `json:"label"` |
| 96 |
MasterLine string `json:"master_line"` |
| 97 |
Torpidity int `json:"torpidity"` |
| 98 |
LastMonitored int `json:"last_monitored"` |
| 99 |
TTL string `json:"ttl"` |
| 100 |
DSFServiceID string `json:"service_id"` |
| 101 |
PendingChange string `json:"pending_change"` |
| 102 |
Automation string `json:"automation"` |
| 103 |
ReponseTime int `json:"response_time"` |
| 104 |
Publish string `json:"publish",omit_empty` |
| 105 |
} |
| 106 |
|
| 107 |
type DSFNode struct { |
| 108 |
Zone string `json:"zone"` |
| 109 |
FQDN string `json:"fqdn"` |
| 110 |
} |
| 111 |
|
| 112 |
type Notifier struct { |
| 113 |
ID int `json:"notifier_id"` |
| 114 |
Label string `json:"label"` |
| 115 |
Recipients string `json:"recipients"` |
| 116 |
Active string `json:"active"` |
| 117 |
} |