Skip to content

Commit

Permalink
Add flex logs storage tier (#2493)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec committed May 16, 2024
1 parent ea5c581 commit 8e84dfe
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-05-14 16:40:03.937580",
"spec_repo_commit": "45952461"
"regenerated": "2024-05-15 14:47:01.599856",
"spec_repo_commit": "4e2ffe7b"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-05-14 16:40:03.955222",
"spec_repo_commit": "45952461"
"regenerated": "2024-05-15 14:47:01.618687",
"spec_repo_commit": "4e2ffe7b"
}
}
}
4 changes: 3 additions & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11736,15 +11736,17 @@ components:
- DESCENDING
LogsStorageTier:
default: indexes
description: Specifies storage type as indexes or online-archives
description: Specifies storage type as indexes, online-archives or flex
enum:
- indexes
- online-archives
- flex
example: indexes
type: string
x-enum-varnames:
- INDEXES
- ONLINE_ARCHIVES
- FLEX
LogsWarning:
description: A warning message indicating something that went wrong with the
query
Expand Down
2 changes: 1 addition & 1 deletion api/datadogV2/model_logs_query_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type LogsQueryFilter struct {
Indexes []string `json:"indexes,omitempty"`
// The search query - following the log search syntax.
Query *string `json:"query,omitempty"`
// Specifies storage type as indexes or online-archives
// Specifies storage type as indexes, online-archives or flex
StorageTier *LogsStorageTier `json:"storage_tier,omitempty"`
// The maximum time for the requested logs, supports date math and regular timestamps (milliseconds).
To *string `json:"to,omitempty"`
Expand Down
4 changes: 3 additions & 1 deletion api/datadogV2/model_logs_storage_tier.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,20 @@ import (
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
)

// LogsStorageTier Specifies storage type as indexes or online-archives
// LogsStorageTier Specifies storage type as indexes, online-archives or flex
type LogsStorageTier string

// List of LogsStorageTier.
const (
LOGSSTORAGETIER_INDEXES LogsStorageTier = "indexes"
LOGSSTORAGETIER_ONLINE_ARCHIVES LogsStorageTier = "online-archives"
LOGSSTORAGETIER_FLEX LogsStorageTier = "flex"
)

var allowedLogsStorageTierEnumValues = []LogsStorageTier{
LOGSSTORAGETIER_INDEXES,
LOGSSTORAGETIER_ONLINE_ARCHIVES,
LOGSSTORAGETIER_FLEX,
}

// GetAllowedValues reeturns the list of possible values.
Expand Down

0 comments on commit 8e84dfe

Please sign in to comment.