Skip to content

Commit

Permalink
Slow query filter logic added (#1146)
Browse files Browse the repository at this point in the history
  • Loading branch information
MishukAdhikari authored Nov 15, 2021
1 parent 8607c0f commit ce9e6b5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/IncomingEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,16 @@ public function isQuery()
return $this->type === EntryType::QUERY;
}

/**
* Determine if the incoming entry is a slow query.
*
* @return bool
*/
public function isSlowQuery()
{
return $this->type === EntryType::QUERY && ($this->content['slow'] ?? false);
}

/**
* Determine if the incoming entry is an authorization gate check.
*
Expand Down

0 comments on commit ce9e6b5

Please sign in to comment.