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

Improve and fix enum declarations #1111

Merged
merged 1 commit into from
Jul 2, 2024

Commits on Jun 26, 2024

  1. Improve and fix enum declarations

    `classification_ids` now declared in dictionary with default "0" and "99" values and descriptions
    "0" and "99" already existed without description through override in its only use (objects/malware.json)
    
    `data_lifecycle_state_id` mistakenly had the "Other" description applied to "0"/"Unknown"
    A "99"/"Other" value was missing
    
    `flag_ids` now declared in dictionary with default "0" and "99" values and descriptions
     "0" and "99" already existed without description through override in its only use (objects/dns_answer.json)
    
    `integrity` mistakenly referenced the `direction_id` enum in its description
    
    `integrity_id` now declared in dictionary with default "0" and "99" values and descriptions
    "0" and "99" already existed without description through override in its only use (objects/process.json)
    
    `load_type_id` now declared in dictionary with default "0" and "99" values and decsriptions
    "0" and "99" already existed without description through override in its only use (objects/module.json)
    
    `opcode_id` now points to RFC5395 to explain why "0" does not correspond to "Unknown"
    A "99"/"Unmapped" value is added to match other RFC based enums
    
    `protocol_ver_id` now declared in dictionary with default "0" and "99" values and descriptions
    "0" and "99" already existed without description through override in its only use (objects/network_connection_info.json)
    
    `run_state_id` now declared in dictionary with default "0" and "99" values and descriptions
    "0" and "99" already existed without description through override in its only use (objects/job.json)
    
    `risk_level` description is fixed to reflect the absence of "99"/"Other" in `risk_level_id`.
    `risk_level_id` does not have a "99" in any of its usages and "0" does not correspond to "Unknown".
    Therefore the situation did not justify adding "99"/"Other"
    
    Analytic `type_id` mistakenly had "4"/"Learning (ML/DL)" removed in 1.2.0 with commit b44120e
    This was a breaking change as "4" is now absent.
    A description of this analytic type is added to match the other enum entries.
    
    Signed-off-by: Mitchell Wasson <[email protected]>
    mlmitch committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    6f91dea View commit details
    Browse the repository at this point in the history