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

adding scopes to auth metrics for detailed authStatus #736

Merged
merged 4 commits into from
May 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 48 additions & 1 deletion telemetry/definitions/commonDefinitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,26 @@
"type": "int",
"description": "Current number of authentication connections the user has"
},
{
"name": "authEnabledConnections",
"type": "string",
"description": "Comma-delimited list of enabled auths."
},
{
"name": "authScopes",
"type": "string",
"description": "Comma-delimited list of scopes that users has"
},
{
"name": "authStatus",
"type": "string",
"allowedValues": [
"connected",
"notConnected",
"expired"
],
"description": "Status of the an auth connection."
},
{
"name": "awsFiletype",
"type": "string",
Expand Down Expand Up @@ -1780,6 +1800,10 @@
"type": "attempts",
"required": false
},
{
"type": "authScopes",
"required": false
},
{
"type": "credentialSourceId"
},
Expand Down Expand Up @@ -1848,6 +1872,29 @@
}
]
},
{
"name": "auth_userState",
"description": "The state of the user's authentication upon startup.",
"metadata": [
{
"type": "authEnabledConnections",
"required": true
},
{
"type": "authScopes",
"required": false
},
{
"type": "authStatus",
"required": true
},
{
"type": "source",
"required": true
}
],
"passive": true
},
{
"name": "aws_copyArn",
"description": "Copy the ARN of an AWS resource",
Expand Down Expand Up @@ -5753,4 +5800,4 @@
]
}
]
}
}
Loading