Documentation ¶
Index ¶
- Constants
- Variables
- func Provider() terraform.ResourceProvider
- type Client
- func (s *Client) AssignCollectorToIngestBudget(ingestBudgetId string, collectorId int) error
- func (s *Client) CollectorAssignedToIngestBudget(ingestBudgetId string, collectorId int) (bool, error)
- func (s *Client) CreateCloudsyslogSource(cloudSyslogSource CloudSyslogSource, collectorID int) (int, error)
- func (s *Client) CreateCollector(collector Collector) (int, error)
- func (s *Client) CreateHTTPSource(httpSource HTTPSource, collectorID int) (int, error)
- func (s *Client) CreateIngestBudget(budget IngestBudget) (string, error)
- func (s *Client) CreatePollingSource(source PollingSource, collectorID int) (int, error)
- func (s *Client) CreateRole(role Role) (string, error)
- func (s *Client) CreateUser(user User) (string, error)
- func (s *Client) Delete(urlPath string) ([]byte, error)
- func (s *Client) DeleteCollector(id int) error
- func (s *Client) DeleteIngestBudget(id string) error
- func (s *Client) DeleteRole(id string) error
- func (s *Client) DeleteUser(id string) error
- func (s *Client) DestroySource(sourceID int, collectorID int) error
- func (s *Client) FindIngestBudget(name string) (*IngestBudget, error)
- func (s *Client) Get(urlPath string) ([]byte, string, error)
- func (s *Client) GetCloudSyslogSource(collectorID, sourceID int) (*CloudSyslogSource, error)
- func (s *Client) GetCollector(id int) (*Collector, error)
- func (s *Client) GetCollectorName(name string) (*Collector, error)
- func (s *Client) GetHTTPSource(collectorID, sourceID int) (*HTTPSource, error)
- func (s *Client) GetIngestBudget(id string) (*IngestBudget, error)
- func (s *Client) GetPollingSource(collectorID, sourceID int) (*PollingSource, error)
- func (s *Client) GetRole(id string) (*Role, error)
- func (s *Client) GetRoleName(name string) (*Role, error)
- func (s *Client) GetSourceName(collectorID int, sourceName string) (*Source, error)
- func (s *Client) GetUser(id string) (*User, error)
- func (s *Client) GetWithCookies(urlPath string, cookies []*http.Cookie) ([]byte, string, error)
- func (s *Client) Post(urlPath string, payload interface{}) ([]byte, error)
- func (s *Client) PostWithCookies(urlPath string, payload interface{}) ([]byte, []*http.Cookie, error)
- func (s *Client) Put(urlPath string, payload interface{}) ([]byte, error)
- func (s *Client) UnAssignCollectorToIngestBudget(ingestBudgetId string, collectorId int) error
- func (s *Client) UpdateCloudSyslogSource(source CloudSyslogSource, collectorID int) error
- func (s *Client) UpdateCollector(collector Collector) error
- func (s *Client) UpdateHTTPSource(source HTTPSource, collectorID int) error
- func (s *Client) UpdateIngestBudget(budget IngestBudget) error
- func (s *Client) UpdatePollingSource(source PollingSource, collectorID int) error
- func (s *Client) UpdateRole(role Role) error
- func (s *Client) UpdateUser(user User) error
- type CloudSyslogSource
- type Collector
- type CollectorLink
- type CollectorList
- type CollectorRequest
- type CollectorResponse
- type DefaultDateFormat
- type Filter
- type HTTPSource
- type HttpClient
- type IngestBudget
- type PollingAuthentication
- type PollingPath
- type PollingResource
- type PollingSource
- type PollingThirdPartyRef
- type Role
- type RoleList
- type Source
- type SourceList
- type User
- type UserList
Constants ¶
View Source
const DefaultEnvironment = "us2"
Variables ¶
View Source
var SumoMutexKV = mutexkv.NewMutexKV()
Functions ¶
func Provider ¶
func Provider() terraform.ResourceProvider
Types ¶
type Client ¶
type Client struct { AccessID string AccessKey string Environment string BaseURL *url.URL // contains filtered or unexported fields }
func (*Client) AssignCollectorToIngestBudget ¶ added in v0.4.0
func (*Client) CollectorAssignedToIngestBudget ¶ added in v0.4.0
func (*Client) CreateCloudsyslogSource ¶
func (s *Client) CreateCloudsyslogSource(cloudSyslogSource CloudSyslogSource, collectorID int) (int, error)
func (*Client) CreateHTTPSource ¶
func (s *Client) CreateHTTPSource(httpSource HTTPSource, collectorID int) (int, error)
func (*Client) CreateIngestBudget ¶ added in v0.4.0
func (s *Client) CreateIngestBudget(budget IngestBudget) (string, error)
func (*Client) CreatePollingSource ¶
func (s *Client) CreatePollingSource(source PollingSource, collectorID int) (int, error)
func (*Client) DeleteCollector ¶
func (*Client) DeleteIngestBudget ¶ added in v0.4.0
func (*Client) DeleteRole ¶ added in v0.3.0
func (*Client) DeleteUser ¶ added in v0.4.0
func (*Client) FindIngestBudget ¶ added in v0.4.0
func (s *Client) FindIngestBudget(name string) (*IngestBudget, error)
func (*Client) GetCloudSyslogSource ¶
func (s *Client) GetCloudSyslogSource(collectorID, sourceID int) (*CloudSyslogSource, error)
func (*Client) GetCollectorName ¶
func (*Client) GetHTTPSource ¶
func (s *Client) GetHTTPSource(collectorID, sourceID int) (*HTTPSource, error)
func (*Client) GetIngestBudget ¶ added in v0.4.0
func (s *Client) GetIngestBudget(id string) (*IngestBudget, error)
func (*Client) GetPollingSource ¶
func (s *Client) GetPollingSource(collectorID, sourceID int) (*PollingSource, error)
func (*Client) GetRoleName ¶ added in v0.3.0
func (*Client) GetSourceName ¶
func (*Client) GetWithCookies ¶
func (*Client) PostWithCookies ¶
func (*Client) UnAssignCollectorToIngestBudget ¶ added in v0.4.0
func (*Client) UpdateCloudSyslogSource ¶
func (s *Client) UpdateCloudSyslogSource(source CloudSyslogSource, collectorID int) error
func (*Client) UpdateCollector ¶
func (*Client) UpdateHTTPSource ¶
func (s *Client) UpdateHTTPSource(source HTTPSource, collectorID int) error
func (*Client) UpdateIngestBudget ¶ added in v0.4.0
func (s *Client) UpdateIngestBudget(budget IngestBudget) error
func (*Client) UpdatePollingSource ¶
func (s *Client) UpdatePollingSource(source PollingSource, collectorID int) error
func (*Client) UpdateRole ¶ added in v0.3.0
func (*Client) UpdateUser ¶ added in v0.4.0
type CloudSyslogSource ¶
type Collector ¶
type Collector struct { ID int `json:"id,omitempty"` CollectorType string `json:"collectorType,omitempty"` Name string `json:"name"` Description string `json:"description,omitempty"` Category string `json:"category,omitempty"` TimeZone string `json:"timeZone,omitempty"` Links []CollectorLink `json:"links,omitempty"` CollectorVersion string `json:"collectorVersion,omitempty"` LastSeenAlive int `json:"lastSeenAlive,omitempty"` Alive bool `json:"alive,omitempty"` }
type CollectorLink ¶
type CollectorList ¶
type CollectorList struct {
Collectors []Collector `json:"collectors"`
}
type CollectorRequest ¶
type CollectorRequest struct {
Collector Collector `json:"collector"`
}
type CollectorResponse ¶
type CollectorResponse struct {
Collector Collector `json:"collector"`
}
type DefaultDateFormat ¶
type HTTPSource ¶
type HttpClient ¶ added in v0.2.1
type IngestBudget ¶ added in v0.4.0
type IngestBudget struct { ID string `json:"id,omitempty"` Name string `json:"name"` FieldValue string `json:"fieldValue"` Capacity int `json:"capacityBytes"` Timezone string `json:"timezone"` ResetTime string `json:"resetTime"` Description string `json:"description,omitempty"` Action string `json:"action"` }
type PollingAuthentication ¶
type PollingPath ¶
type PollingResource ¶
type PollingResource struct { ServiceType string `json:"serviceType"` Authentication PollingAuthentication `json:"authentication"` Path PollingPath `json:"path"` }
type PollingSource ¶
type PollingThirdPartyRef ¶
type PollingThirdPartyRef struct {
Resources []PollingResource `json:"resources"`
}
type Source ¶
type Source struct { ID int `json:"id,omitempty"` Type string `json:"sourceType"` Name string `json:"name"` Description string `json:"description,omitempty"` Category string `json:"category,omitempty"` HostName string `json:"hostName,omitempty"` TimeZone string `json:"timeZone,omitempty"` AutomaticDateParsing bool `json:"automaticDateParsing"` MultilineProcessingEnabled bool `json:"multilineProcessingEnabled"` UseAutolineMatching bool `json:"useAutolineMatching"` ManualPrefixRegexp string `json:"manualPrefixRegexp,omitempty"` ForceTimeZone bool `json:"forceTimeZone"` DefaultDateFormats []DefaultDateFormat `json:"defaultDateFormats,omitempty"` Filters []Filter `json:"filters,omitempty"` CutoffTimestamp int `json:"cutoffTimestamp,omitempty"` CutoffRelativeTime string `json:"cutoffRelativeTime,omitempty"` }
type SourceList ¶
type SourceList struct {
Sources []Source `json:"sources"`
}
Source Files ¶
- data_source_sumologic_collector.go
- data_sumologic_source_caller_identity.go
- provider.go
- resource_sumologic_cloudsyslog_source.go
- resource_sumologic_collector.go
- resource_sumologic_collector_ingest_budget_assignment.go
- resource_sumologic_http_source.go
- resource_sumologic_ingest_budget.go
- resource_sumologic_polling_source.go
- resource_sumologic_role.go
- resource_sumologic_user.go
- sumologic_client.go
- sumologic_cloudsyslog_source.go
- sumologic_collectors.go
- sumologic_http_source.go
- sumologic_ingest_budget.go
- sumologic_polling_source.go
- sumologic_roles.go
- sumologic_sources.go
- sumologic_users.go
Click to show internal directories.
Click to hide internal directories.