Skip to content

Commit

Permalink
rename EVALUATE_SMARTCLASS
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaBlooms committed Aug 29, 2024
1 parent b8b4f8b commit c636fb4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions jupiterone/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
ALL_PROPERTIES,
CREATE_SMARTCLASS,
CREATE_SMARTCLASS_QUERY,
RUN_SMARTCLASS_EVALUATION
EVALUATE_SMARTCLASS
)


Expand Down Expand Up @@ -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:
Expand All @@ -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']
2 changes: 1 addition & 1 deletion jupiterone/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
}
"""

RUN_SMARTCLASS_EVALUATION = """
EVALUATE_SMARTCLASS = """
mutation EvaluateSmartClassRule($smartClassId: ID!) {
evaluateSmartClassRule(smartClassId: $smartClassId) {
ruleId
Expand Down

0 comments on commit c636fb4

Please sign in to comment.