Skip to content

Commit 7b10365

Browse files
dhruvigajjarDhruvi Gajjar
andauthored
adding scopes to auth metrics for detailed authStatus (#736)
* 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]>
1 parent 3008f9c commit 7b10365

File tree

1 file changed

+48
-1
lines changed

1 file changed

+48
-1
lines changed

telemetry/definitions/commonDefinitions.json

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,26 @@
102102
"type": "int",
103103
"description": "Current number of authentication connections the user has"
104104
},
105+
{
106+
"name": "authEnabledConnections",
107+
"type": "string",
108+
"description": "Comma-delimited list of enabled auths."
109+
},
110+
{
111+
"name": "authScopes",
112+
"type": "string",
113+
"description": "Comma-delimited list of scopes that users has"
114+
},
115+
{
116+
"name": "authStatus",
117+
"type": "string",
118+
"allowedValues": [
119+
"connected",
120+
"notConnected",
121+
"expired"
122+
],
123+
"description": "Status of the an auth connection."
124+
},
105125
{
106126
"name": "awsFiletype",
107127
"type": "string",
@@ -1893,6 +1913,10 @@
18931913
"type": "attempts",
18941914
"required": false
18951915
},
1916+
{
1917+
"type": "authScopes",
1918+
"required": false
1919+
},
18961920
{
18971921
"type": "credentialSourceId"
18981922
},
@@ -1961,6 +1985,29 @@
19611985
}
19621986
]
19631987
},
1988+
{
1989+
"name": "auth_userState",
1990+
"description": "The state of the user's authentication upon startup.",
1991+
"metadata": [
1992+
{
1993+
"type": "authEnabledConnections",
1994+
"required": true
1995+
},
1996+
{
1997+
"type": "authScopes",
1998+
"required": false
1999+
},
2000+
{
2001+
"type": "authStatus",
2002+
"required": true
2003+
},
2004+
{
2005+
"type": "source",
2006+
"required": true
2007+
}
2008+
],
2009+
"passive": true
2010+
},
19642011
{
19652012
"name": "aws_copyArn",
19662013
"description": "Copy the ARN of an AWS resource",
@@ -5866,4 +5913,4 @@
58665913
]
58675914
}
58685915
]
5869-
}
5916+
}

0 commit comments

Comments
 (0)