From c636fb4bb828b21a4f6eb32d0fbfe2af59151458 Mon Sep 17 00:00:00 2001 From: SeaBlooms Date: Wed, 28 Aug 2024 19:51:57 -0600 Subject: [PATCH] rename EVALUATE_SMARTCLASS --- jupiterone/client.py | 6 +++--- jupiterone/constants.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/jupiterone/client.py b/jupiterone/client.py index 3b87243..0210445 100644 --- a/jupiterone/client.py +++ b/jupiterone/client.py @@ -31,7 +31,7 @@ ALL_PROPERTIES, CREATE_SMARTCLASS, CREATE_SMARTCLASS_QUERY, - RUN_SMARTCLASS_EVALUATION + EVALUATE_SMARTCLASS ) @@ -554,7 +554,7 @@ def create_smartclass_query(self, smartclass_id: str = None, query: str = None, response = self._execute_query(CREATE_SMARTCLASS_QUERY, variables=variables) return response['data']['createSmartClassQuery'] - def trigger_smartclass_evaluation(self, smartclass_id: str = None): + def evaluate_smartclass(self, smartclass_id: str = None): """Execute an on-demand Evaluation of a defined Smartclass. args: @@ -565,5 +565,5 @@ def trigger_smartclass_evaluation(self, smartclass_id: str = None): "smartClassId": smartclass_id } - response = self._execute_query(RUN_SMARTCLASS_EVALUATION, variables=variables) + response = self._execute_query(EVALUATE_SMARTCLASS, variables=variables) return response['data']['evaluateSmartClassRule'] diff --git a/jupiterone/constants.py b/jupiterone/constants.py index 348c0e7..e11536b 100644 --- a/jupiterone/constants.py +++ b/jupiterone/constants.py @@ -181,7 +181,7 @@ } """ -RUN_SMARTCLASS_EVALUATION = """ +EVALUATE_SMARTCLASS = """ mutation EvaluateSmartClassRule($smartClassId: ID!) { evaluateSmartClassRule(smartClassId: $smartClassId) { ruleId