-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Azure data collection functionality, partial collectors and sources API support and code design changes.
- Loading branch information
Showing
29 changed files
with
1,781 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,9 +19,11 @@ The repo is using Go modules so you can run go build: | |
|
||
## Documentation | ||
|
||
All detailed documentation for Sumocli is located in [Gitbook](https://sumocli.gitbook.io) | ||
Detailed documentaion for each command can be found here: https://sumocli.gitbook.io/ | ||
|
||
## Contributing | ||
|
||
Clone or fork the repo, make your changes and create a pull request. | ||
|
||
If there is something you can't access in the repo email: [email protected] | ||
|
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,50 @@ | ||
package api | ||
|
||
type Collectors struct { | ||
Data []CollectorsResponse `json:"collectors"` | ||
} | ||
|
||
type CreateCollectorRequest struct { | ||
Collector CreateCollector `json:"collector"` | ||
} | ||
|
||
type CreateCollector struct { | ||
CollectorType string `json:"collectorType"` | ||
Name string `json:"name"` | ||
Description string `json:"description,omitempty"` | ||
Category string `json:"category,omitempty"` | ||
Fields map[string]string `json:"fields,omitempty"` | ||
} | ||
|
||
type CollectorResponse struct { | ||
Collector CollectorsResponse `json:"collector"` | ||
} | ||
|
||
type CollectorsResponse struct { | ||
Alive bool `json:"alive"` | ||
Category string `json:"category,omitempty"` | ||
CollectorType string `json:"collectorType"` | ||
CollectorVersion string `json:"collectorVersion"` | ||
CutoffRelativeTime string `json:"cutoffRelativeTime,omitempty"` | ||
CutoffTimestamp int `json:"cutoffTimestamp,omitempty"` | ||
Description string `json:"description,omitempty"` | ||
Ephemeral bool `json:"ephemeral"` | ||
Fields map[string]string `json:"fields,omitempty"` | ||
Links []collectorLinks `json:"links,omitempty"` | ||
HostName string `json:"hostName,omitempty"` | ||
Id int `json:"id"` | ||
LastSeenAlive int `json:"lastSeenAlive,omitempty"` | ||
Name string `json:"name"` | ||
SourceSyncMode string `json:"sourceSyncMode,omitempty"` | ||
TimeZone string `json:"timeZone,omitempty"` | ||
TargetCpu int `json:"targetCpu,omitempty"` | ||
OsName string `json:"osName,omitempty"` | ||
OsVersion string `json:"osVersion,omitempty"` | ||
OsArch string `json:"osArch,omitempty"` | ||
OsTime int `json:"osTime,omitempty"` | ||
} | ||
|
||
type collectorLinks struct { | ||
Rel string `json:"rel"` | ||
Href string `json:"href"` | ||
} |
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,69 @@ | ||
package api | ||
|
||
type CreateHTTPSource struct { | ||
ApiVersion string `json:"api.version"` | ||
Source HttpSource `json:"source"` | ||
} | ||
|
||
type HttpSource struct { | ||
SourceType string `json:"sourceType"` | ||
Name string `json:"name"` | ||
Category string `json:"category"` | ||
Fields map[string]string `json:"fields"` | ||
MessagePerRequest bool `json:"messagePerRequest"` | ||
MultilineProcessingEnabled bool `json:"multilineProcessingEnabled"` | ||
} | ||
|
||
type ListSources struct { | ||
Sources []GetSourcesResponse `json:"sources"` | ||
} | ||
|
||
type CreateSourceResponse struct { | ||
Source SourcesResponse `json:"source"` | ||
} | ||
|
||
type GetSourcesResponse struct { | ||
Id int `json:"id"` | ||
Name string `json:"name"` | ||
Category string `json:"category"` | ||
HostName string `json:"hostName"` | ||
AutomaticDateParsing bool `json:"automaticDateParsing"` | ||
MultilineProcessingEnabled bool `json:"multilineProcessingEnabled"` | ||
UseAutolineMatching bool `json:"useAutolineMatching"` | ||
ForceTimeZone bool `json:"forceTimeZone"` | ||
Filters []sourceFilters `json:"filters"` | ||
CutoffTimestamp int `json:"cutoffTimestamp"` | ||
Encoding string `json:"encoding"` | ||
PathExpression string `json:"pathExpression"` | ||
Blacklist []string `json:"blacklist"` | ||
SourceType string `json:"sourceType"` | ||
Alive bool `json:"alive"` | ||
} | ||
|
||
type SourcesResponse struct { | ||
Id int `json:"id"` | ||
Name string `json:"name"` | ||
HostName string `json:"hostName,omitempty"` | ||
AutomaticDateParsing bool `json:"automaticDateParsing"` | ||
MultilineProcessingEnabled bool `json:"multilineProcessingEnabled"` | ||
UseAutolineMatching bool `json:"useAutolineMatching"` | ||
ContentType string `json:"contentType"` | ||
ForceTimezone bool `json:"forceTimezome"` | ||
Filters []sourceFilters `json:"filters"` | ||
CutoffTimestamp int `json:"cutoffTimestamp"` | ||
Encoding string `json:"encoding"` | ||
Interval int `json:"interval"` | ||
Metrics []string `json:"metrics"` | ||
SourceType string `json:"sourceType"` | ||
Alive bool `json:"alive"` | ||
Url string `json:"url,omitempty"` | ||
Category string `json:"category,omitempty"` | ||
Fields map[string]string `json:"fields,omitempty"` | ||
MessagePerRequest bool `json:"messagePerRequest"` | ||
} | ||
|
||
type sourceFilters struct { | ||
FilterType string `json:"filterType"` | ||
Name string `json:"name"` | ||
Regexp string `json:"regexp"` | ||
} |
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
Oops, something went wrong.