11package client
22
3-
43type Alert struct {
5- Id string `json:"id"`
6- Name string `json:"name"`
7- Actual string `json:"actual"`
8- Closed int `json:"closed "`
9- Code int `json:"code "`
10- ComponentName string `json:"component_name "`
11- ComponentType string `json:"component_type "`
12- Created int `json:"created "`
13- Description string `json:"description "`
14- Expected string `json:"expected "`
15- Flagged bool `json:"flagged "`
16- Issue string `json:"issue "`
17- Index int `json:"index "`
18- KnowledgeBaseUrl string `json:"knowledge_base_url"`
19- Notified int `json:"notified"`
20- Severity string `json:"severity"`
21- State string `json:"state"`
22- Summary string `json:"summary"`
23- Updated int `json:"updated"`
4+ Id string `json:"id"`
5+ Name string `json:"name"`
6+ Actual string `json:"actual"`
7+ Category string `json:"category "`
8+ Closed int64 `json:"closed "`
9+ Code int64 `json:"code "`
10+ ComponentName string `json:"component_name "`
11+ ComponentType string `json:"component_type "`
12+ Created int64 `json:"created "`
13+ Description string `json:"description "`
14+ Expected string `json:"expected "`
15+ Flagged bool `json:"flagged "`
16+ Issue string `json:"issue "`
17+ KnowledgeBaseUrl string `json:"knowledge_base_url"`
18+ Notified int64 `json:"notified"`
19+ Severity string `json:"severity"`
20+ State string `json:"state"`
21+ Summary string `json:"summary"`
22+ Updated int64 `json:"updated"`
2423}
2524
2625type AlertsList struct {
27- ContinuationToken string `json:"continuation_token"`
28- TotalItemCount int `json:"total_item_count"`
29- MoreItemsRemaining bool `json:"more_items_remaining"`
30- Items []Alert `json:"items"`
26+ ContinuationToken string `json:"continuation_token"`
27+ TotalItemCount int32 `json:"total_item_count"`
28+ MoreItemsRemaining bool `json:"more_items_remaining"`
29+ Items []Alert `json:"items"`
3130}
3231
3332func (fa * FAClient ) GetAlerts (filter string ) * AlertsList {
@@ -48,6 +47,6 @@ func (fa *FAClient) GetAlerts(filter string) *AlertsList {
4847 if err != nil {
4948 fa .Error = err
5049 }
51-
50+
5251 return result
5352}
0 commit comments