Skip to content

CLOUDP-57850: List events, C/OM #82

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

Merged
merged 7 commits into from
Apr 2, 2020
Merged

CLOUDP-57850: List events, C/OM #82

merged 7 commits into from
Apr 2, 2020

Conversation

andreaangiolillo
Copy link
Collaborator

Proposed changes

Jira ticket: CLOUDP-57850

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

Further comments

./bin/mongocli om events list --source project --projectId 5e85a9e4fbe92e1f6543af81 -P OPS

{
	"links": [
		{
			"rel": "self",
			"href": "http://localhost:9080/api/public/v1.0/groups/5e85a9e4fbe92e1f6543af81/events?pageNum=1\u0026itemsPerPage=100"
		}
	],
	"results": [
		{
			"alertId": "",
			"alertConfigId": "",
			"created": "2020-04-02T09:01:24Z",
			"eventTypeName": "JOINED_GROUP",
			"groupId": "5e85a9e4fbe92e1f6543af81",
			"hostname": "",
			"id": "5e85a9e4fbe92e1f6543af86",
			"isGlobalAdmin": true,
			"links": [
				{
					"rel": "self",
					"href": "http://localhost:9080/api/public/v1.0/groups/5e85a9e4fbe92e1f6543af81/events/5e85a9e4fbe92e1f6543af86"
				}
			],
			"remoteAddress": "0:0:0:0:0:0:0:1",
			"targetUsername": "admin"
		},
		{
			"alertId": "",
			"alertConfigId": "",
			"created": "2020-04-02T09:01:24Z",
			"eventTypeName": "GROUP_CREATED",
			"groupId": "5e85a9e4fbe92e1f6543af81",
			"hostname": "",
			"id": "5e85a9e4fbe92e1f6543af85",
			"isGlobalAdmin": true,
			"links": [
				{
					"rel": "self",
					"href": "http://localhost:9080/api/public/v1.0/groups/5e85a9e4fbe92e1f6543af81/events/5e85a9e4fbe92e1f6543af85"
				}
			],
			"orgId": "5e85a9e4fbe92e1f6543af7d",
			"remoteAddress": "0:0:0:0:0:0:0:1"
		}
	],
	"totalCount": 2
}

./bin/mongocli om events list --source organization --projectId 5e85a9e4fbe92e1f6543af7d -P OPS

{
	"links": [
		{
			"rel": "self",
			"href": "http://localhost:9080/api/public/v1.0/orgs/5e85a9e4fbe92e1f6543af7d/events?pageNum=1\u0026itemsPerPage=100"
		}
	],
	"results": [
		{
			"alertId": "",
			"alertConfigId": "",
			"created": "2020-04-02T09:02:15Z",
			"eventTypeName": "API_KEY_CREATED",
			"hostname": "",
			"id": "5e85aa17fbe92e1f6543afb0",
			"isGlobalAdmin": true,
			"links": [
				{
					"rel": "self",
					"href": "http://localhost:9080/api/public/v1.0/orgs/5e85a9e4fbe92e1f6543af7d/events/5e85aa17fbe92e1f6543afb0"
				}
			],
			"orgId": "5e85a9e4fbe92e1f6543af7d",
			"remoteAddress": "0:0:0:0:0:0:0:1",
			"targetPublicKey": "zjbxxcfj"
		},
		{
			"alertId": "",
			"alertConfigId": "",
			"created": "2020-04-02T09:01:24Z",
			"eventTypeName": "GROUP_CREATED",
			"groupId": "5e85a9e4fbe92e1f6543af81",
			"hostname": "",
			"id": "5e85a9e4fbe92e1f6543af85",
			"isGlobalAdmin": true,
			"links": [
				{
					"rel": "self",
					"href": "http://localhost:9080/api/public/v1.0/orgs/5e85a9e4fbe92e1f6543af7d/events/5e85a9e4fbe92e1f6543af85"
				}
			],
			"orgId": "5e85a9e4fbe92e1f6543af7d",
			"remoteAddress": "0:0:0:0:0:0:0:1"
		},
		{
			"alertId": "",
			"alertConfigId": "",
			"created": "2020-04-02T09:01:24Z",
			"eventTypeName": "ORG_CREATED",
			"hostname": "",
			"id": "5e85a9e4fbe92e1f6543af80",
			"isGlobalAdmin": true,
			"links": [
				{
					"rel": "self",
					"href": "http://localhost:9080/api/public/v1.0/orgs/5e85a9e4fbe92e1f6543af7d/events/5e85a9e4fbe92e1f6543af80"
				}
			],
			"orgId": "5e85a9e4fbe92e1f6543af7d",
			"remoteAddress": "0:0:0:0:0:0:0:1"
		}
	],
	"totalCount": 3
}

@andreaangiolillo andreaangiolillo added the waiting_ops_manager Waiting ops manager go client release label Apr 2, 2020
@andreaangiolillo
Copy link
Collaborator Author

@andreaangiolillo
Copy link
Collaborator Author

Waiting #81

@andreaangiolillo andreaangiolillo removed the waiting_ops_manager Waiting ops manager go client release label Apr 2, 2020
@andreaangiolillo andreaangiolillo requested a review from gssbzn April 2, 2020 16:01
Copy link
Collaborator

@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.

LGTM

@gssbzn gssbzn merged commit 6db5fcd into master Apr 2, 2020
@gssbzn gssbzn deleted the CLOUDP-57850 branch April 2, 2020 16:55
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.

2 participants