Skip to content

Commit 357aba1

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add last_login_time to Users v2 API (#2881)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 87d0149 commit 357aba1

File tree

13 files changed

+114
-0
lines changed

13 files changed

+114
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54006,6 +54006,12 @@ components:
5400654006
icon:
5400754007
description: URL of the user's icon.
5400854008
type: string
54009+
last_login_time:
54010+
description: The last time the user logged in.
54011+
format: date-time
54012+
nullable: true
54013+
readOnly: true
54014+
type: string
5400954015
mfa_enabled:
5401054016
description: If user has MFA enabled.
5401154017
readOnly: true

services/downtimes/src/v2/models/UserAttributes.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ export class UserAttributes {
2424
* URL of the user's icon.
2525
*/
2626
"icon"?: string;
27+
/**
28+
* The last time the user logged in.
29+
*/
30+
"lastLoginTime"?: Date;
2731
/**
2832
* If user has MFA enabled.
2933
*/
@@ -88,6 +92,11 @@ export class UserAttributes {
8892
baseName: "icon",
8993
type: "string",
9094
},
95+
lastLoginTime: {
96+
baseName: "last_login_time",
97+
type: "Date",
98+
format: "date-time",
99+
},
91100
mfaEnabled: {
92101
baseName: "mfa_enabled",
93102
type: "boolean",

services/incident_services/src/v2/models/UserAttributes.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ export class UserAttributes {
2424
* URL of the user's icon.
2525
*/
2626
"icon"?: string;
27+
/**
28+
* The last time the user logged in.
29+
*/
30+
"lastLoginTime"?: Date;
2731
/**
2832
* If user has MFA enabled.
2933
*/
@@ -88,6 +92,11 @@ export class UserAttributes {
8892
baseName: "icon",
8993
type: "string",
9094
},
95+
lastLoginTime: {
96+
baseName: "last_login_time",
97+
type: "Date",
98+
format: "date-time",
99+
},
91100
mfaEnabled: {
92101
baseName: "mfa_enabled",
93102
type: "boolean",

services/incident_teams/src/v2/models/UserAttributes.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ export class UserAttributes {
2424
* URL of the user's icon.
2525
*/
2626
"icon"?: string;
27+
/**
28+
* The last time the user logged in.
29+
*/
30+
"lastLoginTime"?: Date;
2731
/**
2832
* If user has MFA enabled.
2933
*/
@@ -88,6 +92,11 @@ export class UserAttributes {
8892
baseName: "icon",
8993
type: "string",
9094
},
95+
lastLoginTime: {
96+
baseName: "last_login_time",
97+
type: "Date",
98+
format: "date-time",
99+
},
91100
mfaEnabled: {
92101
baseName: "mfa_enabled",
93102
type: "boolean",

services/incidents/src/v2/models/UserAttributes.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ export class UserAttributes {
2424
* URL of the user's icon.
2525
*/
2626
"icon"?: string;
27+
/**
28+
* The last time the user logged in.
29+
*/
30+
"lastLoginTime"?: Date;
2731
/**
2832
* If user has MFA enabled.
2933
*/
@@ -88,6 +92,11 @@ export class UserAttributes {
8892
baseName: "icon",
8993
type: "string",
9094
},
95+
lastLoginTime: {
96+
baseName: "last_login_time",
97+
type: "Date",
98+
format: "date-time",
99+
},
91100
mfaEnabled: {
92101
baseName: "mfa_enabled",
93102
type: "boolean",

services/key_management/src/v2/models/UserAttributes.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ export class UserAttributes {
2424
* URL of the user's icon.
2525
*/
2626
"icon"?: string;
27+
/**
28+
* The last time the user logged in.
29+
*/
30+
"lastLoginTime"?: Date;
2731
/**
2832
* If user has MFA enabled.
2933
*/
@@ -88,6 +92,11 @@ export class UserAttributes {
8892
baseName: "icon",
8993
type: "string",
9094
},
95+
lastLoginTime: {
96+
baseName: "last_login_time",
97+
type: "Date",
98+
format: "date-time",
99+
},
91100
mfaEnabled: {
92101
baseName: "mfa_enabled",
93102
type: "boolean",

services/monitors/src/v2/models/UserAttributes.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ export class UserAttributes {
2424
* URL of the user's icon.
2525
*/
2626
"icon"?: string;
27+
/**
28+
* The last time the user logged in.
29+
*/
30+
"lastLoginTime"?: Date;
2731
/**
2832
* If user has MFA enabled.
2933
*/
@@ -88,6 +92,11 @@ export class UserAttributes {
8892
baseName: "icon",
8993
type: "string",
9094
},
95+
lastLoginTime: {
96+
baseName: "last_login_time",
97+
type: "Date",
98+
format: "date-time",
99+
},
91100
mfaEnabled: {
92101
baseName: "mfa_enabled",
93102
type: "boolean",

services/on_call/src/v2/models/UserAttributes.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ export class UserAttributes {
2424
* URL of the user's icon.
2525
*/
2626
"icon"?: string;
27+
/**
28+
* The last time the user logged in.
29+
*/
30+
"lastLoginTime"?: Date;
2731
/**
2832
* If user has MFA enabled.
2933
*/
@@ -88,6 +92,11 @@ export class UserAttributes {
8892
baseName: "icon",
8993
type: "string",
9094
},
95+
lastLoginTime: {
96+
baseName: "last_login_time",
97+
type: "Date",
98+
format: "date-time",
99+
},
91100
mfaEnabled: {
92101
baseName: "mfa_enabled",
93102
type: "boolean",

services/powerpack/src/v2/models/UserAttributes.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ export class UserAttributes {
2424
* URL of the user's icon.
2525
*/
2626
"icon"?: string;
27+
/**
28+
* The last time the user logged in.
29+
*/
30+
"lastLoginTime"?: Date;
2731
/**
2832
* If user has MFA enabled.
2933
*/
@@ -88,6 +92,11 @@ export class UserAttributes {
8892
baseName: "icon",
8993
type: "string",
9094
},
95+
lastLoginTime: {
96+
baseName: "last_login_time",
97+
type: "Date",
98+
format: "date-time",
99+
},
91100
mfaEnabled: {
92101
baseName: "mfa_enabled",
93102
type: "boolean",

services/roles/src/v2/models/UserAttributes.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ export class UserAttributes {
2424
* URL of the user's icon.
2525
*/
2626
"icon"?: string;
27+
/**
28+
* The last time the user logged in.
29+
*/
30+
"lastLoginTime"?: Date;
2731
/**
2832
* If user has MFA enabled.
2933
*/
@@ -88,6 +92,11 @@ export class UserAttributes {
8892
baseName: "icon",
8993
type: "string",
9094
},
95+
lastLoginTime: {
96+
baseName: "last_login_time",
97+
type: "Date",
98+
format: "date-time",
99+
},
91100
mfaEnabled: {
92101
baseName: "mfa_enabled",
93102
type: "boolean",

0 commit comments

Comments
 (0)