Skip to content

Commit 5458ab6

Browse files
committed
removes unnecessary and unused structs
1 parent 2233165 commit 5458ab6

File tree

1 file changed

+0
-385
lines changed

1 file changed

+0
-385
lines changed

reporting.go

Lines changed: 0 additions & 385 deletions
Original file line numberDiff line numberDiff line change
@@ -1,390 +1,5 @@
11
package edgegrid
22

3-
// import (
4-
// "fmt"
5-
// "log"
6-
// "net/http"
7-
// "os"
8-
// "time"
9-
// )
10-
11-
// // PropertyService represents exposed services to manage properties
12-
// //
13-
// // Akamai API docs: https://developer.akamai.com/api/luna/papi
143
type ReportingAPIService struct {
154
client *Client
165
}
17-
18-
// type AutoGenerated struct {
19-
// Metadata struct {
20-
// Name string `json:"name"`
21-
// Version string `json:"version"`
22-
// Start time.Time `json:"start"`
23-
// End time.Time `json:"end"`
24-
// GroupBy []string `json:"groupBy"`
25-
// Interval string `json:"interval"`
26-
// ObjectType string `json:"objectType"`
27-
// ObjectIds []string `json:"objectIds"`
28-
// AvailableDataEnds interface{} `json:"availableDataEnds"`
29-
// SuggestedRetryTime interface{} `json:"suggestedRetryTime"`
30-
// RowCount int `json:"rowCount"`
31-
// Filters []struct {
32-
// Name string `json:"name"`
33-
// Value []string `json:"value"`
34-
// } `json:"filters"`
35-
// Columns []struct {
36-
// Name string `json:"name"`
37-
// Label string `json:"label"`
38-
// } `json:"columns"`
39-
// URI string `json:"uri"`
40-
// } `json:"metadata"`
41-
// Data []struct {
42-
// Timestamp time.Time `json:"timestamp"`
43-
// AllEdgeHitsPerSecond int `json:"allEdgeHitsPerSecond"`
44-
// AllOriginHitsPerSecond int `json:"allOriginHitsPerSecond"`
45-
// AllMidgressHitsPerSecond int `json:"allMidgressHitsPerSecond"`
46-
// AllHitsOffload int `json:"allHitsOffload"`
47-
// } `json:"data"`
48-
// SummaryStatistics struct {
49-
// AllHitsOffloadAvg struct {
50-
// Value string `json:"value"`
51-
// Details struct {
52-
// } `json:"details"`
53-
// } `json:"allHitsOffloadAvg"`
54-
// AllHitsOffloadMin struct {
55-
// Value string `json:"value"`
56-
// Details struct {
57-
// Startdatetime time.Time `json:"startdatetime"`
58-
// } `json:"details"`
59-
// } `json:"allHitsOffloadMin"`
60-
// AllHitsOffloadMax struct {
61-
// Value string `json:"value"`
62-
// Details struct {
63-
// Startdatetime time.Time `json:"startdatetime"`
64-
// } `json:"details"`
65-
// } `json:"allHitsOffloadMax"`
66-
// AllEdgeHitsTotal struct {
67-
// Value string `json:"value"`
68-
// Details struct {
69-
// } `json:"details"`
70-
// } `json:"allEdgeHitsTotal"`
71-
// AllEdgeHitsMin struct {
72-
// Value string `json:"value"`
73-
// Details struct {
74-
// Startdatetime time.Time `json:"startdatetime"`
75-
// } `json:"details"`
76-
// } `json:"allEdgeHitsMin"`
77-
// AllEdgeHitsMax struct {
78-
// Value string `json:"value"`
79-
// Details struct {
80-
// Startdatetime time.Time `json:"startdatetime"`
81-
// } `json:"details"`
82-
// } `json:"allEdgeHitsMax"`
83-
// AllMidgressHitsTotal struct {
84-
// Value string `json:"value"`
85-
// Details struct {
86-
// } `json:"details"`
87-
// } `json:"allMidgressHitsTotal"`
88-
// AllMidgressHitsMin struct {
89-
// Value string `json:"value"`
90-
// Details struct {
91-
// Startdatetime time.Time `json:"startdatetime"`
92-
// } `json:"details"`
93-
// } `json:"allMidgressHitsMin"`
94-
// AllMidgressHitsMax struct {
95-
// Value string `json:"value"`
96-
// Details struct {
97-
// Startdatetime time.Time `json:"startdatetime"`
98-
// } `json:"details"`
99-
// } `json:"allMidgressHitsMax"`
100-
// AllOriginHitsTotal struct {
101-
// Value string `json:"value"`
102-
// Details struct {
103-
// } `json:"details"`
104-
// } `json:"allOriginHitsTotal"`
105-
// AllOriginHitsMin struct {
106-
// Value string `json:"value"`
107-
// Details struct {
108-
// Startdatetime time.Time `json:"startdatetime"`
109-
// } `json:"details"`
110-
// } `json:"allOriginHitsMin"`
111-
// AllOriginHitsMax struct {
112-
// Value string `json:"value"`
113-
// Details struct {
114-
// Startdatetime time.Time `json:"startdatetime"`
115-
// } `json:"details"`
116-
// } `json:"allOriginHitsMax"`
117-
// AllEdgeResponsetimeAvg struct {
118-
// Value string `json:"value"`
119-
// Details struct {
120-
// } `json:"details"`
121-
// } `json:"allEdgeResponsetimeAvg"`
122-
// AllEdgeResponsetimeMin struct {
123-
// Value string `json:"value"`
124-
// Details struct {
125-
// Startdatetime time.Time `json:"startdatetime"`
126-
// } `json:"details"`
127-
// } `json:"allEdgeResponsetimeMin"`
128-
// AllEdgeResponsetimeMax struct {
129-
// Value string `json:"value"`
130-
// Details struct {
131-
// Startdatetime time.Time `json:"startdatetime"`
132-
// } `json:"details"`
133-
// } `json:"allEdgeResponsetimeMax"`
134-
// AllOriginResponsetimeAvg struct {
135-
// Value string `json:"value"`
136-
// Details struct {
137-
// } `json:"details"`
138-
// } `json:"allOriginResponsetimeAvg"`
139-
// AllOriginResponsetimeMin struct {
140-
// Value string `json:"value"`
141-
// Details struct {
142-
// Startdatetime time.Time `json:"startdatetime"`
143-
// } `json:"details"`
144-
// } `json:"allOriginResponsetimeMin"`
145-
// AllOriginResponsetimeMax struct {
146-
// Value string `json:"value"`
147-
// Details struct {
148-
// Startdatetime time.Time `json:"startdatetime"`
149-
// } `json:"details"`
150-
// } `json:"allOriginResponsetimeMax"`
151-
// AllEdgeHitsPercent struct {
152-
// Value string `json:"value"`
153-
// Details struct {
154-
// } `json:"details"`
155-
// } `json:"allEdgeHitsPercent"`
156-
// TwoXxEdgeHitsTotal struct {
157-
// Value string `json:"value"`
158-
// Details struct {
159-
// } `json:"details"`
160-
// } `json:"2xxEdgeHitsTotal"`
161-
// TwoXxEdgeHitsPercent struct {
162-
// Value string `json:"value"`
163-
// Details struct {
164-
// } `json:"details"`
165-
// } `json:"2xxEdgeHitsPercent"`
166-
// ThreeXxEdgeHitsTotal struct {
167-
// Value string `json:"value"`
168-
// Details struct {
169-
// } `json:"details"`
170-
// } `json:"3xxEdgeHitsTotal"`
171-
// ThreeXxEdgeHitsPercent struct {
172-
// Value string `json:"value"`
173-
// Details struct {
174-
// } `json:"details"`
175-
// } `json:"3xxEdgeHitsPercent"`
176-
// FourXxEdgeHitsTotal struct {
177-
// Value string `json:"value"`
178-
// Details struct {
179-
// } `json:"details"`
180-
// } `json:"4xxEdgeHitsTotal"`
181-
// FourXxEdgeHitsPercent struct {
182-
// Value string `json:"value"`
183-
// Details struct {
184-
// } `json:"details"`
185-
// } `json:"4xxEdgeHitsPercent"`
186-
// FiveXxEdgeHitsTotal struct {
187-
// Value string `json:"value"`
188-
// Details struct {
189-
// } `json:"details"`
190-
// } `json:"5xxEdgeHitsTotal"`
191-
// FiveXxEdgeHitsPercent struct {
192-
// Value string `json:"value"`
193-
// Details struct {
194-
// } `json:"details"`
195-
// } `json:"5xxEdgeHitsPercent"`
196-
// OtherEdgeHitsTotal struct {
197-
// Value string `json:"value"`
198-
// Details struct {
199-
// } `json:"details"`
200-
// } `json:"otherEdgeHitsTotal"`
201-
// OtherEdgeHitsPercent struct {
202-
// Value string `json:"value"`
203-
// Details struct {
204-
// } `json:"details"`
205-
// } `json:"otherEdgeHitsPercent"`
206-
// AllOriginHitsPercent struct {
207-
// Value string `json:"value"`
208-
// Details struct {
209-
// } `json:"details"`
210-
// } `json:"allOriginHitsPercent"`
211-
// TwoXxOriginHitsTotal struct {
212-
// Value string `json:"value"`
213-
// Details struct {
214-
// } `json:"details"`
215-
// } `json:"2xxOriginHitsTotal"`
216-
// TwoXxOriginHitsPercent struct {
217-
// Value string `json:"value"`
218-
// Details struct {
219-
// } `json:"details"`
220-
// } `json:"2xxOriginHitsPercent"`
221-
// ThreeXxOriginHitsTotal struct {
222-
// Value string `json:"value"`
223-
// Details struct {
224-
// } `json:"details"`
225-
// } `json:"3xxOriginHitsTotal"`
226-
// ThreeXxOriginHitsPercent struct {
227-
// Value string `json:"value"`
228-
// Details struct {
229-
// } `json:"details"`
230-
// } `json:"3xxOriginHitsPercent"`
231-
// FourXxOriginHitsTotal struct {
232-
// Value string `json:"value"`
233-
// Details struct {
234-
// } `json:"details"`
235-
// } `json:"4xxOriginHitsTotal"`
236-
// FourXxOriginHitsPercent struct {
237-
// Value string `json:"value"`
238-
// Details struct {
239-
// } `json:"details"`
240-
// } `json:"4xxOriginHitsPercent"`
241-
// FiveXxOriginHitsTotal struct {
242-
// Value string `json:"value"`
243-
// Details struct {
244-
// } `json:"details"`
245-
// } `json:"5xxOriginHitsTotal"`
246-
// FiveXxOriginHitsPercent struct {
247-
// Value string `json:"value"`
248-
// Details struct {
249-
// } `json:"details"`
250-
// } `json:"5xxOriginHitsPercent"`
251-
// OtherOriginHitsTotal struct {
252-
// Value string `json:"value"`
253-
// Details struct {
254-
// } `json:"details"`
255-
// } `json:"otherOriginHitsTotal"`
256-
// OtherOriginHitsPercent struct {
257-
// Value string `json:"value"`
258-
// Details struct {
259-
// } `json:"details"`
260-
// } `json:"otherOriginHitsPercent"`
261-
// } `json:"summaryStatistics"`
262-
// }
263-
264-
// func (pas *ReportingAPIService) GenerateReportRequest() {
265-
// req, err := http.NewRequest("GET", "http://api.themoviedb.org/3/tv/popular", nil)
266-
// if err != nil {
267-
// log.Print(err)
268-
// os.Exit(1)
269-
// }
270-
271-
// q := req.URL.Query()
272-
// q.Add("api_key", "key_from_environment_or_flag")
273-
// q.Add("another_thing", "foo & bar")
274-
// req.URL.RawQuery = q.Encode()
275-
276-
// fmt.Println(req.URL.String())
277-
// // Output:
278-
// // http://api.themoviedb.org/3/tv/popular?another_thing=foo+%26+bar&api_key=key_from_environment_or_flag
279-
// }
280-
281-
// // ListReportingAPIContracts This operation provides a read-only list of contract names and identifiers
282-
// //
283-
// // Akamai API docs: https://developer.akamai.com/api/luna/papi/resources.html#getcontracts
284-
// func (pas *ReportingAPIService) ListReportingAPIContracts() (*ReportingAPIContracts, *ClientResponse, error) {
285-
286-
// apiURI := fmt.Sprintf("%s/contracts", apiPaths["papi_v1"])
287-
288-
// var k *ReportingAPIContracts
289-
// resp, err := pas.client.NewRequest("GET", apiURI, nil, &k)
290-
// if err != nil {
291-
// return nil, resp, err
292-
// }
293-
294-
// return k, resp, err
295-
296-
// }
297-
298-
// // ListReportingAPIGroups This operation provides a read-only list of groups, which may contain properties.
299-
// //
300-
// // Akamai API docs: https://developer.akamai.com/api/luna/papi/resources.html#getgroups
301-
// func (pas *ReportingAPIService) ListReportingAPIGroups() (*ReportingAPIGroups, *ClientResponse, error) {
302-
303-
// apiURI := fmt.Sprintf("%s/groups", apiPaths["papi_v1"])
304-
305-
// var k *ReportingAPIGroups
306-
// resp, err := pas.client.NewRequest("GET", apiURI, nil, &k)
307-
// if err != nil {
308-
// return nil, resp, err
309-
// }
310-
311-
// return k, resp, err
312-
313-
// }
314-
315-
// // ListReportingAPICPCodes This operation lists CP codes available within your contract/group pairing.
316-
// //
317-
// // Akamai API docs: https://developer.akamai.com/api/luna/papi/resources.html#getcpcodes
318-
// func (pas *ReportingAPIService) ListReportingAPICPCodes(contractID, groupID string) (*ReportingAPICPCodes, *ClientResponse, error) {
319-
320-
// apiURI := fmt.Sprintf("%s/cpcodes?contractId=%s&groupId=%s",
321-
// apiPaths["papi_v1"],
322-
// contractID,
323-
// groupID)
324-
325-
// var k *ReportingAPICPCodes
326-
// resp, err := pas.client.NewRequest("GET", apiURI, nil, &k)
327-
// if err != nil {
328-
// return nil, resp, err
329-
// }
330-
331-
// return k, resp, err
332-
333-
// }
334-
335-
// // ListReportingAPIProducts ListReportingAPIProducts.
336-
// //
337-
// // Akamai API docs: https://developer.akamai.com/api/luna/papi/resources.html#getcpcodes
338-
// func (pas *ReportingAPIService) ListReportingAPIProducts(contractId string) (*ReportingAPIProducts, *ClientResponse, error) {
339-
340-
// apiURI := fmt.Sprintf("%s/products?contractId=%s",
341-
// apiPaths["papi_v1"],
342-
// contractId)
343-
344-
// var k *ReportingAPIProducts
345-
// resp, err := pas.client.NewRequest("GET", apiURI, nil, &k)
346-
// if err != nil {
347-
// return nil, resp, err
348-
// }
349-
350-
// return k, resp, err
351-
352-
// }
353-
354-
// // NewReportingAPICPcode Creates new CP Code
355-
// //
356-
// // Akamai API docs: https://developer.akamai.com/api/luna/papi/resources.html#postcpcodes
357-
// func (pas *ReportingAPIService) NewReportingAPICPcode(newCPcode *ReportingAPICPCodeNew, contractID, groupID string) (*ClientResponse, error) {
358-
359-
// apiURI := fmt.Sprintf("%s/cpcodes?contractId=%s&groupId=%s",
360-
// apiPaths["papi_v1"],
361-
// contractID,
362-
// groupID)
363-
364-
// resp, err := pas.client.NewRequest("POST", apiURI, newCPcode, nil)
365-
// if err != nil {
366-
// return resp, err
367-
// }
368-
369-
// return resp, err
370-
371-
// }
372-
373-
// // ListReportingAPICPEdgehosts This lists all edge hostnames available under a contract..
374-
// //
375-
// // Akamai API docs: https://developer.akamai.com/api/luna/papi/resources.html#getedgehostnames
376-
// func (pas *ReportingAPIService) ListReportingAPICPEdgehosts(contractId string) (*ReportingAPICPEdgehosts, *ClientResponse, error) {
377-
378-
// apiURI := fmt.Sprintf("%s/edgehostnames?contractId=%s&groupId=%s&options=mapDetails",
379-
// apiPaths["papi_v1"],
380-
// contractId)
381-
382-
// var k *ReportingAPICPEdgehosts
383-
// resp, err := pas.client.NewRequest("GET", apiURI, nil, &k)
384-
// if err != nil {
385-
// return nil, resp, err
386-
// }
387-
388-
// return k, resp, err
389-
390-
// }

0 commit comments

Comments
 (0)