From 487e52db0597f8cba720d7f6401a7d2e4dc9b1c8 Mon Sep 17 00:00:00 2001 From: MinJae Kwon Date: Sun, 8 Jan 2023 17:37:46 +0900 Subject: [PATCH] refactor(pvd/elastic): add an upper word and some aliases --- config.py | 4 +++- diagrams/elastic/elasticsearch.py | 4 +++- diagrams/onprem/registry.py | 2 +- docs/nodes/elastic.md | 8 ++++---- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/config.py b/config.py index 4604202..dc0590b 100644 --- a/config.py +++ b/config.py @@ -83,7 +83,7 @@ UPPER_WORDS = { "sa", "sc", "sts", "svc", ), "oci": ("oci", "ocid", "oke", "ocir", "ddos", "waf", "bm", "vm", "cdn", "vpn", "dns", "nat", "dms", "api", "id"), - "elastic": ("apm", "siem", "ece", "eck"), + "elastic": ("apm", "siem", "ece", "eck", "sql"), "generic": ("vpn", "ios", "xen", "sql", "lxc"), "outscale": ("osc",), "openstack": ("rpm", "loci", "nfv", "ec2api"), @@ -446,7 +446,9 @@ ALIASES = { }, "elastic": { "elasticsearch": { + "Elasticsearch": "ElasticSearch", "Logstash": "LogStash", + "MachineLearning": "ML", } }, "outscale": { diff --git a/diagrams/elastic/elasticsearch.py b/diagrams/elastic/elasticsearch.py index eec16b7..6234eb9 100644 --- a/diagrams/elastic/elasticsearch.py +++ b/diagrams/elastic/elasticsearch.py @@ -56,7 +56,7 @@ class SecuritySettings(_Elasticsearch): _icon = "security-settings.png" -class Sql(_Elasticsearch): +class SQL(_Elasticsearch): _icon = "sql.png" @@ -66,4 +66,6 @@ class Stack(_Elasticsearch): # Aliases +ElasticSearch = Elasticsearch LogStash = Logstash +ML = MachineLearning diff --git a/diagrams/onprem/registry.py b/diagrams/onprem/registry.py index 5833e2b..259df50 100644 --- a/diagrams/onprem/registry.py +++ b/diagrams/onprem/registry.py @@ -12,7 +12,7 @@ class Harbor(_Registry): _icon = "harbor.png" -class JFrog(_Registry): +class Jfrog(_Registry): _icon = "jfrog.png" diff --git a/docs/nodes/elastic.md b/docs/nodes/elastic.md index a24d046..bc1c964 100644 --- a/docs/nodes/elastic.md +++ b/docs/nodes/elastic.md @@ -57,7 +57,7 @@ Node classes list of elastic provider. **diagrams.elastic.elasticsearch.Beats** Elasticsearch -**diagrams.elastic.elasticsearch.Elasticsearch** +**diagrams.elastic.elasticsearch.Elasticsearch**, **ElasticSearch** (alias) Kibana **diagrams.elastic.elasticsearch.Kibana** @@ -69,7 +69,7 @@ Node classes list of elastic provider. **diagrams.elastic.elasticsearch.Logstash**, **LogStash** (alias) MachineLearning -**diagrams.elastic.elasticsearch.MachineLearning** +**diagrams.elastic.elasticsearch.MachineLearning**, **ML** (alias) MapServices **diagrams.elastic.elasticsearch.MapServices** @@ -86,8 +86,8 @@ Node classes list of elastic provider. SecuritySettings **diagrams.elastic.elasticsearch.SecuritySettings** -Sql -**diagrams.elastic.elasticsearch.Sql** +SQL +**diagrams.elastic.elasticsearch.SQL** Stack **diagrams.elastic.elasticsearch.Stack**