UNPKG

@yandex-cloud/function-types

Version:

TypeScript typings for Serverless Functions in Yandex.Cloud

28 lines (27 loc) 661 B
import { Trigger } from "./trigger"; export declare namespace CloudLogging { enum Types { LoggingMessageBatch = "LoggingMessageBatch" } type Metadata = { created_at: { seconds: number; nanos: number; }; }; type Message = { resource: { type: string; id: string; }; timestamp: string; level: string; message: string; json_payload: Record<string, any>; }; type Details = { messages: Message[]; }; export type Event = Trigger.Event<`serverless.triggers.${Types}`, Details, Metadata>; export {}; }