Merge "Updating freezer-api elk mappings"

This commit is contained in:
Jenkins 2016-03-16 19:19:10 +00:00 committed by Gerrit Code Review
commit 6ba1df0e0a
1 changed files with 71 additions and 1 deletions

View File

@ -1,5 +1,6 @@
""" """
Copyright 2015 Hewlett-Packard Copyright 2015 Hewlett-Packard
(c) Copyright 2016 Hewlett Packard Enterprise Development Company LP
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -90,6 +91,30 @@ backups_mapping = {
"client_version": { "client_version": {
"type": "string", "type": "string",
}, },
"compression": {
"type": "string",
},
"log_file": {
"type": "string",
},
"proxy": {
"type": "string",
},
"ssh_key": {
"type": "string",
},
"ssh_username": {
"type": "string",
},
"ssh_host": {
"type": "string",
},
"ssh_port": {
"type": "long",
},
"storage": {
"type": "string",
},
"compression_alg": { "compression_alg": {
"type": "string", "type": "string",
}, },
@ -164,8 +189,14 @@ backups_mapping = {
"vol_snap_path": { "vol_snap_path": {
"type": "string", "type": "string",
}, },
"os_auth_version": {
"type": "string",
},
}, },
}, },
"backup_uuid": {
"type": "string",
},
"user_id": { "user_id": {
"index": "not_analyzed", "index": "not_analyzed",
"type": "string", "type": "string",
@ -173,6 +204,14 @@ backups_mapping = {
"user_name": { "user_name": {
"type": "string", "type": "string",
}, },
"client_id": {
"index": "not_analyzed",
"type": "string"
},
"job_id": {
"index": "not_analyzed",
"type": "string"
},
}, },
} }
@ -187,6 +226,9 @@ jobs_mapping = {
}, },
"job_actions": { "job_actions": {
"properties": { "properties": {
"action_id": {
"type": "string"
},
"freezer_action": { "freezer_action": {
"properties": { "properties": {
"action": { "action": {
@ -198,6 +240,15 @@ jobs_mapping = {
"container": { "container": {
"type": "string" "type": "string"
}, },
"hostname": {
"type": "string"
},
"snapshot": {
"type": "boolean"
},
"storage": {
"type": "string"
},
"dry_run": { "dry_run": {
"type": "boolean" "type": "boolean"
}, },
@ -245,7 +296,23 @@ jobs_mapping = {
}, },
"restore_from_host": { "restore_from_host": {
"type": "string" "type": "string"
} },
"ssh_host": {
"type": "string"
},
"ssh_port": {
"type": "long"
},
"ssh_key": {
"index": "not_analyzed",
"type": "string"
},
"ssh_username": {
"type": "string"
},
"proxy": {
"type": "string"
},
} }
}, },
"mandatory": { "mandatory": {
@ -256,6 +323,9 @@ jobs_mapping = {
}, },
"max_retries_interval": { "max_retries_interval": {
"type": "long" "type": "long"
},
"user_id": {
"type": "string"
} }
} }
}, },