Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move "Multiple DB requests" to /experimental #124

Merged
merged 3 commits into from
Jul 3, 2018

Conversation

Lifka
Copy link
Contributor

@Lifka Lifka commented Jun 29, 2018

Hi team,

this PR solves the issue: #123.

Change

GET/syscollector/os -> GET/experimental/syscollector/hardware
GET/syscollector/hardware -> GET/experimental/syscollector/os
GET/syscollector/packages -> GET/experimental/syscollector/packages

Add

Opcion experimental_feature in config.js. Value by default: false.

Sample

experimental_features = false

$ curl -u foo:bar -k -X GET "http://127.0.0.1:55000/experimental/syscollector/packages?pretty&limit=1"
{
   "error": 603,
   "message": "The requested URL was not found on this server"
}

experimental_features = true

$ curl -u foo:bar -k -X GET "http://127.0.0.1:55000/experimental/syscollector/os?pretty"
{
   "error": 0,
   "data": {
      "totalItems": 1,
      "items": [
         {
            "sysname": "Linux",
            "scan_id": 1304709233,
            "os_name": "CentOS Linux",
            "scan_time": "2018/06/29 16:28:25",
            "hostname": "manager",
            "os_version": "7 (Core)",
            "version": "#1 SMP Wed Mar 7 19:03:37 UTC 2018",
            "architecture": "x86_64",
            "release": "3.10.0-693.21.1.el7.x86_64",
            "agent_id": "000"
         }
      ]
   }
}

Regards,
Javi.

@jesuslinares jesuslinares changed the base branch from 3.3 to 3.4 July 3, 2018 13:57
@jesuslinares jesuslinares merged commit 7074f16 into 3.4 Jul 3, 2018
@jesuslinares jesuslinares deleted the experimental-features branch July 3, 2018 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants