Skip to content

Commit

Permalink
adding scopes to auth metrics for detailed authStatus (#736)
Browse files Browse the repository at this point in the history
* adding scopes to auth metrics for detailed authStatus

* npm run fix

* added authScopes to addConnection metric

* reworded auth_userState

---------

Co-authored-by: Dhruvi Gajjar <[email protected]>
  • Loading branch information
dhruvigajjar and Dhruvi Gajjar authored May 17, 2024
1 parent 3008f9c commit 7b10365
Showing 1 changed file with 48 additions and 1 deletion.
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 @@ -1893,6 +1913,10 @@
"type": "attempts",
"required": false
},
{
"type": "authScopes",
"required": false
},
{
"type": "credentialSourceId"
},
Expand Down Expand Up @@ -1961,6 +1985,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 @@ -5866,4 +5913,4 @@
]
}
]
}
}

0 comments on commit 7b10365

Please sign in to comment.