Skip to content

Commit

Permalink
Teams and moving quotas (#188)
Browse files Browse the repository at this point in the history
* patch - [beta] adding teams and moving_quotas resources
  • Loading branch information
OrNovo authored Jan 15, 2024
1 parent 157e665 commit b7aa0be
Show file tree
Hide file tree
Showing 14 changed files with 2,537 additions and 90 deletions.
80 changes: 40 additions & 40 deletions coralogix/clientset/clientset.go
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
package clientset

type ClientSet struct {
ruleGroups *RuleGroupsClient
alerts *AlertsClient
enrichments *EnrichmentsClient
dataSet *DataSetClient
dashboards *DashboardsClient
grafana *GrafanaClient
actions *ActionsClient
recordingRuleGroups *RecordingRulesGroupsSetsClient
tcoPolicies *TCOPoliciesClient
tcoPoliciesOverrides *TCOPoliciesOverrides
webhooks *WebhooksClient
events2Metrics *Events2MetricsClient
slis *SLIClient
archiveRetentions *ArchiveRetentionsClient
archiveMetrics *ArchiveMetricsClient
archiveLogs *ArchiveLogsClient
alertsSchedulers *AlertsSchedulersClient
ruleGroups *RuleGroupsClient
alerts *AlertsClient
enrichments *EnrichmentsClient
dataSet *DataSetClient
dashboards *DashboardsClient
grafana *GrafanaClient
actions *ActionsClient
recordingRuleGroups *RecordingRulesGroupsSetsClient
tcoPolicies *TCOPoliciesClient
webhooks *WebhooksClient
events2Metrics *Events2MetricsClient
slis *SLIClient
archiveRetentions *ArchiveRetentionsClient
archiveMetrics *ArchiveMetricsClient
archiveLogs *ArchiveLogsClient
alertsSchedulers *AlertsSchedulersClient
teams *TeamsClient
}

func (c *ClientSet) RuleGroups() *RuleGroupsClient {
Expand Down Expand Up @@ -56,10 +56,6 @@ func (c *ClientSet) TCOPolicies() *TCOPoliciesClient {
return c.tcoPolicies
}

func (c *ClientSet) TCOPoliciesOverrides() *TCOPoliciesOverrides {
return c.tcoPoliciesOverrides
}

func (c *ClientSet) Webhooks() *WebhooksClient {
return c.webhooks
}
Expand Down Expand Up @@ -89,27 +85,31 @@ func (c *ClientSet) AlertSchedulers() *AlertsSchedulersClient {
return c.alertsSchedulers
}

func NewClientSet(targetUrl, apiKey, teamsApiKey string) *ClientSet {
func (c *ClientSet) Teams() *TeamsClient {
return c.teams
}

func NewClientSet(targetUrl, apiKey, orgKey string) *ClientSet {
apikeyCPC := NewCallPropertiesCreator(targetUrl, apiKey)
_ = NewCallPropertiesCreator(targetUrl, teamsApiKey)
teamsCPC := NewCallPropertiesCreator(targetUrl, orgKey)

return &ClientSet{
ruleGroups: NewRuleGroupsClient(apikeyCPC),
alerts: NewAlertsClient(apikeyCPC),
events2Metrics: NewEvents2MetricsClient(apikeyCPC),
enrichments: NewEnrichmentClient(apikeyCPC),
dataSet: NewDataSetClient(apikeyCPC),
dashboards: NewDashboardsClient(apikeyCPC),
grafana: NewGrafanaClient(apikeyCPC),
actions: NewActionsClient(apikeyCPC),
recordingRuleGroups: NewRecordingRuleGroupsClient(apikeyCPC),
tcoPolicies: NewTCOPoliciesClient(apikeyCPC),
tcoPoliciesOverrides: NewTCOPoliciesOverridesClient(apikeyCPC),
webhooks: NewWebhooksClient(apikeyCPC),
slis: NewSLIsClient(apikeyCPC),
archiveRetentions: NewArchiveRetentionsClient(apikeyCPC),
archiveMetrics: NewArchiveMetricsClient(apikeyCPC),
archiveLogs: NewArchiveLogsClient(apikeyCPC),
alertsSchedulers: NewAlertsSchedulersClient(apikeyCPC),
ruleGroups: NewRuleGroupsClient(apikeyCPC),
alerts: NewAlertsClient(apikeyCPC),
events2Metrics: NewEvents2MetricsClient(apikeyCPC),
enrichments: NewEnrichmentClient(apikeyCPC),
dataSet: NewDataSetClient(apikeyCPC),
dashboards: NewDashboardsClient(apikeyCPC),
grafana: NewGrafanaClient(apikeyCPC),
actions: NewActionsClient(apikeyCPC),
recordingRuleGroups: NewRecordingRuleGroupsClient(apikeyCPC),
tcoPolicies: NewTCOPoliciesClient(apikeyCPC),
webhooks: NewWebhooksClient(apikeyCPC),
slis: NewSLIsClient(apikeyCPC),
archiveRetentions: NewArchiveRetentionsClient(apikeyCPC),
archiveMetrics: NewArchiveMetricsClient(apikeyCPC),
archiveLogs: NewArchiveLogsClient(apikeyCPC),
alertsSchedulers: NewAlertsSchedulersClient(apikeyCPC),
teams: NewTeamsClient(teamsCPC),
}
}
Loading

0 comments on commit b7aa0be

Please sign in to comment.