Skip to content

Commit

Permalink
address pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
iamrajjoshi committed May 13, 2024
1 parent 9202a79 commit 243959d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,14 @@ def _build_function_regression_image_block(self) -> SlackBlock | None:
"dataset": "profileFunctions",
"referrer": Referrer.API_ALERTS_CHARTCUTERIE,
"project": self.group.project.id,
"environment": event.get_environment().name,
"start": period["start"].strftime("%Y-%m-%d %H:%M:%S"),
"end": period["end"].strftime("%Y-%m-%d %H:%M:%S"),
"yAxis": ["p95()"],
"query": f"fingerprint:{event.occurrence.evidence_data['fingerprint']}",
},
)

# Convert the aggregate range from nanoseconds to milliseconds
evidence_data = {
"aggregate_range_1": event.occurrence.evidence_data["aggregate_range_1"] / 1e6,
"aggregate_range_2": event.occurrence.evidence_data["aggregate_range_2"] / 1e6,
Expand Down

0 comments on commit 243959d

Please sign in to comment.