Package com.pulumi.gcp.monitoring
Class SloArgs.Builder
- java.lang.Object
-
- com.pulumi.gcp.monitoring.SloArgs.Builder
-
- Enclosing class:
- SloArgs
public static final class SloArgs.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SloArgs.Builder
basicSli(com.pulumi.core.Output<SloBasicSliArgs> basicSli)
SloArgs.Builder
basicSli(SloBasicSliArgs basicSli)
SloArgs
build()
SloArgs.Builder
calendarPeriod(com.pulumi.core.Output<java.lang.String> calendarPeriod)
SloArgs.Builder
calendarPeriod(java.lang.String calendarPeriod)
SloArgs.Builder
displayName(com.pulumi.core.Output<java.lang.String> displayName)
SloArgs.Builder
displayName(java.lang.String displayName)
SloArgs.Builder
goal(com.pulumi.core.Output<java.lang.Double> goal)
SloArgs.Builder
goal(java.lang.Double goal)
SloArgs.Builder
project(com.pulumi.core.Output<java.lang.String> project)
SloArgs.Builder
project(java.lang.String project)
SloArgs.Builder
requestBasedSli(com.pulumi.core.Output<SloRequestBasedSliArgs> requestBasedSli)
SloArgs.Builder
requestBasedSli(SloRequestBasedSliArgs requestBasedSli)
SloArgs.Builder
rollingPeriodDays(com.pulumi.core.Output<java.lang.Integer> rollingPeriodDays)
SloArgs.Builder
rollingPeriodDays(java.lang.Integer rollingPeriodDays)
SloArgs.Builder
service(com.pulumi.core.Output<java.lang.String> service)
SloArgs.Builder
service(java.lang.String service)
SloArgs.Builder
sloId(com.pulumi.core.Output<java.lang.String> sloId)
SloArgs.Builder
sloId(java.lang.String sloId)
SloArgs.Builder
userLabels(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> userLabels)
SloArgs.Builder
userLabels(java.util.Map<java.lang.String,java.lang.String> userLabels)
SloArgs.Builder
windowsBasedSli(com.pulumi.core.Output<SloWindowsBasedSliArgs> windowsBasedSli)
SloArgs.Builder
windowsBasedSli(SloWindowsBasedSliArgs windowsBasedSli)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(SloArgs defaults)
-
-
Method Detail
-
basicSli
public SloArgs.Builder basicSli(@Nullable com.pulumi.core.Output<SloBasicSliArgs> basicSli)
- Parameters:
basicSli
- Basic Service-Level Indicator (SLI) on a well-known service type. Performance will be computed on the basis of pre-defined metrics. SLIs are used to measure and calculate the quality of the Service's performance with respect to a single aspect of service quality. Exactly one of the following must be set: `basic_sli`, `request_based_sli`, `windows_based_sli` Structure is documented below.- Returns:
- builder
-
basicSli
public SloArgs.Builder basicSli(SloBasicSliArgs basicSli)
- Parameters:
basicSli
- Basic Service-Level Indicator (SLI) on a well-known service type. Performance will be computed on the basis of pre-defined metrics. SLIs are used to measure and calculate the quality of the Service's performance with respect to a single aspect of service quality. Exactly one of the following must be set: `basic_sli`, `request_based_sli`, `windows_based_sli` Structure is documented below.- Returns:
- builder
-
calendarPeriod
public SloArgs.Builder calendarPeriod(@Nullable com.pulumi.core.Output<java.lang.String> calendarPeriod)
- Parameters:
calendarPeriod
- A calendar period, semantically "since the start of the current <calendarPeriod>". Possible values are: `DAY`, `WEEK`, `FORTNIGHT`, `MONTH`.- Returns:
- builder
-
calendarPeriod
public SloArgs.Builder calendarPeriod(java.lang.String calendarPeriod)
- Parameters:
calendarPeriod
- A calendar period, semantically "since the start of the current <calendarPeriod>". Possible values are: `DAY`, `WEEK`, `FORTNIGHT`, `MONTH`.- Returns:
- builder
-
displayName
public SloArgs.Builder displayName(@Nullable com.pulumi.core.Output<java.lang.String> displayName)
- Parameters:
displayName
- Name used for UI elements listing this SLO.- Returns:
- builder
-
displayName
public SloArgs.Builder displayName(java.lang.String displayName)
- Parameters:
displayName
- Name used for UI elements listing this SLO.- Returns:
- builder
-
goal
public SloArgs.Builder goal(com.pulumi.core.Output<java.lang.Double> goal)
- Parameters:
goal
- The fraction of service that must be good in order for this objective to be met. 0 < goal <= 0.999- Returns:
- builder
-
goal
public SloArgs.Builder goal(java.lang.Double goal)
- Parameters:
goal
- The fraction of service that must be good in order for this objective to be met. 0 < goal <= 0.999- Returns:
- builder
-
project
public SloArgs.Builder project(@Nullable com.pulumi.core.Output<java.lang.String> project)
- Parameters:
project
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.- Returns:
- builder
-
project
public SloArgs.Builder project(java.lang.String project)
- Parameters:
project
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.- Returns:
- builder
-
requestBasedSli
public SloArgs.Builder requestBasedSli(@Nullable com.pulumi.core.Output<SloRequestBasedSliArgs> requestBasedSli)
- Parameters:
requestBasedSli
- A request-based SLI defines a SLI for which atomic units of service are counted directly. A SLI describes a good service. It is used to measure and calculate the quality of the Service's performance with respect to a single aspect of service quality. Exactly one of the following must be set: `basic_sli`, `request_based_sli`, `windows_based_sli` Structure is documented below.- Returns:
- builder
-
requestBasedSli
public SloArgs.Builder requestBasedSli(SloRequestBasedSliArgs requestBasedSli)
- Parameters:
requestBasedSli
- A request-based SLI defines a SLI for which atomic units of service are counted directly. A SLI describes a good service. It is used to measure and calculate the quality of the Service's performance with respect to a single aspect of service quality. Exactly one of the following must be set: `basic_sli`, `request_based_sli`, `windows_based_sli` Structure is documented below.- Returns:
- builder
-
rollingPeriodDays
public SloArgs.Builder rollingPeriodDays(@Nullable com.pulumi.core.Output<java.lang.Integer> rollingPeriodDays)
- Parameters:
rollingPeriodDays
- A rolling time period, semantically "in the past X days". Must be between 1 to 30 days, inclusive.- Returns:
- builder
-
rollingPeriodDays
public SloArgs.Builder rollingPeriodDays(java.lang.Integer rollingPeriodDays)
- Parameters:
rollingPeriodDays
- A rolling time period, semantically "in the past X days". Must be between 1 to 30 days, inclusive.- Returns:
- builder
-
service
public SloArgs.Builder service(com.pulumi.core.Output<java.lang.String> service)
- Parameters:
service
- ID of the service to which this SLO belongs. ***- Returns:
- builder
-
service
public SloArgs.Builder service(java.lang.String service)
- Parameters:
service
- ID of the service to which this SLO belongs. ***- Returns:
- builder
-
sloId
public SloArgs.Builder sloId(@Nullable com.pulumi.core.Output<java.lang.String> sloId)
- Parameters:
sloId
- The id to use for this ServiceLevelObjective. If omitted, an id will be generated instead.- Returns:
- builder
-
sloId
public SloArgs.Builder sloId(java.lang.String sloId)
- Parameters:
sloId
- The id to use for this ServiceLevelObjective. If omitted, an id will be generated instead.- Returns:
- builder
-
userLabels
public SloArgs.Builder userLabels(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> userLabels)
- Parameters:
userLabels
- This field is intended to be used for organizing and identifying the AlertPolicy objects.The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.- Returns:
- builder
-
userLabels
public SloArgs.Builder userLabels(java.util.Map<java.lang.String,java.lang.String> userLabels)
- Parameters:
userLabels
- This field is intended to be used for organizing and identifying the AlertPolicy objects.The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.- Returns:
- builder
-
windowsBasedSli
public SloArgs.Builder windowsBasedSli(@Nullable com.pulumi.core.Output<SloWindowsBasedSliArgs> windowsBasedSli)
- Parameters:
windowsBasedSli
- A windows-based SLI defines the criteria for time windows. good_service is defined based off the count of these time windows for which the provided service was of good quality. A SLI describes a good service. It is used to measure and calculate the quality of the Service's performance with respect to a single aspect of service quality. Exactly one of the following must be set: `basic_sli`, `request_based_sli`, `windows_based_sli` Structure is documented below.- Returns:
- builder
-
windowsBasedSli
public SloArgs.Builder windowsBasedSli(SloWindowsBasedSliArgs windowsBasedSli)
- Parameters:
windowsBasedSli
- A windows-based SLI defines the criteria for time windows. good_service is defined based off the count of these time windows for which the provided service was of good quality. A SLI describes a good service. It is used to measure and calculate the quality of the Service's performance with respect to a single aspect of service quality. Exactly one of the following must be set: `basic_sli`, `request_based_sli`, `windows_based_sli` Structure is documented below.- Returns:
- builder
-
build
public SloArgs build()
-
-