class Kubescape::TestReportParser
- Kubescape::TestReportParser
- Reference
- Object
Defined in:
tasks/utils/kubescape.crConstructors
Instance Method Summary
- #get_alert_message(name : String, kind : String, namespace : Nil)
- #get_alert_message(name : String, kind : String, namespace : String)
- #parse
- #parse_k8s_object_name(name : Nil, metadata_name : JSON::Any) : String
- #parse_k8s_object_name(name : JSON::Any, metadata_name : Nil) : String
-
#parse_k8s_object_name(name, metadata_name) : String
Use empty string if name and metadata_name are not valid values
- #parse_k8s_object_namespace(namespace : JSON::Any)
- #parse_k8s_object_namespace(namespace : Nil)
- #parse_rule_response(rule_response : JSON::Any, rule_name : String)
- #parse_rule_response_k8s_object(k8s_obj : JSON::Any, rule_name : String, response_alert : JSON::Any | Nil) : TestResource
Constructor Detail
Instance Method Detail
def parse_k8s_object_name(name, metadata_name) : String
#
Use empty string if name and metadata_name are not valid values
def parse_rule_response_k8s_object(k8s_obj : JSON::Any, rule_name : String, response_alert : JSON::Any | Nil) : TestResource
#