dynatrace.ServiceHttpFailure
Explore with Pulumi AI
Create ServiceHttpFailure Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServiceHttpFailure(name: string, args: ServiceHttpFailureArgs, opts?: CustomResourceOptions);
@overload
def ServiceHttpFailure(resource_name: str,
args: ServiceHttpFailureArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ServiceHttpFailure(resource_name: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
service_id: Optional[str] = None,
broken_links: Optional[ServiceHttpFailureBrokenLinksArgs] = None,
http_response_codes: Optional[ServiceHttpFailureHttpResponseCodesArgs] = None)
func NewServiceHttpFailure(ctx *Context, name string, args ServiceHttpFailureArgs, opts ...ResourceOption) (*ServiceHttpFailure, error)
public ServiceHttpFailure(string name, ServiceHttpFailureArgs args, CustomResourceOptions? opts = null)
public ServiceHttpFailure(String name, ServiceHttpFailureArgs args)
public ServiceHttpFailure(String name, ServiceHttpFailureArgs args, CustomResourceOptions options)
type: dynatrace:ServiceHttpFailure
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 ServiceHttpFailureArgs
- 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 ServiceHttpFailureArgs
- 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 ServiceHttpFailureArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceHttpFailureArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServiceHttpFailureArgs
- 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 serviceHttpFailureResource = new Dynatrace.ServiceHttpFailure("serviceHttpFailureResource", new()
{
Enabled = false,
ServiceId = "string",
BrokenLinks = new Dynatrace.Inputs.ServiceHttpFailureBrokenLinksArgs
{
Http404NotFoundFailures = false,
BrokenLinkDomains = new[]
{
"string",
},
},
HttpResponseCodes = new Dynatrace.Inputs.ServiceHttpFailureHttpResponseCodesArgs
{
ClientSideErrors = "string",
FailOnMissingResponseCodeClientSide = false,
FailOnMissingResponseCodeServerSide = false,
ServerSideErrors = "string",
},
});
example, err := dynatrace.NewServiceHttpFailure(ctx, "serviceHttpFailureResource", &dynatrace.ServiceHttpFailureArgs{
Enabled: pulumi.Bool(false),
ServiceId: pulumi.String("string"),
BrokenLinks: &dynatrace.ServiceHttpFailureBrokenLinksArgs{
Http404NotFoundFailures: pulumi.Bool(false),
BrokenLinkDomains: pulumi.StringArray{
pulumi.String("string"),
},
},
HttpResponseCodes: &dynatrace.ServiceHttpFailureHttpResponseCodesArgs{
ClientSideErrors: pulumi.String("string"),
FailOnMissingResponseCodeClientSide: pulumi.Bool(false),
FailOnMissingResponseCodeServerSide: pulumi.Bool(false),
ServerSideErrors: pulumi.String("string"),
},
})
var serviceHttpFailureResource = new ServiceHttpFailure("serviceHttpFailureResource", ServiceHttpFailureArgs.builder()
.enabled(false)
.serviceId("string")
.brokenLinks(ServiceHttpFailureBrokenLinksArgs.builder()
.http404NotFoundFailures(false)
.brokenLinkDomains("string")
.build())
.httpResponseCodes(ServiceHttpFailureHttpResponseCodesArgs.builder()
.clientSideErrors("string")
.failOnMissingResponseCodeClientSide(false)
.failOnMissingResponseCodeServerSide(false)
.serverSideErrors("string")
.build())
.build());
service_http_failure_resource = dynatrace.ServiceHttpFailure("serviceHttpFailureResource",
enabled=False,
service_id="string",
broken_links={
"http404_not_found_failures": False,
"broken_link_domains": ["string"],
},
http_response_codes={
"client_side_errors": "string",
"fail_on_missing_response_code_client_side": False,
"fail_on_missing_response_code_server_side": False,
"server_side_errors": "string",
})
const serviceHttpFailureResource = new dynatrace.ServiceHttpFailure("serviceHttpFailureResource", {
enabled: false,
serviceId: "string",
brokenLinks: {
http404NotFoundFailures: false,
brokenLinkDomains: ["string"],
},
httpResponseCodes: {
clientSideErrors: "string",
failOnMissingResponseCodeClientSide: false,
failOnMissingResponseCodeServerSide: false,
serverSideErrors: "string",
},
});
type: dynatrace:ServiceHttpFailure
properties:
brokenLinks:
brokenLinkDomains:
- string
http404NotFoundFailures: false
enabled: false
httpResponseCodes:
clientSideErrors: string
failOnMissingResponseCodeClientSide: false
failOnMissingResponseCodeServerSide: false
serverSideErrors: string
serviceId: string
ServiceHttpFailure Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ServiceHttpFailure resource accepts the following input properties:
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Service
Id string - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- Broken
Links Pulumiverse.Dynatrace. Inputs. Service Http Failure Broken Links - HTTP 404 response codes are thrown when a web server can't find a certain page. 404s are classified as broken links on the client side and therefore aren't considered to be service failures. By enabling this setting, you can have 404s treated as server-side service failures.
- Http
Response Pulumiverse.Codes Dynatrace. Inputs. Service Http Failure Http Response Codes - HTTP response codes
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Service
Id string - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- Broken
Links ServiceHttp Failure Broken Links Args - HTTP 404 response codes are thrown when a web server can't find a certain page. 404s are classified as broken links on the client side and therefore aren't considered to be service failures. By enabling this setting, you can have 404s treated as server-side service failures.
- Http
Response ServiceCodes Http Failure Http Response Codes Args - HTTP response codes
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - service
Id String - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- broken
Links ServiceHttp Failure Broken Links - HTTP 404 response codes are thrown when a web server can't find a certain page. 404s are classified as broken links on the client side and therefore aren't considered to be service failures. By enabling this setting, you can have 404s treated as server-side service failures.
- http
Response ServiceCodes Http Failure Http Response Codes - HTTP response codes
- enabled boolean
- This setting is enabled (
true
) or disabled (false
) - service
Id string - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- broken
Links ServiceHttp Failure Broken Links - HTTP 404 response codes are thrown when a web server can't find a certain page. 404s are classified as broken links on the client side and therefore aren't considered to be service failures. By enabling this setting, you can have 404s treated as server-side service failures.
- http
Response ServiceCodes Http Failure Http Response Codes - HTTP response codes
- enabled bool
- This setting is enabled (
true
) or disabled (false
) - service_
id str - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- broken_
links ServiceHttp Failure Broken Links Args - HTTP 404 response codes are thrown when a web server can't find a certain page. 404s are classified as broken links on the client side and therefore aren't considered to be service failures. By enabling this setting, you can have 404s treated as server-side service failures.
- http_
response_ Servicecodes Http Failure Http Response Codes Args - HTTP response codes
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - service
Id String - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- broken
Links Property Map - HTTP 404 response codes are thrown when a web server can't find a certain page. 404s are classified as broken links on the client side and therefore aren't considered to be service failures. By enabling this setting, you can have 404s treated as server-side service failures.
- http
Response Property MapCodes - HTTP response codes
Outputs
All input properties are implicitly available as output properties. Additionally, the ServiceHttpFailure resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ServiceHttpFailure Resource
Get an existing ServiceHttpFailure 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?: ServiceHttpFailureState, opts?: CustomResourceOptions): ServiceHttpFailure
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
broken_links: Optional[ServiceHttpFailureBrokenLinksArgs] = None,
enabled: Optional[bool] = None,
http_response_codes: Optional[ServiceHttpFailureHttpResponseCodesArgs] = None,
service_id: Optional[str] = None) -> ServiceHttpFailure
func GetServiceHttpFailure(ctx *Context, name string, id IDInput, state *ServiceHttpFailureState, opts ...ResourceOption) (*ServiceHttpFailure, error)
public static ServiceHttpFailure Get(string name, Input<string> id, ServiceHttpFailureState? state, CustomResourceOptions? opts = null)
public static ServiceHttpFailure get(String name, Output<String> id, ServiceHttpFailureState 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.
- Broken
Links Pulumiverse.Dynatrace. Inputs. Service Http Failure Broken Links - HTTP 404 response codes are thrown when a web server can't find a certain page. 404s are classified as broken links on the client side and therefore aren't considered to be service failures. By enabling this setting, you can have 404s treated as server-side service failures.
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Http
Response Pulumiverse.Codes Dynatrace. Inputs. Service Http Failure Http Response Codes - HTTP response codes
- Service
Id string - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- Broken
Links ServiceHttp Failure Broken Links Args - HTTP 404 response codes are thrown when a web server can't find a certain page. 404s are classified as broken links on the client side and therefore aren't considered to be service failures. By enabling this setting, you can have 404s treated as server-side service failures.
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Http
Response ServiceCodes Http Failure Http Response Codes Args - HTTP response codes
- Service
Id string - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- broken
Links ServiceHttp Failure Broken Links - HTTP 404 response codes are thrown when a web server can't find a certain page. 404s are classified as broken links on the client side and therefore aren't considered to be service failures. By enabling this setting, you can have 404s treated as server-side service failures.
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - http
Response ServiceCodes Http Failure Http Response Codes - HTTP response codes
- service
Id String - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- broken
Links ServiceHttp Failure Broken Links - HTTP 404 response codes are thrown when a web server can't find a certain page. 404s are classified as broken links on the client side and therefore aren't considered to be service failures. By enabling this setting, you can have 404s treated as server-side service failures.
- enabled boolean
- This setting is enabled (
true
) or disabled (false
) - http
Response ServiceCodes Http Failure Http Response Codes - HTTP response codes
- service
Id string - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- broken_
links ServiceHttp Failure Broken Links Args - HTTP 404 response codes are thrown when a web server can't find a certain page. 404s are classified as broken links on the client side and therefore aren't considered to be service failures. By enabling this setting, you can have 404s treated as server-side service failures.
- enabled bool
- This setting is enabled (
true
) or disabled (false
) - http_
response_ Servicecodes Http Failure Http Response Codes Args - HTTP response codes
- service_
id str - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- broken
Links Property Map - HTTP 404 response codes are thrown when a web server can't find a certain page. 404s are classified as broken links on the client side and therefore aren't considered to be service failures. By enabling this setting, you can have 404s treated as server-side service failures.
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - http
Response Property MapCodes - HTTP response codes
- service
Id String - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
Supporting Types
ServiceHttpFailureBrokenLinks, ServiceHttpFailureBrokenLinksArgs
- Http404Not
Found boolFailures - Consider 404 HTTP response codes as failures
- Broken
Link List<string>Domains - If your application relies on other hosts at other domains, add the associated domain names here. Once configured, Dynatrace will consider 404s thrown by hosts at these domains to be service failures related to your application.
- Http404Not
Found boolFailures - Consider 404 HTTP response codes as failures
- Broken
Link []stringDomains - If your application relies on other hosts at other domains, add the associated domain names here. Once configured, Dynatrace will consider 404s thrown by hosts at these domains to be service failures related to your application.
- http404Not
Found BooleanFailures - Consider 404 HTTP response codes as failures
- broken
Link List<String>Domains - If your application relies on other hosts at other domains, add the associated domain names here. Once configured, Dynatrace will consider 404s thrown by hosts at these domains to be service failures related to your application.
- http404Not
Found booleanFailures - Consider 404 HTTP response codes as failures
- broken
Link string[]Domains - If your application relies on other hosts at other domains, add the associated domain names here. Once configured, Dynatrace will consider 404s thrown by hosts at these domains to be service failures related to your application.
- http404_
not_ boolfound_ failures - Consider 404 HTTP response codes as failures
- broken_
link_ Sequence[str]domains - If your application relies on other hosts at other domains, add the associated domain names here. Once configured, Dynatrace will consider 404s thrown by hosts at these domains to be service failures related to your application.
- http404Not
Found BooleanFailures - Consider 404 HTTP response codes as failures
- broken
Link List<String>Domains - If your application relies on other hosts at other domains, add the associated domain names here. Once configured, Dynatrace will consider 404s thrown by hosts at these domains to be service failures related to your application.
ServiceHttpFailureHttpResponseCodes, ServiceHttpFailureHttpResponseCodesArgs
- Client
Side stringErrors - HTTP response codes which indicate client side errors
- Fail
On boolMissing Response Code Client Side - Treat missing HTTP response code as client side error
- Fail
On boolMissing Response Code Server Side - Treat missing HTTP response code as server side errors
- Server
Side stringErrors - HTTP response codes which indicate an error on the server side
- Client
Side stringErrors - HTTP response codes which indicate client side errors
- Fail
On boolMissing Response Code Client Side - Treat missing HTTP response code as client side error
- Fail
On boolMissing Response Code Server Side - Treat missing HTTP response code as server side errors
- Server
Side stringErrors - HTTP response codes which indicate an error on the server side
- client
Side StringErrors - HTTP response codes which indicate client side errors
- fail
On BooleanMissing Response Code Client Side - Treat missing HTTP response code as client side error
- fail
On BooleanMissing Response Code Server Side - Treat missing HTTP response code as server side errors
- server
Side StringErrors - HTTP response codes which indicate an error on the server side
- client
Side stringErrors - HTTP response codes which indicate client side errors
- fail
On booleanMissing Response Code Client Side - Treat missing HTTP response code as client side error
- fail
On booleanMissing Response Code Server Side - Treat missing HTTP response code as server side errors
- server
Side stringErrors - HTTP response codes which indicate an error on the server side
- client_
side_ strerrors - HTTP response codes which indicate client side errors
- fail_
on_ boolmissing_ response_ code_ client_ side - Treat missing HTTP response code as client side error
- fail_
on_ boolmissing_ response_ code_ server_ side - Treat missing HTTP response code as server side errors
- server_
side_ strerrors - HTTP response codes which indicate an error on the server side
- client
Side StringErrors - HTTP response codes which indicate client side errors
- fail
On BooleanMissing Response Code Client Side - Treat missing HTTP response code as client side error
- fail
On BooleanMissing Response Code Server Side - Treat missing HTTP response code as server side errors
- server
Side StringErrors - HTTP response codes which indicate an error on the server side
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatrace
Terraform Provider.