All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ghtblue.migrator.lightblue-migrator.2.48.0.source-code.migrationJob.json Maven / Gradle / Ivy

There is a newer version: 2.56.1
Show newest version
{
    "entityInfo": {
        "datastore": {
            "backend": "mongo",
            "collection": "migrationJob",
            "datasource": "mongodata"
        },
        "defaultVersion" : "2.0.2",
        "enums": [],
        "indexes": [
            {
                "fields": [
                    {
                        "dir": "$asc",
                        "field": "_id"
                    }
                ],
                "unique": true
            },
            {
                "fields": [
                    {
                        "dir": "$asc",
                        "field": "configurationName"
                    },
                    {
                        "dir": "$asc",
                        "field": "status"
                    },
                    {
                        "dir": "$asc",
                        "field": "scheduledDate"
                    },
                    {
                        "dir": "$asc",
                        "field": "generated"
                    }
                ],
                "name": "MigrationJobsToExecute",
                "unique": false
            },
            {
                "fields": [
                    {
                        "dir": "$asc",
                        "field": "consistencyChecker.configurationName"
                    },
                    {
                        "dir": "$asc",
                        "field": "consistencyChecker.jobRangeBegin"
                    },
                    {
                        "dir": "$asc",
                        "field": "consistencyChecker.jobRangeEnd"
                    }
                ],
                "name": "JobRange",
                "unique": false
            }
        ],
        "name": "migrationJob"
    },
    "schema": {
        "access": {
            "delete": [
                "anyone"
            ],
            "find": [
                "anyone"
            ],
            "insert": [
                "anyone"
            ],
            "update": [
                "anyone"
            ]
        },
        "fields": {
            "_id": {
                "type": "uid",
                "constraints": {
                    "identity": true
                },
                "description": "The identifier of the migrationJob."
            },
            "objectType": {
                "access": {
                    "find": [
                        "anyone"
                    ],
                    "update": [
                        "noone"
                    ]
                },
                "constraints": {
                    "minLength": 1,
                    "required": true
                },
                "type": "string"
            },
            "configurationName": {
                "type": "string",
                "constraints": {
                    "required": true
                },
                "description": "Name of the configuration that corresponds to this job"
            },
            "query": {
                "type": "string",
                "description": "The query to retrieve documents for this job"
            },
            "scheduledDate": {
                "type": "date",
                "constraints": {
                    "required": true
                },
                "description": "First available time for execution of this job"
            },
            "status" : {
                "type" : "string",
                "constraints" : {
                    "required":true
                },
                "description":"Status of the job, available, active, completed, failed"
            },
            "consistencyChecker": {
                "type":"object",
                "fields": {
                    "jobRangeBegin" : {
                        "type":"string",
                        "description":"For generated jobs, the beginning of the job range. Declared as string to keep range generic, could be date, id, etc."
                    },
                    "jobRangeEnd" : {
                        "type":"string",
                        "description":"For generated jobs, the end of the job range. Declared as string to keep range generic, could be date, id, etc."
                    },
                    "configurationName": {
                        "type":"string",
                        "description":"Repeated here to make the index unique"
                    }
                }
            },
            "jobExecutions": {
                "items": {
                    "fields": {
                        "activeExecutionId" : {
                            "type" :"string",
                            "description":"ID of the active execution, if exists"
                        },
                        "ownerName": {
                            "type": "string",
                            "constraints": {
                                "required": true
                            },
                            "description": "Name of the consistency checker instance that owns this execution."
                        },
                        "hostName": {
                            "type": "string",
                            "constraints": {
                                "required": true
                            },
                            "description": "Host running this migration job"
                        },
                        "actualStartDate": {
                            "type": "date",
                            "constraints": {
                                "required": true
                            },
                            "description": "Actual start date for of this migration job"
                        },
                        "actualEndDate": {
                            "type": "date",
                            "constraints": {
                                "required": false
                            },
                            "description": "Actual end date for this migration job"
                        },
                        "status": {
                            "type": "string",
                            "constraints": {
                                "required": true
                            },
                            "description": "Indicates the status of the execution of this job"
                        },
                        "errorMsg" :{
                            "type":"string",
                            "description":"Processing error message"
                        },
                        "processedDocumentCount": {
                            "type": "integer",
                            "description": "Number of documents processed by this job"
                        },
                        "consistentDocumentCount": {
                            "type": "integer",
                            "description": "Number of documents that mathed for this job"
                        },
                        "inconsistentDocumentCount": {
                            "type": "integer",
                            "description": "Number of documents that did not match for this job"
                        },
                        "overwrittenDocumentCount": {
                            "type": "integer",
                            "description": "Number of documents that were overwritten in destination"
                        }
                    },
                    "type": "object"
                },
                "type": "array"
            },
            "creationDate": {
                "type": "date",
                "description": "Creation date of the configuration"
            },
            "createdBy": {
                "type": "string",
                "description": "User id of the configuration creator"
            },
            "lastUpdateDate": {
                "type": "date",
                "description": "Last updated date of the configuration"
            },
            "lastUpdatedBy": {
                "type": "string",
                "description": "User id of the configuration creator"
            },
            "generated": {
                "type": "boolean",
                "description":"If job is generated by consistency checker"
            }
               
        },
        "name": "migrationJob",
        "status": {
            "value": "active"
        },
        "version": {
            "changelog": "add consistency checker job range",
            "value": "2.0.2"
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy