DynamoDB utils
Project description
DynamoDB Package for detech.ai
This is detech.ai's package to access Dynamodb.
Imports
import detech_query_pkg
from detech_query_pkg import dynamodb
from detech_query_pkg.utils import dynamodb_utils
Functions
dynamodb
def insert_alert(alert_id, metric_id, org_id, app_id, team_id, assigned_to, start_time, end_time, alert_description, is_acknowledged, anomalies_dict, related_prev_anomalies, service_graph, significance_score, dynamodb)
def get_alert_item_by_key(anom_id, dynamodb)
def update_alert_with_related_anomalies(alert_id,start_time, corr_anoms_dict, related_prev_anomalies, dynamodb)
def terminate_alert(alert_id,start_time, end_timestamp, dynamodb)
def create_metric(metric_id, date_bucket, anom_alarm_id, metric_name, provider, namespace, agent, org_id, app_id, alignment, groupby, first, last, data_points_list, dynamodb)
def get_metric_item_by_key(metric_id, curr_date, dynamodb)
def scan_metrics_by_encrypted_id(anom_alarm_id, dynamodb)
def query_alerts_configs_by_key(metric_id, dynamodb)
def insert_alert_config(metric_id, alert_title, severity, alert_type, alert_direction, description, duration, duration_unit, rule_dict, recipients_list, owner_dict, dynamodb)
def query_most_recent_metric_fetching_log(component_id, dynamodb)
dynamodb_utils
def put_item(item_dict, table_name, dynamodb)
def get_item(key_dict, table_name, dynamodb)
def update_item(key_dict, update_expression, expression_attr_values, table_name, dynamodb)
def update_item_conditionally(key_dict, condition_expression, update_expression, expression_attr_values, table_name, dynamodb)
def delete_item_conditionally(key_dict, condition_expression, expression_attr_values, table_name, dynamodb)
def query_by_key(key_condition, table_name, dynamodb)
def query_and_project_by_key_condition(projection_expr, expr_attr_names, key_condition, table_name, dynamodb)
def scan_table(scan_kwargs, table_name, dynamodb)
def query_by_key_min_max(key_condition, table_name, is_min, dynamodb)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for dynamodb_detech_ai-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6872702ce6ffd909c80d2e4faa01b98ee892dd37f7b55961a07e1ddb4357766a |
|
MD5 | b932e65ded95946d429607ccb835d47e |
|
BLAKE2b-256 | ca3b997194425b0db50751e33744035513f6a62e50608f0ab013190db191c4ce |