import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Resource for creating an SLO. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const example = new harness.platform.Slo("example", { * orgId: "org_id", * projectId: "project_id", * identifier: "identifier", * request: { * name: "name", * description: "description", * tags: [ * "foo:bar", * "bar:foo", * ], * userJourneyRefs: [ * "one", * "two", * ], * sloTarget: { * type: "Calender", * sloTargetPercentage: 10, * spec: JSON.stringify({ * type: "Monthly", * spec: { * dayOfMonth: 5, * }, * }), * }, * type: "Simple", * spec: JSON.stringify({ * monitoredServiceRef: "monitoredServiceRef", * serviceLevelIndicatorType: "Availability", * serviceLevelIndicators: [{ * name: "name", * identifier: "identifier", * type: "Window", * spec: { * type: "Threshold", * spec: { * metric1: "metric1", * thresholdValue: 10, * thresholdType: ">", * }, * sliMissingDataType: "Good", * }, * }], * }), * notificationRuleRefs: [{ * notificationRuleRef: "notification_rule_ref", * enabled: true, * }], * }, * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * Import account level SLO * * ```sh * $ pulumi import harness:platform/slo:Slo example * ``` * * Import organization level SLO * * ```sh * $ pulumi import harness:platform/slo:Slo example / * ``` * * Import project level SLO * * ```sh * $ pulumi import harness:platform/slo:Slo example // * ``` */ export declare class Slo extends pulumi.CustomResource { /** * Get an existing Slo resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: SloState, opts?: pulumi.CustomResourceOptions): Slo; /** * Returns true if the given object is an instance of Slo. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Slo; /** * Identifier of the SLO. */ readonly identifier: pulumi.Output; /** * Identifier of the organization in which the SLO is configured. */ readonly orgId: pulumi.Output; /** * Identifier of the project in which the SLO is configured. */ readonly projectId: pulumi.Output; /** * Request for creating or updating SLO. */ readonly request: pulumi.Output; /** * Create a Slo resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: SloArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Slo resources. */ export interface SloState { /** * Identifier of the SLO. */ identifier?: pulumi.Input; /** * Identifier of the organization in which the SLO is configured. */ orgId?: pulumi.Input; /** * Identifier of the project in which the SLO is configured. */ projectId?: pulumi.Input; /** * Request for creating or updating SLO. */ request?: pulumi.Input; } /** * The set of arguments for constructing a Slo resource. */ export interface SloArgs { /** * Identifier of the SLO. */ identifier: pulumi.Input; /** * Identifier of the organization in which the SLO is configured. */ orgId: pulumi.Input; /** * Identifier of the project in which the SLO is configured. */ projectId: pulumi.Input; /** * Request for creating or updating SLO. */ request?: pulumi.Input; } //# sourceMappingURL=slo.d.ts.map