DynamoDB utils
Project description
DynamoDB Package for detech.ai
This is a simple 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
Hashes for dynamodb_detech_ai-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ad23691de59561c8c285e623131987e65cab865c5bafafd1ecc560b869696de |
|
MD5 | 2d030070cc3e5cf64b77347bf70f85b9 |
|
BLAKE2b-256 | 7686bcf293f24ea35566f527b32b433e08188c43c198a033e1270eb2104d9f23 |