Skip to content

Conversation

@andreaangiolillo
Copy link
Collaborator

Proposed changes

Jira ticket: CLOUDP-61392

Checklist

  • I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works
  • I have added any necessary documentation (if appropriate)
  • I have run make fmt and formatted my code
  • I have tested it using my local ops manager

Further comments

./bin/mongocli om logs jobs collect replicaset myReplicaSet --sizeRequestedPerFileBytes 64 --type MONGODB -P ops
{
	"id": "5ea9880868954c612b1e5064"
}
 ~/workspace/mongoCLI git:(CLOUDP-61392) ✗ ./bin/mongocli om logs jobs list -P ops
{
	"links": [
		{
			"rel": "self",
			"href": "http://localhost:8080/api/public/v1.0/groups/5ea6a50fec050149b3105d1e/logCollectionJobs?pageNum=1\u0026itemsPerPage=100"
		}
	],
	"results": [
		{
			"id": "5ea9880868954c612b1e5064",
			"groupId": "5ea6a50fec050149b3105d1e",
			"userId": "5ea6a61cec050149b3105f24",
			"creationDate": "2020-04-29T13:58:32Z",
			"expirationDate": "2020-05-29T13:58:32Z",
			"status": "SUCCESS",
			"resourceType": "replicaset",
			"resourceName": "myReplicaSet",
			"rootResourceName": "myReplicaSet",
			"rootResourceType": "replicaset",
			"downloadUrl": "http://localhost:8080/api/public/v1.0/groups/5ea6a50fec050149b3105d1e/logCollectionJobs/5ea9880868954c612b1e5064/download",
			"redacted": false,
			"logTypes": [
				"MONGODB"
			],
			"sizeRequestedPerFileBytes": 64,
			"uncompressedSizeTotalBytes": 52365
		},
		{
			"id": "5ea81390ec050149b311f701",
			"groupId": "5ea6a50fec050149b3105d1e",
			"userId": "5ea6a61cec050149b3105f24",
			"creationDate": "2020-04-28T11:29:20Z",
			"expirationDate": "2020-05-28T11:29:20Z",
			"status": "SUCCESS",
			"resourceType": "replicaset",
			"resourceName": "myReplicaSet",
			"rootResourceName": "myReplicaSet",
			"rootResourceType": "replicaset",
			"downloadUrl": "http://localhost:8080/api/public/v1.0/groups/5ea6a50fec050149b3105d1e/logCollectionJobs/5ea81390ec050149b311f701/download",
			"redacted": false,
			"logTypes": [
				"MONGODB"
			],
			"sizeRequestedPerFileBytes": 64,
			"uncompressedSizeTotalBytes": 52438
		},
		{
			"id": "5ea8137cec050149b311f6af",
			"groupId": "5ea6a50fec050149b3105d1e",
			"userId": "5ea6a61cec050149b3105f24",
			"creationDate": "2020-04-28T11:29:00Z",
			"expirationDate": "2020-05-28T11:29:00Z",
			"status": "SUCCESS",
			"resourceType": "replicaset",
			"resourceName": "myReplicaSet",
			"rootResourceName": "myReplicaSet",
			"rootResourceType": "replicaset",
			"downloadUrl": "http://localhost:8080/api/public/v1.0/groups/5ea6a50fec050149b3105d1e/logCollectionJobs/5ea8137cec050149b311f6af/download",
			"redacted": false,
			"logTypes": [
				"MONGODB"
			],
			"sizeRequestedPerFileBytes": 64,
			"uncompressedSizeTotalBytes": 52438
		},
		{
			"id": "5ea81367ec050149b311f66f",
			"groupId": "5ea6a50fec050149b3105d1e",
			"userId": "5ea6a61cec050149b3105f24",
			"creationDate": "2020-04-28T11:28:39Z",
			"expirationDate": "2020-05-28T11:28:39Z",
			"status": "SUCCESS",
			"resourceType": "replicaset",
			"resourceName": "myReplicaSet",
			"rootResourceName": "myReplicaSet",
			"rootResourceType": "replicaset",
			"downloadUrl": "http://localhost:8080/api/public/v1.0/groups/5ea6a50fec050149b3105d1e/logCollectionJobs/5ea81367ec050149b311f66f/download",
			"redacted": false,
			"logTypes": [
				"MONGODB"
			],
			"sizeRequestedPerFileBytes": 64,
			"uncompressedSizeTotalBytes": 52438
		},
		{
			"id": "5ea81312ec050149b311f5a9",
			"groupId": "5ea6a50fec050149b3105d1e",
			"userId": "5ea6a61cec050149b3105f24",
			"creationDate": "2020-04-28T11:27:14Z",
			"expirationDate": "2020-05-28T11:27:14Z",
			"status": "SUCCESS",
			"resourceType": "replicaset",
			"resourceName": "myReplicaSet",
			"rootResourceName": "myReplicaSet",
			"rootResourceType": "replicaset",
			"downloadUrl": "http://localhost:8080/api/public/v1.0/groups/5ea6a50fec050149b3105d1e/logCollectionJobs/5ea81312ec050149b311f5a9/download",
			"redacted": false,
			"logTypes": [
				"MONGODB"
			],
			"sizeRequestedPerFileBytes": 64,
			"uncompressedSizeTotalBytes": 52438
		},
		{
			"id": "5ea812b7ec050149b311f4ca",
			"groupId": "5ea6a50fec050149b3105d1e",
			"userId": "5ea6a61cec050149b3105f24",
			"creationDate": "2020-04-28T11:25:43Z",
			"expirationDate": "2020-05-28T11:25:43Z",
			"status": "SUCCESS",
			"resourceType": "replicaset",
			"resourceName": "myReplicaSet",
			"rootResourceName": "myReplicaSet",
			"rootResourceType": "replicaset",
			"downloadUrl": "http://localhost:8080/api/public/v1.0/groups/5ea6a50fec050149b3105d1e/logCollectionJobs/5ea812b7ec050149b311f4ca/download",
			"redacted": false,
			"logTypes": [
				"MONGODB"
			],
			"sizeRequestedPerFileBytes": 64,
			"uncompressedSizeTotalBytes": 52438
		},
		{
			"id": "5ea81207ec050149b311f362",
			"groupId": "5ea6a50fec050149b3105d1e",
			"userId": "5ea6a61cec050149b3105f24",
			"creationDate": "2020-04-28T11:22:47Z",
			"expirationDate": "2020-05-28T11:22:47Z",
			"status": "SUCCESS",
			"resourceType": "replicaset",
			"resourceName": "myReplicaSet",
			"rootResourceName": "myReplicaSet",
			"rootResourceType": "replicaset",
			"downloadUrl": "http://localhost:8080/api/public/v1.0/groups/5ea6a50fec050149b3105d1e/logCollectionJobs/5ea81207ec050149b311f362/download",
			"redacted": false,
			"logTypes": [
				"MONGODB"
			],
			"sizeRequestedPerFileBytes": 64,
			"uncompressedSizeTotalBytes": 52438
		},
		{
			"id": "5ea81191ec050149b311f24d",
			"groupId": "5ea6a50fec050149b3105d1e",
			"userId": "5ea6a61cec050149b3105f24",
			"creationDate": "2020-04-28T11:20:49Z",
			"expirationDate": "2020-05-28T11:20:49Z",
			"status": "SUCCESS",
			"resourceType": "replicaset",
			"resourceName": "myReplicaSet",
			"rootResourceName": "myReplicaSet",
			"rootResourceType": "replicaset",
			"downloadUrl": "http://localhost:8080/api/public/v1.0/groups/5ea6a50fec050149b3105d1e/logCollectionJobs/5ea81191ec050149b311f24d/download",
			"redacted": false,
			"logTypes": [
				"MONGODB"
			],
			"sizeRequestedPerFileBytes": 64,
			"uncompressedSizeTotalBytes": 52438
		}
	],
	"totalCount": 8
}




@andreaangiolillo andreaangiolillo assigned gssbzn and unassigned gssbzn Apr 29, 2020
@andreaangiolillo andreaangiolillo requested a review from gssbzn April 29, 2020 14:37
Copy link
Contributor

@gssbzn gssbzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@andreaangiolillo andreaangiolillo merged commit 342a59b into master Apr 29, 2020
@andreaangiolillo andreaangiolillo deleted the CLOUDP-61392 branch April 29, 2020 16:21
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