Skip to content

Commit

Permalink
Modify tickets table
Browse files Browse the repository at this point in the history
  • Loading branch information
sidpan1 committed May 28, 2024
1 parent 101a677 commit b55a657
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 34 deletions.
15 changes: 0 additions & 15 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -619,19 +619,4 @@ setup.cfg
setup.py
test-requirements.txt
test/__init__.py
test/test_begin_range.py
test/test_current_cost.py
test/test_end_range.py
test/test_new_cost.py
test/test_potential_saving.py
test/test_price_per_unit.py
test/test_recommendation_api.py
test/test_recommendation_engine.py
test/test_recommendation_engine_api.py
test/test_recommendation_engine_api_request.py
test/test_recommendation_engine_request.py
test/test_recommendation_engine_response.py
test/test_recommendation_engine_service_api.py
test/test_recommendation_params.py
test/test_response_recommendation_engine_response.py
tox.ini
8 changes: 5 additions & 3 deletions docs/Details.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ 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** | **str** | The config of the policy being violated. |
**policy_config_version** | **str** | The config version of the policy being violated. |
**violation_attributes** | **str** | The attributes of the violation. |
**policy_config** | **object** | The config of the policy being violated. |
**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** | The id of the preferred recommendation for the violation. |
**anomalies** | **List[object]** | 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. |
Expand Down
8 changes: 5 additions & 3 deletions docs/Details1.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ 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** | **str** | The config of the policy being violated. |
**policy_config_version** | **str** | The config version of the policy being violated. |
**violation_attributes** | **str** | The attributes of the violation. |
**policy_config** | **object** | The config of the policy being violated. |
**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** | The id of the preferred recommendation for the violation. |
**anomalies** | **List[object]** | 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. |
Expand Down
8 changes: 5 additions & 3 deletions docs/Details2.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ 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** | **str** | The config of the policy being violated. |
**policy_config_version** | **str** | The config version of the policy being violated. |
**violation_attributes** | **str** | The attributes of the violation. |
**policy_config** | **object** | The config of the policy being violated. |
**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** | The id of the preferred recommendation for the violation. |
**anomalies** | **List[object]** | 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. |
Expand Down
8 changes: 5 additions & 3 deletions docs/TenantPolicyTicketDetailsMixin.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ 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** | **str** | The config of the policy being violated. |
**policy_config_version** | **str** | The config version of the policy being violated. |
**violation_attributes** | **str** | The attributes of the violation. |
**policy_config** | **object** | The config of the policy being violated. |
**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** | The id of the preferred recommendation for the violation. |

## Example

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
import re # noqa: F401
import json

from pydantic import BaseModel, ConfigDict, Field, StrictStr
from typing import Any, ClassVar, Dict, List
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Union
from typing import Optional, Set
from typing_extensions import Self

Expand All @@ -28,10 +28,12 @@ class TenantPolicyTicketDetailsMixin(BaseModel):
""" # noqa: E501
policy_id: StrictStr = Field(description="The id of the policy being violated.")
policy_template_id: StrictStr = Field(description="The id of the policy template being violated.")
policy_config: StrictStr = Field(description="The config of the policy being violated.")
policy_config_version: StrictStr = Field(description="The config version of the policy being violated.")
violation_attributes: StrictStr = Field(description="The attributes of the violation.")
__properties: ClassVar[List[str]] = ["policy_id", "policy_template_id", "policy_config", "policy_config_version", "violation_attributes"]
policy_config: Dict[str, Any] = Field(description="The config of the policy being violated.")
policy_config_version: StrictInt = Field(description="The config version of the policy being violated.")
violation_attributes: Dict[str, Any] = Field(description="The attributes of the violation.")
potential_cost_saving: Union[StrictFloat, StrictInt] = Field(description="The potential cost accrued because of the violation.")
preferred_recommendation_id: StrictStr = Field(description="The id of the preferred recommendation for the violation.")
__properties: ClassVar[List[str]] = ["policy_id", "policy_template_id", "policy_config", "policy_config_version", "violation_attributes", "potential_cost_saving", "preferred_recommendation_id"]

model_config = ConfigDict(
populate_by_name=True,
Expand Down Expand Up @@ -88,7 +90,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"policy_template_id": obj.get("policy_template_id"),
"policy_config": obj.get("policy_config"),
"policy_config_version": obj.get("policy_config_version"),
"violation_attributes": obj.get("violation_attributes")
"violation_attributes": obj.get("violation_attributes"),
"potential_cost_saving": obj.get("potential_cost_saving"),
"preferred_recommendation_id": obj.get("preferred_recommendation_id")
})
return _obj

Expand Down

0 comments on commit b55a657

Please sign in to comment.