Statuscake v1.0.2 published on Sunday, Oct 8, 2023 by Pulumiverse
statuscake.PagespeedCheck
Explore with Pulumi AI
Create PagespeedCheck Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PagespeedCheck(name: string, args: PagespeedCheckArgs, opts?: CustomResourceOptions);
@overload
def PagespeedCheck(resource_name: str,
args: PagespeedCheckArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PagespeedCheck(resource_name: str,
opts: Optional[ResourceOptions] = None,
alert_config: Optional[PagespeedCheckAlertConfigArgs] = None,
check_interval: Optional[int] = None,
monitored_resource: Optional[PagespeedCheckMonitoredResourceArgs] = None,
region: Optional[str] = None,
contact_groups: Optional[Sequence[str]] = None,
name: Optional[str] = None,
paused: Optional[bool] = None)
func NewPagespeedCheck(ctx *Context, name string, args PagespeedCheckArgs, opts ...ResourceOption) (*PagespeedCheck, error)
public PagespeedCheck(string name, PagespeedCheckArgs args, CustomResourceOptions? opts = null)
public PagespeedCheck(String name, PagespeedCheckArgs args)
public PagespeedCheck(String name, PagespeedCheckArgs args, CustomResourceOptions options)
type: statuscake:PagespeedCheck
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PagespeedCheckArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PagespeedCheckArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PagespeedCheckArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PagespeedCheckArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PagespeedCheckArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var pagespeedCheckResource = new Statuscake.PagespeedCheck("pagespeedCheckResource", new()
{
AlertConfig = new Statuscake.Inputs.PagespeedCheckAlertConfigArgs
{
AlertBigger = 0,
AlertSlower = 0,
AlertSmaller = 0,
},
CheckInterval = 0,
MonitoredResource = new Statuscake.Inputs.PagespeedCheckMonitoredResourceArgs
{
Address = "string",
},
Region = "string",
ContactGroups = new[]
{
"string",
},
Name = "string",
Paused = false,
});
example, err := statuscake.NewPagespeedCheck(ctx, "pagespeedCheckResource", &statuscake.PagespeedCheckArgs{
AlertConfig: &statuscake.PagespeedCheckAlertConfigArgs{
AlertBigger: pulumi.Int(0),
AlertSlower: pulumi.Int(0),
AlertSmaller: pulumi.Int(0),
},
CheckInterval: pulumi.Int(0),
MonitoredResource: &statuscake.PagespeedCheckMonitoredResourceArgs{
Address: pulumi.String("string"),
},
Region: pulumi.String("string"),
ContactGroups: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
Paused: pulumi.Bool(false),
})
var pagespeedCheckResource = new PagespeedCheck("pagespeedCheckResource", PagespeedCheckArgs.builder()
.alertConfig(PagespeedCheckAlertConfigArgs.builder()
.alertBigger(0)
.alertSlower(0)
.alertSmaller(0)
.build())
.checkInterval(0)
.monitoredResource(PagespeedCheckMonitoredResourceArgs.builder()
.address("string")
.build())
.region("string")
.contactGroups("string")
.name("string")
.paused(false)
.build());
pagespeed_check_resource = statuscake.PagespeedCheck("pagespeedCheckResource",
alert_config=statuscake.PagespeedCheckAlertConfigArgs(
alert_bigger=0,
alert_slower=0,
alert_smaller=0,
),
check_interval=0,
monitored_resource=statuscake.PagespeedCheckMonitoredResourceArgs(
address="string",
),
region="string",
contact_groups=["string"],
name="string",
paused=False)
const pagespeedCheckResource = new statuscake.PagespeedCheck("pagespeedCheckResource", {
alertConfig: {
alertBigger: 0,
alertSlower: 0,
alertSmaller: 0,
},
checkInterval: 0,
monitoredResource: {
address: "string",
},
region: "string",
contactGroups: ["string"],
name: "string",
paused: false,
});
type: statuscake:PagespeedCheck
properties:
alertConfig:
alertBigger: 0
alertSlower: 0
alertSmaller: 0
checkInterval: 0
contactGroups:
- string
monitoredResource:
address: string
name: string
paused: false
region: string
PagespeedCheck Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The PagespeedCheck resource accepts the following input properties:
- Alert
Config Pulumiverse.Statuscake. Inputs. Pagespeed Check Alert Config - Alert configuration block. Omitting this block disabled all alerts
- Check
Interval int - Number of seconds between checks
- Monitored
Resource Pulumiverse.Statuscake. Inputs. Pagespeed Check Monitored Resource - Monitored resource configuration block. The describes server under test
- Region string
- Region on which to run checks
- Contact
Groups List<string> - List of contact group IDs
- Name string
- Name of the check
- Paused bool
- Whether the check should be run
- Alert
Config PagespeedCheck Alert Config Args - Alert configuration block. Omitting this block disabled all alerts
- Check
Interval int - Number of seconds between checks
- Monitored
Resource PagespeedCheck Monitored Resource Args - Monitored resource configuration block. The describes server under test
- Region string
- Region on which to run checks
- Contact
Groups []string - List of contact group IDs
- Name string
- Name of the check
- Paused bool
- Whether the check should be run
- alert
Config PagespeedCheck Alert Config - Alert configuration block. Omitting this block disabled all alerts
- check
Interval Integer - Number of seconds between checks
- monitored
Resource PagespeedCheck Monitored Resource - Monitored resource configuration block. The describes server under test
- region String
- Region on which to run checks
- contact
Groups List<String> - List of contact group IDs
- name String
- Name of the check
- paused Boolean
- Whether the check should be run
- alert
Config PagespeedCheck Alert Config - Alert configuration block. Omitting this block disabled all alerts
- check
Interval number - Number of seconds between checks
- monitored
Resource PagespeedCheck Monitored Resource - Monitored resource configuration block. The describes server under test
- region string
- Region on which to run checks
- contact
Groups string[] - List of contact group IDs
- name string
- Name of the check
- paused boolean
- Whether the check should be run
- alert_
config PagespeedCheck Alert Config Args - Alert configuration block. Omitting this block disabled all alerts
- check_
interval int - Number of seconds between checks
- monitored_
resource PagespeedCheck Monitored Resource Args - Monitored resource configuration block. The describes server under test
- region str
- Region on which to run checks
- contact_
groups Sequence[str] - List of contact group IDs
- name str
- Name of the check
- paused bool
- Whether the check should be run
- alert
Config Property Map - Alert configuration block. Omitting this block disabled all alerts
- check
Interval Number - Number of seconds between checks
- monitored
Resource Property Map - Monitored resource configuration block. The describes server under test
- region String
- Region on which to run checks
- contact
Groups List<String> - List of contact group IDs
- name String
- Name of the check
- paused Boolean
- Whether the check should be run
Outputs
All input properties are implicitly available as output properties. Additionally, the PagespeedCheck resource produces the following output properties:
Look up Existing PagespeedCheck Resource
Get an existing PagespeedCheck resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: PagespeedCheckState, opts?: CustomResourceOptions): PagespeedCheck
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alert_config: Optional[PagespeedCheckAlertConfigArgs] = None,
check_interval: Optional[int] = None,
contact_groups: Optional[Sequence[str]] = None,
location: Optional[str] = None,
monitored_resource: Optional[PagespeedCheckMonitoredResourceArgs] = None,
name: Optional[str] = None,
paused: Optional[bool] = None,
region: Optional[str] = None) -> PagespeedCheck
func GetPagespeedCheck(ctx *Context, name string, id IDInput, state *PagespeedCheckState, opts ...ResourceOption) (*PagespeedCheck, error)
public static PagespeedCheck Get(string name, Input<string> id, PagespeedCheckState? state, CustomResourceOptions? opts = null)
public static PagespeedCheck get(String name, Output<String> id, PagespeedCheckState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Alert
Config Pulumiverse.Statuscake. Inputs. Pagespeed Check Alert Config - Alert configuration block. Omitting this block disabled all alerts
- Check
Interval int - Number of seconds between checks
- Contact
Groups List<string> - List of contact group IDs
- Location string
- Assigned monitoring location on which checks will be run
- Monitored
Resource Pulumiverse.Statuscake. Inputs. Pagespeed Check Monitored Resource - Monitored resource configuration block. The describes server under test
- Name string
- Name of the check
- Paused bool
- Whether the check should be run
- Region string
- Region on which to run checks
- Alert
Config PagespeedCheck Alert Config Args - Alert configuration block. Omitting this block disabled all alerts
- Check
Interval int - Number of seconds between checks
- Contact
Groups []string - List of contact group IDs
- Location string
- Assigned monitoring location on which checks will be run
- Monitored
Resource PagespeedCheck Monitored Resource Args - Monitored resource configuration block. The describes server under test
- Name string
- Name of the check
- Paused bool
- Whether the check should be run
- Region string
- Region on which to run checks
- alert
Config PagespeedCheck Alert Config - Alert configuration block. Omitting this block disabled all alerts
- check
Interval Integer - Number of seconds between checks
- contact
Groups List<String> - List of contact group IDs
- location String
- Assigned monitoring location on which checks will be run
- monitored
Resource PagespeedCheck Monitored Resource - Monitored resource configuration block. The describes server under test
- name String
- Name of the check
- paused Boolean
- Whether the check should be run
- region String
- Region on which to run checks
- alert
Config PagespeedCheck Alert Config - Alert configuration block. Omitting this block disabled all alerts
- check
Interval number - Number of seconds between checks
- contact
Groups string[] - List of contact group IDs
- location string
- Assigned monitoring location on which checks will be run
- monitored
Resource PagespeedCheck Monitored Resource - Monitored resource configuration block. The describes server under test
- name string
- Name of the check
- paused boolean
- Whether the check should be run
- region string
- Region on which to run checks
- alert_
config PagespeedCheck Alert Config Args - Alert configuration block. Omitting this block disabled all alerts
- check_
interval int - Number of seconds between checks
- contact_
groups Sequence[str] - List of contact group IDs
- location str
- Assigned monitoring location on which checks will be run
- monitored_
resource PagespeedCheck Monitored Resource Args - Monitored resource configuration block. The describes server under test
- name str
- Name of the check
- paused bool
- Whether the check should be run
- region str
- Region on which to run checks
- alert
Config Property Map - Alert configuration block. Omitting this block disabled all alerts
- check
Interval Number - Number of seconds between checks
- contact
Groups List<String> - List of contact group IDs
- location String
- Assigned monitoring location on which checks will be run
- monitored
Resource Property Map - Monitored resource configuration block. The describes server under test
- name String
- Name of the check
- paused Boolean
- Whether the check should be run
- region String
- Region on which to run checks
Supporting Types
PagespeedCheckAlertConfig, PagespeedCheckAlertConfigArgs
- Alert
Bigger int - Alert
Slower int - Alert
Smaller int
- Alert
Bigger int - Alert
Slower int - Alert
Smaller int
- alert
Bigger Integer - alert
Slower Integer - alert
Smaller Integer
- alert
Bigger number - alert
Slower number - alert
Smaller number
- alert_
bigger int - alert_
slower int - alert_
smaller int
- alert
Bigger Number - alert
Slower Number - alert
Smaller Number
PagespeedCheckMonitoredResource, PagespeedCheckMonitoredResourceArgs
- Address string
- Address string
- address String
- address string
- address str
- address String
Package Details
- Repository
- statuscake pulumiverse/pulumi-statuscake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
statuscake
Terraform Provider.