Skip to content

Error deserializing Container Model due to type mismatch on rule_instance_version #537

@dennismouwen-eye

Description

@dennismouwen-eye

I have a .json with an alert retrieved using the /get_alerts_v2 endpoint. If I try to unmarshal this json into a DetectsBehavior, I get the following error:

json: cannot unmarshal string into Go struct field DetectsBehavior.rule_instance_version of type int32

This is happening because the rule_instance_version returned by the API is a string, while GoFalcon expects an int32

Can you please update the types or the deserialization?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions