Skip to content
This repository has been archived by the owner on Oct 29, 2020. It is now read-only.

Commit

Permalink
Fixing AlertChannels Configuration type
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Lopez authored and Jeremy Lopez committed May 8, 2019
1 parent 6f1ce08 commit 46a067c
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion api/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,35 @@ type AlertChannel struct {
ID int `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Type string `json:"type,omitempty"`
Configuration map[string]interface{} `json:"configuration,omitempty"`
Configuration AlertChannelConfiguration `json:"configuration,omitempty"`
Links AlertChannelLinks `json:"links,omitempty"`
}

// AlertChannelConfiguration represents a Configuration type within AlertChannels
type AlertChannelConfiguration struct {
Recipients string`json:"recipients,omitempty"`
IncludeJSONAttachment string `json:"include_json_attachment,omitempty"`
AuthToken string`json:"auth_token,omitempty"`
RoomID string`json:"room_id,omitempty"`
ApiKey string`json:"api_key,omitempty"`
Teams string`json:"teams,omitempty"`
Tags string`json:"tags,omitempty"`
Url string`json:"url,omitempty"`
Channel string`json:"channel,omitempty"`
Subdomain string`json:"subdomain,omitempty"`
Token string`json:"token,omitempty"`
Room string`json:"room,omitempty"`
Key string`json:"key,omitempty"`
RouteKey string`json:"route_key,omitempty"`
ServiceKey string`json:"service_key,omitempty"`
BaseUrl string`json:"base_url,omitempty"`
AuthUsername string`json:"auth_username,omitempty"`
AuthPassword string`json:"auth_password,omitempty"`
PayloadType string`json:"payload_type,omitempty"`
Payload map[string]interface{} `json:"payload,omitempty"`
Headers map[string]interface{} `json:"headers,omitempty"`
}

// ApplicationSummary represents performance information about a New Relic application.
type ApplicationSummary struct {
ResponseTime float64 `json:"response_time"`
Expand Down

0 comments on commit 46a067c

Please sign in to comment.