Skip to content

Commit

Permalink
feat: alerts api update
Browse files Browse the repository at this point in the history
  • Loading branch information
celaus committed Nov 8, 2024
1 parent 34cc6e8 commit 63b47c1
Show file tree
Hide file tree
Showing 6 changed files with 185 additions and 317 deletions.
2 changes: 1 addition & 1 deletion coralogix/clientset/clientset.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (c *ClientSet) Integrations() *cxsdk.IntegrationsClient {

func NewClientSet(targetUrl, apiKey string) *ClientSet {
apikeyCPC := NewCallPropertiesCreator(targetUrl, apiKey)
apiKeySdk := cxsdk.NewCallPropertiesCreator(targetUrl, cxsdk.NewAuthContext(apiKey, apiKey))
apiKeySdk := cxsdk.NewCallPropertiesCreatorTerraformOperator(targetUrl, cxsdk.NewAuthContext(apiKey, apiKey), TF_PROVIDER_VERSION)

return &ClientSet{
apikeys: cxsdk.NewAPIKeysClient(apiKeySdk),
Expand Down
17 changes: 17 additions & 0 deletions coralogix/clientset/version.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright 2024 Coralogix Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package clientset

const TF_PROVIDER_VERSION = "1.18.12"
Loading

0 comments on commit 63b47c1

Please sign in to comment.