ServiceLevelObjective constructor
ServiceLevelObjective(
- String name, {
- ServiceLevelObjectiveArgs? args,
- CustomResourceOptions? options,
Creates a new ServiceLevelObjective.
name The Pulumi resource name.
args Arguments used to configure this ServiceLevelObjective. The set of arguments for ServiceLevelObjective.
options Resource options controlling this resource's behavior.
Implementation
ServiceLevelObjective(
String name, {
ServiceLevelObjectiveArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'google-native:monitoring/v3:ServiceLevelObjective',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
options ?? pulumi.CustomResourceOptions(),
) {
calendarPeriod = registerOutput<String>('calendarPeriod');
displayName = registerOutput<String>('displayName');
goal = registerOutput<double>('goal');
this.name = registerOutput<String>('name');
rollingPeriod = registerOutput<String>('rollingPeriod');
serviceId = registerOutput<String>('serviceId');
serviceLevelIndicator = registerOutput<ServiceLevelIndicatorResponse>('serviceLevelIndicator', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ServiceLevelIndicatorResponse.fromMap((guardedValue as Map).cast<String, dynamic>()); });
serviceLevelObjectiveId = registerOutput<String?>('serviceLevelObjectiveId');
userLabels = registerOutput<Map<String, String>>('userLabels');
v3Id = registerOutput<String>('v3Id');
v3Id1 = registerOutput<String>('v3Id1');
}