Request payload for ticket creation
Name | Type | Description | Notes |
---|---|---|---|
policy_id | str | The id of the policy being violated. | |
policy_template_id | str | The id of the policy template being violated. | |
policy_config | object | The config of the policy being violated. | |
policy_config_hash | str | [optional] | |
policy_config_version | int | The config version of the policy being violated. | |
violation_attributes | object | The attributes of the violation. | |
potential_cost_saving | float | The potential cost accrued because of the violation. | |
preferred_recommendation_id | str | [optional] | |
rule_definition_hash | str | [optional] | |
anomalies | List[AnomalyRcaIdsMixin] | List of anomaly ids and rca ids. | |
total_cost_impact | float | Total cost incurred due to the anomaly. | |
rca_hash | str | The hash of the RCA associated with the anomaly. | |
deviation | Deviation | ||
duration | float | The duration of the anomaly. | |
duration_unit | str | The duration unit of the anomaly. | |
source_type | AnomalySourceType | The source type of the anomaly. | |
usage_type | str | The usage type of the anomaly. | |
operation_type | str | The operation type of the anomaly. | |
is_continuous | bool | Is the anomaly continuous. |
from onelens_backend_client.models.details import Details
# TODO update the JSON string below
json = "{}"
# create an instance of Details from a JSON string
details_instance = Details.from_json(json)
# print the JSON string representation of the object
print(Details.to_json())
# convert the object into a dict
details_dict = details_instance.to_dict()
# create an instance of Details from a dict
details_form_dict = details.from_dict(details_dict)