-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from Enigmatis/polaris-logs-export-create-logger
refactor!: changes according to api changes
- Loading branch information
Showing
14 changed files
with
73 additions
and
37 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
import { Reality } from './reality'; | ||
|
||
export interface Entity { | ||
id?: string; | ||
type?: string; | ||
reality?: Reality; | ||
name?: string; | ||
secondaryIds?: string[]; | ||
} |
2 changes: 1 addition & 1 deletion
2
...es/event-kind-description-log-property.ts → src/entities/event-kind-description.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export interface EventKindDescriptionLogProperty { | ||
export interface EventKindDescription { | ||
systemId?: string; | ||
requestingSystemId?: string; | ||
} |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export * from './event-kind-description-log-property'; | ||
export * from './reality-log-property'; | ||
export * from './request-log-property'; | ||
export * from './system-log-property'; | ||
export * from './event-kind-description'; | ||
export * from './reality'; | ||
export * from './request'; | ||
export * from './requesting-system'; | ||
export * from './entity'; |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export interface RealityLogProperty { | ||
export interface Reality { | ||
type?: string; | ||
id?: number; | ||
name?: string; | ||
|
This file was deleted.
Oops, something went wrong.
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,10 @@ | ||
import { RequestingSystem } from './requesting-system'; | ||
|
||
export interface Request { | ||
requestingIp?: string; | ||
requestingUserIdentifier?: string; | ||
requestingSystem?: RequestingSystem; | ||
requestQuery?: any; | ||
requestingHost?: string; | ||
request?: any; | ||
} |
2 changes: 1 addition & 1 deletion
2
src/entities/system-log-property.ts → src/entities/requesting-system.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export interface SystemLogProperty { | ||
export interface RequestingSystem { | ||
name?: string; | ||
id?: string; | ||
} |
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 |
---|---|---|
@@ -1,22 +1,18 @@ | ||
import { | ||
Entity, | ||
EventKindDescriptionLogProperty, | ||
RealityLogProperty, | ||
RequestLogProperty, | ||
} from './entities'; | ||
import { Entity, EventKindDescription, Reality, Request } from './entities'; | ||
|
||
export interface PolarisLogProperties { | ||
throwable?: object; | ||
elapsedTime?: number; | ||
logId?: string; | ||
customProperties?: object; | ||
requestId?: string; | ||
response?: object; | ||
recordId?: string; | ||
messageId?: string; | ||
eventKind?: string; | ||
eventKindDescription?: EventKindDescriptionLogProperty; | ||
reality?: RealityLogProperty; | ||
request?: RequestLogProperty; | ||
eventKindDescription?: EventKindDescription; | ||
reality?: Reality; | ||
request?: Request; | ||
entity?: Entity; | ||
entities?: Entity[]; | ||
upn?: string; | ||
ip?: string; | ||
host?: string; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
declare function clean(toClean: object): object; | ||
|
||
declare module 'clean-deep' { | ||
export = clean | ||
export = clean; | ||
} |
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