Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/splunk-logging

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/splunk-logging - npm Package Compare versions

Comparing version 0.9.1 to 0.9.2

34

splunk-logging/index.d.ts

@@ -11,20 +11,20 @@ // Type definitions for splunk-logging 0.9

token: string;
name?: string;
host?: string;
maxRetries?: number;
path?: string;
protocol?: 'http' | 'https';
port?: number;
url?: string;
level?: string;
batchInterval?: number;
maxBatchSize?: number;
maxBatchCount?: number;
name?: string | undefined;
host?: string | undefined;
maxRetries?: number | undefined;
path?: string | undefined;
protocol?: 'http' | 'https' | undefined;
port?: number | undefined;
url?: string | undefined;
level?: string | undefined;
batchInterval?: number | undefined;
maxBatchSize?: number | undefined;
maxBatchCount?: number | undefined;
}
export interface SendContextMetadata {
host?: string;
index?: string;
source?: string;
sourcetype?: string;
host?: string | undefined;
index?: string | undefined;
source?: string | undefined;
sourcetype?: string | undefined;
}

@@ -34,4 +34,4 @@

message: any;
severity?: string;
metadata?: SendContextMetadata;
severity?: string | undefined;
metadata?: SendContextMetadata | undefined;
}

@@ -38,0 +38,0 @@

{
"name": "@types/splunk-logging",
"version": "0.9.1",
"version": "0.9.2",
"description": "TypeScript definitions for splunk-logging",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/splunk-logging",
"license": "MIT",

@@ -14,5 +15,7 @@ "contributors": [

"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/splunk-logging"
},

@@ -23,4 +26,4 @@ "scripts": {},

},
"typesPublisherContentHash": "53523b62da29a6cabd5af7d443a801ffc70ad90aa2380da279fe29dc52d1681d",
"typeScriptVersion": "2.3"
"typesPublisherContentHash": "9038ec3ff82708c7b1e83c39d6918b0446c33148c694171c614e32b88d887889",
"typeScriptVersion": "3.6"
}

@@ -8,10 +8,64 @@ # Installation

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/splunk-logging
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/splunk-logging.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/splunk-logging/index.d.ts)
````ts
// Type definitions for splunk-logging 0.9
// Project: http://dev.splunk.com
// Definitions by: Alex Brick <https://github.com/bricka>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
Additional Details
* Last updated: Fri, 06 Jul 2018 00:07:02 GMT
* Dependencies: request
import { CoreOptions as RequestOptions } from 'request';
export interface Config {
token: string;
name?: string | undefined;
host?: string | undefined;
maxRetries?: number | undefined;
path?: string | undefined;
protocol?: 'http' | 'https' | undefined;
port?: number | undefined;
url?: string | undefined;
level?: string | undefined;
batchInterval?: number | undefined;
maxBatchSize?: number | undefined;
maxBatchCount?: number | undefined;
}
export interface SendContextMetadata {
host?: string | undefined;
index?: string | undefined;
source?: string | undefined;
sourcetype?: string | undefined;
}
export interface SendContext {
message: any;
severity?: string | undefined;
metadata?: SendContextMetadata | undefined;
}
export type Callback = (error: Error | undefined, req: any, res: any) => void;
export type EventFormatter = (message: any, severity: string) => any;
export class Logger {
error: (error: Error, context: SendContext) => void;
eventFormatter: EventFormatter;
requestOptions: RequestOptions;
readonly serializedEventQueue: any[];
constructor(config: Config);
flush(callback?: Callback): void;
send(context: SendContext, callback?: Callback): void;
}
````
### Additional Details
* Last updated: Tue, 06 Jul 2021 16:35:11 GMT
* Dependencies: [@types/request](https://npmjs.com/package/@types/request)
* Global values: none
# Credits
These definitions were written by Alex Brick <https://github.com/bricka>.
These definitions were written by [Alex Brick](https://github.com/bricka).

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc