Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add go mod * change to yaml.v2 * one yaml file per monitor * multiple monitor files when getting local * clean go mod for yaml.v2 * remove debug print * pull full destination info * pull full destination info * Revert "remove debug print" This reverts commit 28edbd4. * Revert "clean go mod for yaml.v2" This reverts commit daefd15. * Revert "multiple monitor files when getting local" This reverts commit 8900c1e. * Revert "one yaml file per monitor" This reverts commit 5c1508c. * Revert "add go mod" This reverts commit dfcc4c9. * lower case name * need strings import * go fmt Co-authored-by: Kusha Gharahi <kusha.gharahi@toyotaconnected.com>
- Loading branch information
1 parent
0945357
commit 65993f1
Showing
5 changed files
with
55 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package destination | ||
|
||
// Destination object | ||
type Destination struct { | ||
ID string | ||
Name string `json:"name"` | ||
Type string `json:"type"` | ||
Slack Slack `json:"slack,omitempty" yaml:",omitempty"` | ||
CustomWebhook CustomWebhook `json:"custom_webhook,omitempty" yaml:",omitempty"` | ||
} | ||
|
||
// Slack destination object | ||
type Slack struct { | ||
URL string `json:"url,omitempty" yaml:",omitempty"` | ||
} | ||
|
||
// CustomWebhook destination object | ||
type CustomWebhook struct { | ||
Path string `json:"path,omitempty" yaml:",omitempty"` | ||
HeaderParams map[string]string `json:"header_params,omitempty" yaml:",omitempty"` | ||
Password string `json:"password,omitempty" yaml:",omitempty"` | ||
Port int `json:"port,omitempty" yaml:",omitempty"` | ||
Scheme string `json:"scheme,omitempty" yaml:",omitempty"` | ||
QueryParams map[string]string `json:"query_params,omitempty" yaml:",omitempty"` | ||
Host string `json:"host,omitempty" yaml:",omitempty"` | ||
URL string `json:"url,omitempty" yaml:",omitempty"` | ||
Username string `json:"username,omitempty" yaml:",omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.