/** * Data Science API * Use the Data Science API to organize your data science work, access data and computing resources, and build, train, deploy and manage models and model deployments. For more information, see [Data Science](https://docs.oracle.com/iaas/data-science/using/data-science.htm). * OpenAPI spec version: 20190101 * * * NOTE: This class is auto generated by OracleSDKGenerator. * Do not edit the class manually. * * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ import * as model from "../model"; /** * The scaling configuration for the custom expression query for the workload. */ export interface TargetCustomExpressionQueryScalingConfiguration extends model.TargetScalingConfiguration { /** * The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service * interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value * represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, * statistic, interval, and trigger rule (threshold or absence). Supported values for interval: 1m-60m (also 1h). * You can optionally specify dimensions and grouping functions. Supported grouping functions: grouping(), groupBy(). * Example of threshold alarm: * {@code * CPUUtilization[1m]{resourceId = \"Model_Deployment_OCID\"}.grouping().mean() < 25 * CPUUtilization[1m]{resourceId = \"Model_Deployment_OCID\"}.grouping().mean() > 75 * } * */ "query": string; /** * A metric value at which the scaling operation will be triggered. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "threshold": number; /** * Namespace to read the metrics from. Default value will be service metric namespace. */ "metricNamespace"?: string; "targetScalingConfigurationType": string; } export declare namespace TargetCustomExpressionQueryScalingConfiguration { function getJsonObj(obj: TargetCustomExpressionQueryScalingConfiguration, isParentJsonObj?: boolean): object; const targetScalingConfigurationType = "QUERY"; function getDeserializedJsonObj(obj: TargetCustomExpressionQueryScalingConfiguration, isParentJsonObj?: boolean): object; }