Skip to content

Commit bc578ec

Browse files
added comments
1 parent f310dbb commit bc578ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ads/aqua/deployment.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ def create(
394394

395395
model_type = "custom" if is_fine_tuned_model else "service"
396396
deployment_id = deployment.dsc_model_deployment.id
397+
# we arbitrarily choose last 8 characters of OCID to identify MD in telemetry
397398
telemetry_kwargs = {"ocid": get_ocid_substring(deployment_id, key_len=8)}
398399

399400
# tracks unique deployments that were created in the user compartment
@@ -461,6 +462,7 @@ def list(self, **kwargs) -> List["AquaDeployment"]:
461462
state = model_deployment.lifecycle_state.upper()
462463
if state in ["ACTIVE", "FAILED"]:
463464
# tracks unique deployments that were listed in the user compartment
465+
# we arbitrarily choose last 8 characters of OCID to identify MD in telemetry
464466
self.telemetry.record_event_async(
465467
category=f"aqua/deployment",
466468
action="list",

0 commit comments

Comments
 (0)