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

Add youngerThan filter #33

Merged
merged 1 commit into from
Apr 13, 2022
Merged

Add youngerThan filter #33

merged 1 commit into from
Apr 13, 2022

Conversation

jgriff
Copy link
Owner

@jgriff jgriff commented Apr 13, 2022

Added support for filtering by creation timestamp that is youngerThan
a specified amount of time.

source:
  filter:
    youngerThan: 3600

This inversely complements the existing filter functionality for
olderThan, and can also be used together to define a time window.

For example, resources created between 1 and 2 hours ago:

source:
  filter:
    olderThan: 3600
    youngerThan: 7200

Added support for filtering by creation timestamp that is `youngerThan`
a specified amount of time.

```yaml
source:
  filter:
    youngerThan: 3600
```

This inversely complements the existing filter functionality for
`olderThan`, and can also be used together to define a time window.

For example, resources created between 1 and 2 hours ago:
```yaml
source:
  filter:
    olderThan: 3600
    youngerThan: 7200
```

Signed-off-by: Justin Griffin <[email protected]>
@jgriff jgriff merged commit ca2c610 into master Apr 13, 2022
@jgriff jgriff deleted the youngerThan branch April 13, 2022 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant