- Notifications
You must be signed in to change notification settings - Fork 60
[ODSC_52446_52447] Get loggroups logids and compartment list #561
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
[ODSC_52446_52447] Get loggroups logids and compartment list #561
Conversation
ads/aqua/deployment.py Outdated
| id=oci_model_deployment.id, | ||
| display_name=oci_model_deployment.display_name, | ||
| aqua_service_model=oci_model_deployment.freeform_tags.get(AQUA_SERVICE_MODEL), | ||
| aqua_service_model=oci_model_deployment.freeform_tags.get( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be boolean? aqua_service_model=oci_model_deployment.freeform_tags.get(AQUA_SERVICE_MODEL) is not None
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we're currently treating aqua_service_model as a string field (something like key=aqua_service_model val=llama2), which is also passed along when deployment is created. This is due to an absence of a tag field in AquaModelSummary. Would it be better to treat this as boolean and have something like tags: Dict[str, str] in the dataclass?
| AquaDeployment: | ||
| The instance of the Aqua model deployment. | ||
| """ | ||
| # add error handler |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs to be cleaned up?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keeping for now, we have an action item to clean all this up once exception handler PR is finalized.
| # if not self._if_show(oci_model): | ||
| # raise AquaClientError(f"Target model {oci_model.id} is not Aqua model.") | ||
| if not self._if_show(oci_model): | ||
| raise AquaClientError(f"Target model {oci_model.id} is not Aqua model.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably will not be able to use the AQUA name. I would suggest to have a custom error, something like NotAquaCompatibleError.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, we'll update this once exception handler PR is finalized.
Description
This PR covers the following:
Local Usage
These APIs can be tested from a local jupyter lab instance:
Get Log Groups
Get Log ids
Get compartments
To Do
Unit Tests