Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,16 @@
- `v1betaapi`:
- **Breaking Change:** `Enabled` field of `CreateOrUpdateFolderTelemetryLinkPayload`, `CreateOrUpdateOrganizationTelemetryLinkPayload` and `CreateOrUpdateProjectTelemetryLinkPayload` changed from `bool` to `*bool` and is no longer required (defaults to `true`). `NewCreateOrUpdate*TelemetryLinkPayload` constructors drop the `enabled` param
- `telemetryrouter`:
- [v0.7.0](services/telemetryrouter/CHANGELOG.md#v070)
- `v1api`:
- **Feature:** New `PartialUpdateTelemetryRouter` operation
- **Feature:** Add `DestinationCount` field to `TelemetryRouterResponse` to get the number of destinations TelemetryRouter has
- **Feature:** Add `ResourceLabels` field to `UpdateTelemetryRouterPayload`
- **Breaking change:** Add regex validation to the `Key` field of `ConfigFilterAttributes`, which now must be non-empty and must not contain control characters
- **Breaking change:** Add regex validation to the `BearerToken` and `Uri` fields of `DestinationConfigOpenTelemetry`, which now must be non-empty and must not contain control characters
- **Breaking change:** Add regex validation to the `Username` and `Password` fields of `DestinationConfigOpenTelemetryBasicAuth`, which now must be non-empty and must not contain control characters
- **Breaking change:** Add regex validation to the `Bucket` and `Endpoint` fields of `DestinationConfigS3`: `Bucket` may only contain lowercase letters, digits and hyphens, `Endpoint` must be non-empty and must not contain control characters
- **Breaking change:** Add regex validation to the `Id` and `Secret` fields of `DestinationConfigS3AccessKey`, which now must be non-empty and must not contain control characters
- [v0.6.1](services/telemetryrouter/CHANGELOG.md#v061)
- **Dependencies:** Bump STACKIT SDK core module from `v0.27.0` to `v0.27.1`
- [v0.6.0](services/telemetryrouter/CHANGELOG.md#v060)
Expand Down
2 changes: 1 addition & 1 deletion examples/telemetryrouter/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ replace github.com/stackitcloud/stackit-sdk-go/services/telemetryrouter => ../..

require (
github.com/stackitcloud/stackit-sdk-go/core v0.27.1
github.com/stackitcloud/stackit-sdk-go/services/telemetryrouter v0.5.2
github.com/stackitcloud/stackit-sdk-go/services/telemetryrouter v0.7.0
)

require (
Expand Down
31 changes: 31 additions & 0 deletions examples/telemetryrouter/telemetryrouter.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,37 @@ func main() {
}
log.Printf("[Telemetry Router API] TelemetryRouter Instance \"%s\" has been successfully updated.\n", createdInstance)

// Partially update the created Telemetry Router Instance
log.Printf("[TelemetryRouter API] Partially updating TelemetryRouter Instance with ID \"%s\".\n", createResp.Id)
partialUpdatePayload := telemetryrouter.PartialUpdateTelemetryRouterPayload{
DisplayName: utils.Ptr("my-part-upd-tlmr-instance"),
Filter: &telemetryrouter.ConfigFilter{
Attributes: []telemetryrouter.ConfigFilterAttributes{
{
Key: "service.name",
Level: "logRecord",
Matcher: "=",
Values: []string{"service3", "service4"},
},
},
},
}
partialUpdateResp, err := client.DefaultAPI.PartialUpdateTelemetryRouter(ctx, projectId, regionId, createdInstance).
PartialUpdateTelemetryRouterPayload(partialUpdatePayload).
Execute()
if err != nil {
log.Fatalf("[Telemetry Router API] Error when calling `PartialUpdateTelemetryRouter`: %v\n", err)
}
log.Printf("[Telemetry Router API] Partially Updated Telemetry Router Instance with ID \"%s\" to Display Name \"%s\".\n", partialUpdateResp.Id, partialUpdateResp.DisplayName)

// Wait for the Telemetry Router Instance to be partially updated
log.Printf("[TelemetryRouter API] Waiting for TelemetryRouter Instance with ID \"%s\" to be partially updated.\n", createResp.Id)
_, err = wait.PartialUpdateTelemetryRouterWaitHandler(ctx, client.DefaultAPI, projectId, regionId, createdInstance).WaitWithContext(context.Background())
if err != nil {
log.Fatalf("[Telemetry Router API] Error when waiting for partial update: %v\n", err)
}
log.Printf("[Telemetry Router API] TelemetryRouter Instance \"%s\" has been successfully partially updated.\n", createdInstance)

// Create an Access Token
log.Printf("[TelemetryRouter API] Creating AccessToken for TelemetryRouter Instance with ID \"%s\".\n", createResp.Id)
createTokenPayload := telemetryrouter.CreateAccessTokenPayload{
Expand Down
11 changes: 11 additions & 0 deletions services/telemetryrouter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## v0.7.0
- `v1api`:
- **Feature:** New `PartialUpdateTelemetryRouter` operation
- **Feature:** Add `DestinationCount` field to `TelemetryRouterResponse` to get the number of destinations TelemetryRouter has
- **Feature:** Add `ResourceLabels` field to `UpdateTelemetryRouterPayload`
- **Breaking change:** Add regex validation to the `Key` field of `ConfigFilterAttributes`, which now must be non-empty and must not contain control characters
- **Breaking change:** Add regex validation to the `BearerToken` and `Uri` fields of `DestinationConfigOpenTelemetry`, which now must be non-empty and must not contain control characters
- **Breaking change:** Add regex validation to the `Username` and `Password` fields of `DestinationConfigOpenTelemetryBasicAuth`, which now must be non-empty and must not contain control characters
- **Breaking change:** Add regex validation to the `Bucket` and `Endpoint` fields of `DestinationConfigS3`: `Bucket` may only contain lowercase letters, digits and hyphens, `Endpoint` must be non-empty and must not contain control characters
- **Breaking change:** Add regex validation to the `Id` and `Secret` fields of `DestinationConfigS3AccessKey`, which now must be non-empty and must not contain control characters

## v0.6.1
- **Dependencies:** Bump STACKIT SDK core module from `v0.27.0` to `v0.27.1`

Expand Down
2 changes: 1 addition & 1 deletion services/telemetryrouter/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.6.1
v0.7.0
2 changes: 1 addition & 1 deletion services/telemetryrouter/oas_commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7fd0fb8e513021dfbad1f5ee736785ec72987b40
ce85c358fa92fa2943b3914b05bf1d2059d1d9b6
184 changes: 184 additions & 0 deletions services/telemetryrouter/v1api/api_default.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions services/telemetryrouter/v1api/api_default_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading