SIENTIAPDE-1478
Rename get_core_labels method to get_pi_web_api_core_labels in API class for clarity and consistency with PI Web API integration.
This commit is contained in:
@@ -71,7 +71,7 @@ class API(SientiaMonitoring):
|
||||
},
|
||||
)
|
||||
|
||||
def get_core_labels(
|
||||
def get_pi_web_api_core_labels(
|
||||
self,
|
||||
metadata: dict[str, Any],
|
||||
operation_type: str | None = None,
|
||||
@@ -234,7 +234,7 @@ class API(SientiaMonitoring):
|
||||
prediction_tags = list[str](raw_prediction_tags.values())
|
||||
confidence_tags = list(raw_confidence_tags.values())
|
||||
|
||||
core_labels = self.get_core_labels(metadata)
|
||||
core_labels = self.get_pi_web_api_core_labels(metadata)
|
||||
|
||||
prediction_value = data.head(1)['prediction'].values[0]
|
||||
confidence_value = data.head(1)['prediction_confidence'].values[0]
|
||||
|
||||
Reference in New Issue
Block a user