abacusai.hosted_database_finding

Classes

HostedDatabaseFinding

A database-health finding for a web app's database (_getHostedDatabaseHealth), as the hourly scan last recorded it.

Module Contents

class abacusai.hosted_database_finding.HostedDatabaseFinding(client, findingId=None, kind=None, severity=None, query=None, table=None, column=None, execSecondsPerHour=None, callsPerHour=None, rowsPerCall=None, blocksPerCall=None, meanMs=None, rows=None, firstSeen=None, lastSeen=None, fixPrompt=None)

Bases: abacusai.return_class.AbstractApiClass

A database-health finding for a web app’s database (_getHostedDatabaseHealth), as the hourly scan last recorded it.

Parameters:
  • client (ApiClient) – An authenticated API Client instance

  • findingId (str) – kind:table:column, stable while the finding stands

  • kind (str) – missing_index | repeated_query | substring_search

  • severity (str) – LOW | MEDIUM | HIGH | CRITICAL

  • query (str) – The statement, normalized, when the finding comes from statement statistics

  • table (str) – The table involved

  • column (str) – The column involved, when there is one

  • execSecondsPerHour (int) – Execution time this statement costs per hour

  • callsPerHour (int) – How often it runs

  • rowsPerCall (float) – Rows it returns per call

  • blocksPerCall (float) – Buffers it reads per call

  • meanMs (float) – Mean execution time per call

  • rows (int) – Rows in the table, for a missing index

  • firstSeen (str) – When the scan first recorded this finding

  • lastSeen (str) – When the scan last saw it

  • fixPrompt (str) – What the agent is asked to change when the finding is sent to it

finding_id = None
kind = None
severity = None
query = None
table = None
column = None
exec_seconds_per_hour = None
calls_per_hour = None
rows_per_call = None
blocks_per_call = None
mean_ms = None
rows = None
first_seen = None
last_seen = None
fix_prompt = None
deprecated_keys
__repr__()
to_dict()

Get a dict representation of the parameters in this class

Returns:

The dict value representation of the class parameters

Return type:

dict