PredictionArgs

data class PredictionArgs(val autoAnalyze: Output<Boolean>? = null, val description: Output<Map<String, String>>? = null, val displayName: Output<Map<String, String>>? = null, val grades: Output<List<PredictionGradesArgs>>? = null, val hubName: Output<String>? = null, val involvedInteractionTypes: Output<List<String>>? = null, val involvedKpiTypes: Output<List<String>>? = null, val involvedRelationships: Output<List<String>>? = null, val mappings: Output<PredictionMappingsArgs>? = null, val negativeOutcomeExpression: Output<String>? = null, val positiveOutcomeExpression: Output<String>? = null, val predictionName: Output<String>? = null, val primaryProfileType: Output<String>? = null, val resourceGroupName: Output<String>? = null, val scopeExpression: Output<String>? = null, val scoreLabel: Output<String>? = null) : ConvertibleToJava<PredictionArgs>

The prediction resource format. Uses Azure REST API version 2017-04-26. In version 2.x of the Azure Native provider, it used API version 2017-04-26.

Example Usage

Predictions_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var prediction = new AzureNative.CustomerInsights.Prediction("prediction", new()
{
AutoAnalyze = true,
Description =
{
{ "en-us", "sdktest" },
},
DisplayName =
{
{ "en-us", "sdktest" },
},
Grades = new[] {},
HubName = "sdkTestHub",
InvolvedInteractionTypes = new[] {},
InvolvedKpiTypes = new[] {},
InvolvedRelationships = new[] {},
Mappings = new AzureNative.CustomerInsights.Inputs.PredictionMappingsArgs
{
Grade = "sdktest_Grade",
Reason = "sdktest_Reason",
Score = "sdktest_Score",
},
NegativeOutcomeExpression = "Customers.FirstName = 'Mike'",
PositiveOutcomeExpression = "Customers.FirstName = 'David'",
PredictionName = "sdktest",
PrimaryProfileType = "Customers",
ResourceGroupName = "TestHubRG",
ScopeExpression = "*",
ScoreLabel = "score label",
});
});
package main
import (
customerinsights "github.com/pulumi/pulumi-azure-native-sdk/customerinsights/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := customerinsights.NewPrediction(ctx, "prediction", &customerinsights.PredictionArgs{
AutoAnalyze: pulumi.Bool(true),
Description: pulumi.StringMap{
"en-us": pulumi.String("sdktest"),
},
DisplayName: pulumi.StringMap{
"en-us": pulumi.String("sdktest"),
},
Grades: customerinsights.PredictionGradesArray{},
HubName: pulumi.String("sdkTestHub"),
InvolvedInteractionTypes: pulumi.StringArray{},
InvolvedKpiTypes: pulumi.StringArray{},
InvolvedRelationships: pulumi.StringArray{},
Mappings: &customerinsights.PredictionMappingsArgs{
Grade: pulumi.String("sdktest_Grade"),
Reason: pulumi.String("sdktest_Reason"),
Score: pulumi.String("sdktest_Score"),
},
NegativeOutcomeExpression: pulumi.String("Customers.FirstName = 'Mike'"),
PositiveOutcomeExpression: pulumi.String("Customers.FirstName = 'David'"),
PredictionName: pulumi.String("sdktest"),
PrimaryProfileType: pulumi.String("Customers"),
ResourceGroupName: pulumi.String("TestHubRG"),
ScopeExpression: pulumi.String("*"),
ScoreLabel: pulumi.String("score label"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.customerinsights.Prediction;
import com.pulumi.azurenative.customerinsights.PredictionArgs;
import com.pulumi.azurenative.customerinsights.inputs.PredictionMappingsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var prediction = new Prediction("prediction", PredictionArgs.builder()
.autoAnalyze(true)
.description(Map.of("en-us", "sdktest"))
.displayName(Map.of("en-us", "sdktest"))
.grades()
.hubName("sdkTestHub")
.involvedInteractionTypes()
.involvedKpiTypes()
.involvedRelationships()
.mappings(PredictionMappingsArgs.builder()
.grade("sdktest_Grade")
.reason("sdktest_Reason")
.score("sdktest_Score")
.build())
.negativeOutcomeExpression("Customers.FirstName = 'Mike'")
.positiveOutcomeExpression("Customers.FirstName = 'David'")
.predictionName("sdktest")
.primaryProfileType("Customers")
.resourceGroupName("TestHubRG")
.scopeExpression("*")
.scoreLabel("score label")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:customerinsights:Prediction sdkTestHub/sdktest /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/predictions/{predictionName}

Constructors

Link copied to clipboard
constructor(autoAnalyze: Output<Boolean>? = null, description: Output<Map<String, String>>? = null, displayName: Output<Map<String, String>>? = null, grades: Output<List<PredictionGradesArgs>>? = null, hubName: Output<String>? = null, involvedInteractionTypes: Output<List<String>>? = null, involvedKpiTypes: Output<List<String>>? = null, involvedRelationships: Output<List<String>>? = null, mappings: Output<PredictionMappingsArgs>? = null, negativeOutcomeExpression: Output<String>? = null, positiveOutcomeExpression: Output<String>? = null, predictionName: Output<String>? = null, primaryProfileType: Output<String>? = null, resourceGroupName: Output<String>? = null, scopeExpression: Output<String>? = null, scoreLabel: Output<String>? = null)

Properties

Link copied to clipboard
val autoAnalyze: Output<Boolean>? = null

Whether do auto analyze.

Link copied to clipboard
val description: Output<Map<String, String>>? = null

Description of the prediction.

Link copied to clipboard
val displayName: Output<Map<String, String>>? = null

Display name of the prediction.

Link copied to clipboard
val grades: Output<List<PredictionGradesArgs>>? = null

The prediction grades.

Link copied to clipboard
val hubName: Output<String>? = null

The name of the hub.

Link copied to clipboard
val involvedInteractionTypes: Output<List<String>>? = null

Interaction types involved in the prediction.

Link copied to clipboard
val involvedKpiTypes: Output<List<String>>? = null

KPI types involved in the prediction.

Link copied to clipboard
val involvedRelationships: Output<List<String>>? = null

Relationships involved in the prediction.

Link copied to clipboard
val mappings: Output<PredictionMappingsArgs>? = null

Definition of the link mapping of prediction.

Link copied to clipboard
val negativeOutcomeExpression: Output<String>? = null

Negative outcome expression.

Link copied to clipboard
val positiveOutcomeExpression: Output<String>? = null

Positive outcome expression.

Link copied to clipboard
val predictionName: Output<String>? = null

Name of the prediction.

Link copied to clipboard
val primaryProfileType: Output<String>? = null

Primary profile type.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group.

Link copied to clipboard
val scopeExpression: Output<String>? = null

Scope expression.

Link copied to clipboard
val scoreLabel: Output<String>? = null

Score label.

Functions

Link copied to clipboard
open override fun toJava(): PredictionArgs