Skip to content

Commit

Permalink
Type "backend.statistic.getActivitiesPerUser.return" (reference) ref …
Browse files Browse the repository at this point in the history
…has changed from "Backend_StatisticCount" to "Backend_StatisticChart"
  • Loading branch information
SDKgen-Bot committed Jul 28, 2024
1 parent 2b3a300 commit c68ea6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sdkgen.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/sdk/backend_statistic_tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ def get_count_requests(self, start_index: int, count: int, search: str, from_: s
except RequestException as e:
raise sdkgen.ClientException("An unknown error occurred: " + str(e))

def get_activities_per_user(self, start_index: int, count: int, search: str, from_: str, to: str, operation_id: int, app_id: int, user_id: int, ip: str, user_agent: str, method: str, path: str, header: str, body: str) -> BackendStatisticCount:
def get_activities_per_user(self, start_index: int, count: int, search: str, from_: str, to: str, operation_id: int, app_id: int, user_id: int, ip: str, user_agent: str, method: str, path: str, header: str, body: str) -> BackendStatisticChart:
try:
path_params = {}

Expand Down Expand Up @@ -552,7 +552,7 @@ def get_activities_per_user(self, start_index: int, count: int, search: str, fro
response = self.http_client.get(url, headers=headers, params=self.parser.query(query_params, query_struct_names))

if response.status_code >= 200 and response.status_code < 300:
return BackendStatisticCount.model_validate_json(json_data=response.content)
return BackendStatisticChart.model_validate_json(json_data=response.content)

if response.status_code == 401:
raise CommonMessageException(response.content)
Expand Down

0 comments on commit c68ea6d

Please sign in to comment.