-
-
Notifications
You must be signed in to change notification settings - Fork 730
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
165 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
src/lib/openapi/spec/application-environment-instances-schema.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import { FromSchema } from 'json-schema-to-ts'; | ||
|
||
export const applicationEnvironmentInstancesSchema = { | ||
$id: '#/components/schemas/applicationEnvironmentInstanceSchema', | ||
type: 'object', | ||
description: | ||
'Data about an application environment instances that are connected to Unleash via an SDK.', | ||
additionalProperties: false, | ||
required: ['instances'], | ||
properties: { | ||
instances: { | ||
type: 'array', | ||
description: 'A list of instances', | ||
items: { | ||
type: 'object', | ||
required: ['instanceId'], | ||
additionalProperties: false, | ||
properties: { | ||
instanceId: { | ||
description: | ||
'A unique identifier identifying the instance of the application running the SDK. Often changes based on execution environment. For instance: two pods in Kubernetes will have two different instanceIds', | ||
type: 'string', | ||
example: 'b77f3d13-5f48-4a7b-a3f4-a449b97ce43a', | ||
}, | ||
sdkVersion: { | ||
type: 'string', | ||
description: | ||
'An SDK version identifier. Usually formatted as "unleash-client-<language>:<version>"', | ||
example: 'unleash-client-java:7.0.0', | ||
}, | ||
clientIp: { | ||
type: 'string', | ||
description: | ||
'An IP address identifying the instance of the application running the SDK', | ||
example: '192.168.0.1', | ||
}, | ||
lastSeen: { | ||
type: 'string', | ||
format: 'date-time', | ||
example: '2023-04-19T08:15:14.000Z', | ||
description: | ||
'The last time the application environment instance was seen', | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
components: {}, | ||
} as const; | ||
|
||
export type ApplicationEnvironmentInstancesSchema = FromSchema< | ||
typeof applicationEnvironmentInstancesSchema | ||
>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters