openBackhaul / AirInterfacePowerSaver

Pranay's first Application on the MW SDN Controller
Apache License 2.0
1 stars 1 forks source link

Integrate ElasticSearch and include component template for the “power saving status table” #83

Closed PrathibaJee closed 7 months ago

PrathibaJee commented 7 months ago

ElasticSearch preparation shall include the following functionality ,

As per the expectation , 'deviation-from-original-state-list’ and ‘modules-to-restore-original-state-list’ shall be a list. In Elasticsearch, there is no dedicated array data type. Any field can contain zero or more values by default, however, all values in the array must be of the same data type. Reference : https://www.elastic.co/guide/en/elasticsearch/reference/current/array.html So , defining the datatype of deviation-from-original-state and modules-to-restore-original-state of type text shall be fine.

A final entry shall be like this ,

"_source" : {
          "link-id" : "305551239",
          "deviation-from-original-state-list" : [ ],
          "module-to-restore-original-state-list" : [
            "AllTransmittersOn"
          ]
        }
IswaryaaS commented 7 months ago

Included changes as part of https://github.com/openBackhaul/AirInterfacePowerSaver/pull/94.

Would test once and close the issue

vanithavalluripalli9 commented 7 months ago

Fixed as part of PR https://github.com/openBackhaul/AirInterfacePowerSaver/pull/94. Tested and verified