-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(types): adds additional type definitions for Signalflow client, …
…and ingest client (#113) 1. includes additional code from Splunk's internal types for the Signalflow client 1. includes types for ingest client from the `@types/signalfx` npm module
- Loading branch information
1 parent
1625c26
commit d263cd7
Showing
3 changed files
with
149 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
The Initial Developers of the ingest.d.ts file are Vladimir Grenaderov <https://github.com/VladimirGrenaderov> and Max Boguslavskiy <https://github.com/maxbogus>. | ||
Copyright 2019 - 2024 Vladimir Grenaderov and Max Boguslavskiy. All Rights Reserved. | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. |
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,35 @@ | ||
// Definitions by: Vladimir Grenaderov <https://github.com/VladimirGrenaderov> | ||
// Max Boguslavskiy <https://github.com/maxbogus> | ||
|
||
export interface IngestOptions { | ||
enableAmazonUniqueId?: boolean | undefined; | ||
dimensions?: object | undefined; | ||
ingestEndpoint?: string | undefined; | ||
timeout?: number | undefined; | ||
batchSize?: number | undefined; | ||
userAgents?: string[] | undefined; | ||
proxy?: string | undefined; | ||
} | ||
|
||
export interface SignalMetric { | ||
metric: string; | ||
value: number; | ||
timestamp?: number | undefined; | ||
dimensions?: object | undefined; | ||
} | ||
|
||
export interface SignalReport { | ||
cumulative_counters?: SignalMetric[] | undefined; | ||
gauges?: SignalMetric[] | undefined; | ||
counters?: SignalMetric[] | undefined; | ||
} | ||
|
||
export class Ingest { | ||
constructor(token: string, options?: IngestOptions); | ||
send(report: SignalReport): void; | ||
} | ||
|
||
export class IngestJson { | ||
constructor(token: string, options?: IngestOptions); | ||
send(report: SignalReport): void; | ||
} |
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