Update mlg_lookup block and schemas
This commit is contained in:
parent
88b296a25a
commit
2e162d9813
7
block.py
7
block.py
@ -35,12 +35,15 @@ def __main__(
|
|||||||
deviceid: str,
|
deviceid: str,
|
||||||
fuzzydeviceid: str,
|
fuzzydeviceid: str,
|
||||||
application_email_address: str,
|
application_email_address: str,
|
||||||
hd_score_m1: float
|
hd_score_m1: float,
|
||||||
|
hd_score_iso_m2: float
|
||||||
) -> dict:
|
) -> dict:
|
||||||
|
|
||||||
namespace = os.getenv("NAMESPACE", "staging")
|
namespace = os.getenv("NAMESPACE", "staging")
|
||||||
base_url = "http://centurion-mlg.default.svc.cluster.local:8080/api/v1/clusters"
|
base_url = "http://centurion-mlg.default.svc.cluster.local:8080/api/v1/clusters"
|
||||||
|
# base_url = "http://localhost:8080//api/v1/clusters"
|
||||||
cluster_name = get_cluster_name(namespace)
|
cluster_name = get_cluster_name(namespace)
|
||||||
|
# cluster_name = "cluster_deviceid_email_fuzzydevice_direct_new"
|
||||||
url_post = f"{base_url}/{cluster_name}/records"
|
url_post = f"{base_url}/{cluster_name}/records"
|
||||||
url_get = f"{base_url}/{cluster_name}/record"
|
url_get = f"{base_url}/{cluster_name}/record"
|
||||||
url_get_for_graph = f"{base_url}/{cluster_name}/graph"
|
url_get_for_graph = f"{base_url}/{cluster_name}/graph"
|
||||||
@ -83,6 +86,8 @@ def __main__(
|
|||||||
if current_hd_score is None:
|
if current_hd_score is None:
|
||||||
post_process_output["hd_score_m1"] = hd_score_m1
|
post_process_output["hd_score_m1"] = hd_score_m1
|
||||||
|
|
||||||
|
post_process_output["hd_score_iso_m2"] = hd_score_iso_m2
|
||||||
|
|
||||||
logger.info("Post Processed Record")
|
logger.info("Post Processed Record")
|
||||||
logger.info(post_process_output)
|
logger.info(post_process_output)
|
||||||
|
|
||||||
|
|||||||
@ -25,6 +25,10 @@
|
|||||||
"hd_score_m1": {
|
"hd_score_m1": {
|
||||||
"type": ["number", "null"],
|
"type": ["number", "null"],
|
||||||
"description": "HD Score M1 value associated with the application."
|
"description": "HD Score M1 value associated with the application."
|
||||||
|
},
|
||||||
|
"hd_score_iso_m2": {
|
||||||
|
"type": ["number", "null"],
|
||||||
|
"description": "HD Score M2 Isotonic value associated with the application."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": []
|
"required": []
|
||||||
|
|||||||
@ -10,6 +10,10 @@
|
|||||||
"type": ["number", "null"],
|
"type": ["number", "null"],
|
||||||
"description": "HD fraud score M1."
|
"description": "HD fraud score M1."
|
||||||
},
|
},
|
||||||
|
"hd_score_iso_m2": {
|
||||||
|
"type": ["number", "null"],
|
||||||
|
"description": "HD fraud score M2."
|
||||||
|
},
|
||||||
"connected_application_keys": {
|
"connected_application_keys": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user