oci.ApmSynthetics.getResult
Explore with Pulumi AI
This data source provides details about a specific Result resource in Oracle Cloud Infrastructure Apm Synthetics service.
Gets the results for a specific execution of a monitor identified by OCID. The results are in a HAR file, Screenshot, Console Log or Network details.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testResult = Oci.ApmSynthetics.GetResult.Invoke(new()
{
ApmDomainId = oci_apm_synthetics_apm_domain.Test_apm_domain.Id,
ExecutionTime = @var.Result_execution_time,
MonitorId = oci_apm_synthetics_monitor.Test_monitor.Id,
ResultContentType = @var.Result_result_content_type,
ResultType = @var.Result_result_type,
VantagePoint = @var.Result_vantage_point,
});
});
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/ApmSynthetics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ApmSynthetics.GetResult(ctx, &apmsynthetics.GetResultArgs{
ApmDomainId: oci_apm_synthetics_apm_domain.Test_apm_domain.Id,
ExecutionTime: _var.Result_execution_time,
MonitorId: oci_apm_synthetics_monitor.Test_monitor.Id,
ResultContentType: _var.Result_result_content_type,
ResultType: _var.Result_result_type,
VantagePoint: _var.Result_vantage_point,
}, nil)
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.oci.ApmSynthetics.ApmSyntheticsFunctions;
import com.pulumi.oci.ApmSynthetics.inputs.GetResultArgs;
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) {
final var testResult = ApmSyntheticsFunctions.getResult(GetResultArgs.builder()
.apmDomainId(oci_apm_synthetics_apm_domain.test_apm_domain().id())
.executionTime(var_.result_execution_time())
.monitorId(oci_apm_synthetics_monitor.test_monitor().id())
.resultContentType(var_.result_result_content_type())
.resultType(var_.result_result_type())
.vantagePoint(var_.result_vantage_point())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_result = oci.ApmSynthetics.get_result(apm_domain_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
execution_time=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
monitor_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
result_content_type=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
result_type=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
vantage_point=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testResult = oci.ApmSynthetics.getResult({
apmDomainId: oci_apm_synthetics_apm_domain.test_apm_domain.id,
executionTime: _var.result_execution_time,
monitorId: oci_apm_synthetics_monitor.test_monitor.id,
resultContentType: _var.result_result_content_type,
resultType: _var.result_result_type,
vantagePoint: _var.result_vantage_point,
});
variables:
testResult:
fn::invoke:
Function: oci:ApmSynthetics:getResult
Arguments:
apmDomainId: ${oci_apm_synthetics_apm_domain.test_apm_domain.id}
executionTime: ${var.result_execution_time}
monitorId: ${oci_apm_synthetics_monitor.test_monitor.id}
resultContentType: ${var.result_result_content_type}
resultType: ${var.result_result_type}
vantagePoint: ${var.result_vantage_point}
Using getResult
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getResult(args: GetResultArgs, opts?: InvokeOptions): Promise<GetResultResult>
function getResultOutput(args: GetResultOutputArgs, opts?: InvokeOptions): Output<GetResultResult>
def get_result(apm_domain_id: Optional[str] = None,
execution_time: Optional[str] = None,
monitor_id: Optional[str] = None,
result_content_type: Optional[str] = None,
result_type: Optional[str] = None,
vantage_point: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetResultResult
def get_result_output(apm_domain_id: Optional[pulumi.Input[str]] = None,
execution_time: Optional[pulumi.Input[str]] = None,
monitor_id: Optional[pulumi.Input[str]] = None,
result_content_type: Optional[pulumi.Input[str]] = None,
result_type: Optional[pulumi.Input[str]] = None,
vantage_point: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetResultResult]
func GetResult(ctx *Context, args *GetResultArgs, opts ...InvokeOption) (*GetResultResult, error)
func GetResultOutput(ctx *Context, args *GetResultOutputArgs, opts ...InvokeOption) GetResultResultOutput
> Note: This function is named GetResult
in the Go SDK.
public static class GetResult
{
public static Task<GetResultResult> InvokeAsync(GetResultArgs args, InvokeOptions? opts = null)
public static Output<GetResultResult> Invoke(GetResultInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetResultResult> getResult(GetResultArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:ApmSynthetics/getResult:getResult
arguments:
# arguments dictionary
The following arguments are supported:
- Apm
Domain stringId The APM domain ID the request is intended for.
- Execution
Time string The time the object was posted.
- Monitor
Id string The OCID of the monitor.
- Result
Content stringType The result content type: zip or raw.
- Result
Type string The result type: har, screenshot, log, or network.
- Vantage
Point string The vantagePoint name.
- Apm
Domain stringId The APM domain ID the request is intended for.
- Execution
Time string The time the object was posted.
- Monitor
Id string The OCID of the monitor.
- Result
Content stringType The result content type: zip or raw.
- Result
Type string The result type: har, screenshot, log, or network.
- Vantage
Point string The vantagePoint name.
- apm
Domain StringId The APM domain ID the request is intended for.
- execution
Time String The time the object was posted.
- monitor
Id String The OCID of the monitor.
- result
Content StringType The result content type: zip or raw.
- result
Type String The result type: har, screenshot, log, or network.
- vantage
Point String The vantagePoint name.
- apm
Domain stringId The APM domain ID the request is intended for.
- execution
Time string The time the object was posted.
- monitor
Id string The OCID of the monitor.
- result
Content stringType The result content type: zip or raw.
- result
Type string The result type: har, screenshot, log, or network.
- vantage
Point string The vantagePoint name.
- apm_
domain_ strid The APM domain ID the request is intended for.
- execution_
time str The time the object was posted.
- monitor_
id str The OCID of the monitor.
- result_
content_ strtype The result content type: zip or raw.
- result_
type str The result type: har, screenshot, log, or network.
- vantage_
point str The vantagePoint name.
- apm
Domain StringId The APM domain ID the request is intended for.
- execution
Time String The time the object was posted.
- monitor
Id String The OCID of the monitor.
- result
Content StringType The result content type: zip or raw.
- result
Type String The result type: har, screenshot, log, or network.
- vantage
Point String The vantagePoint name.
getResult Result
The following output properties are available:
- Apm
Domain stringId - Execution
Time string The specific point of time when the result of an execution is collected.
- Id string
The provider-assigned unique ID for this managed resource.
- Monitor
Id string The OCID of the monitor.
- Result
Content stringType Type of result content. Example: Zip or Raw file.
- Result
Data List<GetSets Result Result Data Set> Monitor result data set.
- Result
Type string Type of result. Example: HAR, Screenshot, Log or Network.
- Vantage
Point string The name of the public or dedicated vantage point.
- Apm
Domain stringId - Execution
Time string The specific point of time when the result of an execution is collected.
- Id string
The provider-assigned unique ID for this managed resource.
- Monitor
Id string The OCID of the monitor.
- Result
Content stringType Type of result content. Example: Zip or Raw file.
- Result
Data []GetSets Result Result Data Set Monitor result data set.
- Result
Type string Type of result. Example: HAR, Screenshot, Log or Network.
- Vantage
Point string The name of the public or dedicated vantage point.
- apm
Domain StringId - execution
Time String The specific point of time when the result of an execution is collected.
- id String
The provider-assigned unique ID for this managed resource.
- monitor
Id String The OCID of the monitor.
- result
Content StringType Type of result content. Example: Zip or Raw file.
- result
Data List<GetSets Result Result Data Set> Monitor result data set.
- result
Type String Type of result. Example: HAR, Screenshot, Log or Network.
- vantage
Point String The name of the public or dedicated vantage point.
- apm
Domain stringId - execution
Time string The specific point of time when the result of an execution is collected.
- id string
The provider-assigned unique ID for this managed resource.
- monitor
Id string The OCID of the monitor.
- result
Content stringType Type of result content. Example: Zip or Raw file.
- result
Data GetSets Result Result Data Set[] Monitor result data set.
- result
Type string Type of result. Example: HAR, Screenshot, Log or Network.
- vantage
Point string The name of the public or dedicated vantage point.
- apm_
domain_ strid - execution_
time str The specific point of time when the result of an execution is collected.
- id str
The provider-assigned unique ID for this managed resource.
- monitor_
id str The OCID of the monitor.
- result_
content_ strtype Type of result content. Example: Zip or Raw file.
- result_
data_ Getsets Result Result Data Set] Monitor result data set.
- result_
type str Type of result. Example: HAR, Screenshot, Log or Network.
- vantage_
point str The name of the public or dedicated vantage point.
- apm
Domain StringId - execution
Time String The specific point of time when the result of an execution is collected.
- id String
The provider-assigned unique ID for this managed resource.
- monitor
Id String The OCID of the monitor.
- result
Content StringType Type of result content. Example: Zip or Raw file.
- result
Data List<Property Map>Sets Monitor result data set.
- result
Type String Type of result. Example: HAR, Screenshot, Log or Network.
- vantage
Point String The name of the public or dedicated vantage point.
Supporting Types
GetResultResultDataSet
- Byte
Content string Data content in byte format. Example: Zip or Screenshot.
- Name string
Name of the data.
- String
Content string Data content in string format. Example: HAR.
- Timestamp string
The time when the data was generated, expressed in RFC 3339 timestamp format. Example:
2020-02-13T22:47:12.613Z
- Byte
Content string Data content in byte format. Example: Zip or Screenshot.
- Name string
Name of the data.
- String
Content string Data content in string format. Example: HAR.
- Timestamp string
The time when the data was generated, expressed in RFC 3339 timestamp format. Example:
2020-02-13T22:47:12.613Z
- byte
Content String Data content in byte format. Example: Zip or Screenshot.
- name String
Name of the data.
- string
Content String Data content in string format. Example: HAR.
- timestamp String
The time when the data was generated, expressed in RFC 3339 timestamp format. Example:
2020-02-13T22:47:12.613Z
- byte
Content string Data content in byte format. Example: Zip or Screenshot.
- name string
Name of the data.
- string
Content string Data content in string format. Example: HAR.
- timestamp string
The time when the data was generated, expressed in RFC 3339 timestamp format. Example:
2020-02-13T22:47:12.613Z
- byte_
content str Data content in byte format. Example: Zip or Screenshot.
- name str
Name of the data.
- string_
content str Data content in string format. Example: HAR.
- timestamp str
The time when the data was generated, expressed in RFC 3339 timestamp format. Example:
2020-02-13T22:47:12.613Z
- byte
Content String Data content in byte format. Example: Zip or Screenshot.
- name String
Name of the data.
- string
Content String Data content in string format. Example: HAR.
- timestamp String
The time when the data was generated, expressed in RFC 3339 timestamp format. Example:
2020-02-13T22:47:12.613Z
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.