Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

METRON-420 Add Expiration to Profile Definition #254

Closed
wants to merge 8 commits into from

Conversation

nickwallen
Copy link
Contributor

@nickwallen nickwallen commented Sep 15, 2016

The user can specify an expiration for each profile definition. This field is optional. All documentation and tests have been updated.

Added the expires field to README example 1.

{
  "inputTopic": "indexing",
  "profiles": [
    {
      "profile": "example1",
      "foreach": "ip_src_addr",
      "onlyif": "protocol == 'HTTP'",
      "init": {
        "total_bytes": 0.0
      },
      "update": {
        "total_bytes": "total_bytes + bytes_in"
      },
      "result": "total_bytes",
      "expires": 30
    }
  ]
}

The expires field is currently defined as the number of days. It would be nice to specify '30 days', '6 months', or '2 years', but I will leave that work for another day.

Depends on the following PRs.

@nickwallen
Copy link
Contributor Author

Merged with master

@cestella
Copy link
Member

+1

@asfgit asfgit closed this in 0953132 Sep 16, 2016
@nickwallen nickwallen deleted the METRON-420 branch November 30, 2016 19:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants