Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change values in ttl #266

Closed
wants to merge 2 commits into from
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ CREATE TABLE IF NOT EXISTS trivy_misconfig (
misconfig_severity String,
misconfig_status String,
EventTime DateTime('UTC'),
ExpiryDate DateTime DEFAULT now() + INTERVAL 6 MONTH
ExpiryDate DateTime DEFAULT now() + INTERVAL {{.TTLValue}} {{.TTLUnit}}
) ENGINE = MergeTree()
ORDER BY ExpiryDate
TTL ExpiryDate;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ CREATE TABLE IF NOT EXISTS trivyimage (
vul_severity String,
vul_published_date DateTime('UTC'),
vul_last_modified_date DateTime('UTC'),
ExpiryDate DateTime DEFAULT now() + INTERVAL 6 MONTH
ExpiryDate DateTime DEFAULT now() + INTERVAL {{.TTLValue}} {{.TTLUnit}}
) ENGINE = MergeTree()
ORDER BY ExpiryDate
TTL ExpiryDate;
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CREATE TABLE IF NOT EXISTS dockerhubbuild (
Owner String,
Event String,
EventTime DateTime('UTC'),
ExpiryDate DateTime DEFAULT now() + INTERVAL 6 MONTH
ExpiryDate DateTime DEFAULT now() + INTERVAL {{.TTLValue}} {{.TTLUnit}}
) ENGINE = MergeTree()
ORDER BY ExpiryDate
TTL ExpiryDate;
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS azurecontainerpush (
Size Int32,
SHAID String,
EventTime DateTime('UTC'),
ExpiryDate DateTime DEFAULT now() + INTERVAL 6 MONTH
ExpiryDate DateTime DEFAULT now() + INTERVAL {{.TTLValue}} {{.TTLUnit}}
) ENGINE = MergeTree()
ORDER BY ExpiryDate
TTL ExpiryDate;
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS quaycontainerpush (
tag String,
Event String,
EventTime DateTime('UTC'),
ExpiryDate DateTime DEFAULT now() + INTERVAL 6 MONTH
ExpiryDate DateTime DEFAULT now() + INTERVAL {{.TTLValue}} {{.TTLUnit}}
) ENGINE = MergeTree()
ORDER BY ExpiryDate
TTL ExpiryDate;
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ CREATE TABLE IF NOT EXISTS trivysbom (
component_license_exp String,
component_purl String,
dependency_ref String,
ExpiryDate DateTime DEFAULT now() + INTERVAL 6 MONTH
ExpiryDate DateTime DEFAULT now() + INTERVAL {{.TTLValue}} {{.TTLUnit}}
) ENGINE = MergeTree()
ORDER BY ExpiryDate
TTL ExpiryDate;
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS azure_devops (
RepoName String,
TimeStamp DateTime('UTC'),
Event String,
ExpiryDate DateTime DEFAULT now() + INTERVAL 6 MONTH
ExpiryDate DateTime DEFAULT now() + INTERVAL {{.TTLValue}} {{.TTLUnit}}
) ENGINE = MergeTree()
ORDER BY ExpiryDate
TTL ExpiryDate;
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS github (
RepoName String,
TimeStamp DateTime('UTC'),
Event String,
ExpiryDate DateTime DEFAULT now() + INTERVAL 6 MONTH
ExpiryDate DateTime DEFAULT now() + INTERVAL {{.TTLValue}} {{.TTLUnit}}
) ENGINE = MergeTree()
ORDER BY ExpiryDate
TTL ExpiryDate;
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS gitlab (
RepoName String,
TimeStamp DateTime('UTC'),
Event String,
ExpiryDate DateTime DEFAULT now() + INTERVAL 6 MONTH
ExpiryDate DateTime DEFAULT now() + INTERVAL {{.TTLValue}} {{.TTLUnit}}
) ENGINE = MergeTree()
ORDER BY ExpiryDate
TTL ExpiryDate;
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS bitbucket (
RepoName String,
TimeStamp DateTime('UTC'),
Event String,
ExpiryDate DateTime DEFAULT now() + INTERVAL 6 MONTH
ExpiryDate DateTime DEFAULT now() + INTERVAL {{.TTLValue}} {{.TTLUnit}}
) ENGINE = MergeTree()
ORDER BY ExpiryDate
TTL ExpiryDate;
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ CREATE TABLE IF NOT EXISTS events (
Event String,
FirstTime String,
LastTime String,
ExpiryDate DateTime DEFAULT now() + INTERVAL 6 MONTH
ExpiryDate DateTime DEFAULT now() + INTERVAL {{.TTLValue}} {{.TTLUnit}}
) ENGINE = MergeTree()
ORDER BY ExpiryDate
TTL ExpiryDate;
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS gitea (
RepoName String,
TimeStamp DateTime('UTC'),
Event String,
ExpiryDate DateTime DEFAULT now() + INTERVAL 6 MONTH
ExpiryDate DateTime DEFAULT now() + INTERVAL {{.TTLValue}} {{.TTLUnit}}
) ENGINE = MergeTree()
ORDER BY ExpiryDate
TTL ExpiryDate;
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CREATE TABLE IF NOT EXISTS rakkess (
List String,
Update String,
EventTime DateTime('UTC'),
ExpiryDate DateTime DEFAULT now() + INTERVAL 6 MONTH
ExpiryDate DateTime DEFAULT now() + INTERVAL {{.TTLValue}} {{.TTLUnit}}
) ENGINE = MergeTree()
ORDER BY ExpiryDate
TTL ExpiryDate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CREATE TABLE IF NOT EXISTS DeprecatedAPIs (
Deprecated UInt8,
Scope String,
EventTime DateTime('UTC'),
ExpiryDate DateTime DEFAULT now() + INTERVAL 6 MONTH
ExpiryDate DateTime DEFAULT now() + INTERVAL {{.TTLValue}} {{.TTLUnit}}
) ENGINE = MergeTree()
ORDER BY ExpiryDate
TTL ExpiryDate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ CREATE TABLE IF NOT EXISTS DeletedAPIs (
Deleted UInt8,
Scope String,
EventTime DateTime('UTC'),
ExpiryDate DateTime DEFAULT now() + INTERVAL 6 MONTH
ExpiryDate DateTime DEFAULT now() + INTERVAL {{.TTLValue}} {{.TTLUnit}}
) ENGINE = MergeTree()
ORDER BY ExpiryDate
TTL ExpiryDate;
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CREATE TABLE IF NOT EXISTS jfrogcontainerpush (
Tag String,
Event String,
EventTime DateTime('UTC'),
ExpiryDate DateTime DEFAULT now() + INTERVAL 6 MONTH
ExpiryDate DateTime DEFAULT now() + INTERVAL {{.TTLValue}} {{.TTLUnit}}
) ENGINE = MergeTree()
ORDER BY ExpiryDate
TTL ExpiryDate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CREATE TABLE IF NOT EXISTS getall_resources (
Resource String,
Age String,
EventTime DateTime('UTC'),
ExpiryDate DateTime DEFAULT now() + INTERVAL 6 MONTH
ExpiryDate DateTime DEFAULT now() + INTERVAL {{.TTLValue}} {{.TTLUnit}}
) ENGINE = MergeTree()
ORDER BY ExpiryDate
TTL ExpiryDate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS outdated_images (
LatestVersion String,
VersionsBehind Int64,
EventTime DateTime('UTC'),
ExpiryDate DateTime DEFAULT now() + INTERVAL 6 MONTH
ExpiryDate DateTime DEFAULT now() + INTERVAL {{.TTLValue}} {{.TTLUnit}}
) ENGINE = MergeTree()
ORDER BY ExpiryDate
TTL ExpiryDate;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CREATE TABLE IF NOT EXISTS kubescore (
cluster_name String,
recommendations String,
EventTime DateTime('UTC'),
ExpiryDate DateTime DEFAULT now() + INTERVAL 6 MONTH
ExpiryDate DateTime DEFAULT now() + INTERVAL {{.TTLValue}} {{.TTLUnit}}
) ENGINE = MergeTree()
ORDER BY ExpiryDate
TTL ExpiryDate;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ CREATE TABLE IF NOT EXISTS trivy_vul (
vul_severity String,
vul_published_date DateTime('UTC'),
vul_last_modified_date DateTime('UTC'),
ExpiryDate DateTime DEFAULT now() + INTERVAL 6 MONTH
ExpiryDate DateTime DEFAULT now() + INTERVAL {{.TTLValue}} {{.TTLUnit}}
) ENGINE = MergeTree()
ORDER BY ExpiryDate
TTL ExpiryDate;
Expand Down
Loading