UNPKG

@pulumi/meraki

Version:

A Pulumi package for creating and managing Cisco Meraki resources. Based on terraform-provider-meraki: version v0.2.0

122 lines (121 loc) 4.67 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as meraki from "@pulumi/meraki"; * * const example = meraki.networks.getSensorAlertsOverviewByMetric({ * interval: 1, * networkId: "string", * t0: "string", * t1: "string", * timespan: 1, * }); * export const merakiNetworksSensorAlertsOverviewByMetricExample = example.then(example => example.items); * ``` */ export declare function getSensorAlertsOverviewByMetric(args: GetSensorAlertsOverviewByMetricArgs, opts?: pulumi.InvokeOptions): Promise<GetSensorAlertsOverviewByMetricResult>; /** * A collection of arguments for invoking getSensorAlertsOverviewByMetric. */ export interface GetSensorAlertsOverviewByMetricArgs { /** * interval query parameter. The time interval in seconds for returned data. The valid intervals are: 86400, 604800. The default is 604800. */ interval?: number; /** * networkId path parameter. Network ID */ networkId: string; /** * t0 query parameter. The beginning of the timespan for the data. The maximum lookback period is 365 days from today. */ t0?: string; /** * t1 query parameter. The end of the timespan for the data. t1 can be a maximum of 31 days after t0. */ t1?: string; /** * timespan query parameter. The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 31 days. The default is 7 days. */ timespan?: number; } /** * A collection of values returned by getSensorAlertsOverviewByMetric. */ export interface GetSensorAlertsOverviewByMetricResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * interval query parameter. The time interval in seconds for returned data. The valid intervals are: 86400, 604800. The default is 604800. */ readonly interval?: number; /** * Array of ResponseSensorGetNetworkSensorAlertsOverviewByMetric */ readonly items: outputs.networks.GetSensorAlertsOverviewByMetricItem[]; /** * networkId path parameter. Network ID */ readonly networkId: string; /** * t0 query parameter. The beginning of the timespan for the data. The maximum lookback period is 365 days from today. */ readonly t0?: string; /** * t1 query parameter. The end of the timespan for the data. t1 can be a maximum of 31 days after t0. */ readonly t1?: string; /** * timespan query parameter. The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 31 days. The default is 7 days. */ readonly timespan?: number; } /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as meraki from "@pulumi/meraki"; * * const example = meraki.networks.getSensorAlertsOverviewByMetric({ * interval: 1, * networkId: "string", * t0: "string", * t1: "string", * timespan: 1, * }); * export const merakiNetworksSensorAlertsOverviewByMetricExample = example.then(example => example.items); * ``` */ export declare function getSensorAlertsOverviewByMetricOutput(args: GetSensorAlertsOverviewByMetricOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSensorAlertsOverviewByMetricResult>; /** * A collection of arguments for invoking getSensorAlertsOverviewByMetric. */ export interface GetSensorAlertsOverviewByMetricOutputArgs { /** * interval query parameter. The time interval in seconds for returned data. The valid intervals are: 86400, 604800. The default is 604800. */ interval?: pulumi.Input<number>; /** * networkId path parameter. Network ID */ networkId: pulumi.Input<string>; /** * t0 query parameter. The beginning of the timespan for the data. The maximum lookback period is 365 days from today. */ t0?: pulumi.Input<string>; /** * t1 query parameter. The end of the timespan for the data. t1 can be a maximum of 31 days after t0. */ t1?: pulumi.Input<string>; /** * timespan query parameter. The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 31 days. The default is 7 days. */ timespan?: pulumi.Input<number>; }