Skip to content

Commit 9b20d74

Browse files
committed
resolving comments
1 parent fdc2937 commit 9b20d74

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/containerapp/azext_containerapp/containerapp_functions_decorator.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ def get_summary(self):
258258
self.validate_arguments()
259259

260260
# Get arguments
261+
cmd = self.cmd
261262
resource_group_name = self.get_argument_resource_group_name()
262263
container_app_name = self.get_argument_container_app_name()
263264
revision_name = self.get_argument_revision_name()
@@ -277,7 +278,7 @@ def get_summary(self):
277278
f"| summarize SuccessCount = coalesce(countif(success == true), 0), ErrorCount = coalesce(countif(success == false), 0)"
278279
)
279280

280-
result = self._execute_app_insights_query(app_id, invocation_summary_query, "getLast30DaySummary", timespan)
281+
result = self._execute_app_insights_query(app_id, invocation_summary_query, "getLast30DaySummary")
281282

282283
return process_app_insights_response(result)
283284
except Exception as e:
@@ -289,6 +290,7 @@ def get_traces(self):
289290
self.validate_arguments()
290291

291292
# Get all arguments
293+
cmd = self.cmd
292294
resource_group_name = self.get_argument_resource_group_name()
293295
container_app_name = self.get_argument_container_app_name()
294296
revision_name = self.get_argument_revision_name()
@@ -312,7 +314,7 @@ def get_traces(self):
312314
f"| project timestamp, success, resultCode, durationInMilliSeconds=duration, invocationId, operationId=operation_Id, operationName=operation_Name, functionNameFromCustomDimension "
313315
)
314316

315-
result = self._execute_app_insights_query(app_id, invocation_traces_query, "getInvocationTraces", timespan)
317+
result = self._execute_app_insights_query(app_id, invocation_traces_query, "getInvocationTraces")
316318

317319
return process_app_insights_response(result)
318320
except Exception as e:

0 commit comments

Comments
 (0)