generated from pulumi/pulumi-tf-provider-boilerplate
/
getFleetPerformanceTuningAnalysisResult.go
234 lines (202 loc) · 10.9 KB
/
getFleetPerformanceTuningAnalysisResult.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package jms
import (
"context"
"reflect"
"github.com/pulumi/pulumi-oci/sdk/go/oci/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// This data source provides details about a specific Fleet Performance Tuning Analysis Result resource in Oracle Cloud Infrastructure Jms service.
//
// Retrieve metadata of the Performance Tuning Analysis result.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-oci/sdk/go/oci/Jms"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := Jms.GetFleetPerformanceTuningAnalysisResult(ctx, &jms.GetFleetPerformanceTuningAnalysisResultArgs{
// FleetId: testFleet.Id,
// PerformanceTuningAnalysisResultId: testResult.Id,
// }, nil)
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
func GetFleetPerformanceTuningAnalysisResult(ctx *pulumi.Context, args *GetFleetPerformanceTuningAnalysisResultArgs, opts ...pulumi.InvokeOption) (*GetFleetPerformanceTuningAnalysisResultResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv GetFleetPerformanceTuningAnalysisResultResult
err := ctx.Invoke("oci:Jms/getFleetPerformanceTuningAnalysisResult:getFleetPerformanceTuningAnalysisResult", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getFleetPerformanceTuningAnalysisResult.
type GetFleetPerformanceTuningAnalysisResultArgs struct {
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Fleet.
FleetId string `pulumi:"fleetId"`
// The OCID of the performance tuning analysis result.
PerformanceTuningAnalysisResultId string `pulumi:"performanceTuningAnalysisResultId"`
}
// A collection of values returned by getFleetPerformanceTuningAnalysisResult.
type GetFleetPerformanceTuningAnalysisResultResult struct {
// The OCID of the application for which the report has been generated.
ApplicationId string `pulumi:"applicationId"`
// The internal identifier of the application installation for which the report has been generated.
ApplicationInstallationId string `pulumi:"applicationInstallationId"`
// The installation path of the application for which the report has been generated.
ApplicationInstallationPath string `pulumi:"applicationInstallationPath"`
// The name of the application for which the report has been generated.
ApplicationName string `pulumi:"applicationName"`
// The Object Storage bucket name of this analysis result.
Bucket string `pulumi:"bucket"`
// The fleet OCID.
FleetId string `pulumi:"fleetId"`
// The hostname of the managed instance.
HostName string `pulumi:"hostName"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// The managed instance OCID.
ManagedInstanceId string `pulumi:"managedInstanceId"`
// The Object Storage namespace of this analysis result.
Namespace string `pulumi:"namespace"`
// The Object Storage object name of this analysis result.
Object string `pulumi:"object"`
PerformanceTuningAnalysisResultId string `pulumi:"performanceTuningAnalysisResultId"`
// Result of the analysis based on whether warnings have been found or not.
Result string `pulumi:"result"`
// The time the result is compiled.
TimeCreated string `pulumi:"timeCreated"`
// The time the JFR capture finished.
TimeFinished string `pulumi:"timeFinished"`
// The time the JFR capture started.
TimeStarted string `pulumi:"timeStarted"`
// Total number of warnings reported by the analysis.
WarningCount int `pulumi:"warningCount"`
// The OCID of the work request to start the analysis.
WorkRequestId string `pulumi:"workRequestId"`
}
func GetFleetPerformanceTuningAnalysisResultOutput(ctx *pulumi.Context, args GetFleetPerformanceTuningAnalysisResultOutputArgs, opts ...pulumi.InvokeOption) GetFleetPerformanceTuningAnalysisResultResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (GetFleetPerformanceTuningAnalysisResultResult, error) {
args := v.(GetFleetPerformanceTuningAnalysisResultArgs)
r, err := GetFleetPerformanceTuningAnalysisResult(ctx, &args, opts...)
var s GetFleetPerformanceTuningAnalysisResultResult
if r != nil {
s = *r
}
return s, err
}).(GetFleetPerformanceTuningAnalysisResultResultOutput)
}
// A collection of arguments for invoking getFleetPerformanceTuningAnalysisResult.
type GetFleetPerformanceTuningAnalysisResultOutputArgs struct {
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Fleet.
FleetId pulumi.StringInput `pulumi:"fleetId"`
// The OCID of the performance tuning analysis result.
PerformanceTuningAnalysisResultId pulumi.StringInput `pulumi:"performanceTuningAnalysisResultId"`
}
func (GetFleetPerformanceTuningAnalysisResultOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetFleetPerformanceTuningAnalysisResultArgs)(nil)).Elem()
}
// A collection of values returned by getFleetPerformanceTuningAnalysisResult.
type GetFleetPerformanceTuningAnalysisResultResultOutput struct{ *pulumi.OutputState }
func (GetFleetPerformanceTuningAnalysisResultResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetFleetPerformanceTuningAnalysisResultResult)(nil)).Elem()
}
func (o GetFleetPerformanceTuningAnalysisResultResultOutput) ToGetFleetPerformanceTuningAnalysisResultResultOutput() GetFleetPerformanceTuningAnalysisResultResultOutput {
return o
}
func (o GetFleetPerformanceTuningAnalysisResultResultOutput) ToGetFleetPerformanceTuningAnalysisResultResultOutputWithContext(ctx context.Context) GetFleetPerformanceTuningAnalysisResultResultOutput {
return o
}
// The OCID of the application for which the report has been generated.
func (o GetFleetPerformanceTuningAnalysisResultResultOutput) ApplicationId() pulumi.StringOutput {
return o.ApplyT(func(v GetFleetPerformanceTuningAnalysisResultResult) string { return v.ApplicationId }).(pulumi.StringOutput)
}
// The internal identifier of the application installation for which the report has been generated.
func (o GetFleetPerformanceTuningAnalysisResultResultOutput) ApplicationInstallationId() pulumi.StringOutput {
return o.ApplyT(func(v GetFleetPerformanceTuningAnalysisResultResult) string { return v.ApplicationInstallationId }).(pulumi.StringOutput)
}
// The installation path of the application for which the report has been generated.
func (o GetFleetPerformanceTuningAnalysisResultResultOutput) ApplicationInstallationPath() pulumi.StringOutput {
return o.ApplyT(func(v GetFleetPerformanceTuningAnalysisResultResult) string { return v.ApplicationInstallationPath }).(pulumi.StringOutput)
}
// The name of the application for which the report has been generated.
func (o GetFleetPerformanceTuningAnalysisResultResultOutput) ApplicationName() pulumi.StringOutput {
return o.ApplyT(func(v GetFleetPerformanceTuningAnalysisResultResult) string { return v.ApplicationName }).(pulumi.StringOutput)
}
// The Object Storage bucket name of this analysis result.
func (o GetFleetPerformanceTuningAnalysisResultResultOutput) Bucket() pulumi.StringOutput {
return o.ApplyT(func(v GetFleetPerformanceTuningAnalysisResultResult) string { return v.Bucket }).(pulumi.StringOutput)
}
// The fleet OCID.
func (o GetFleetPerformanceTuningAnalysisResultResultOutput) FleetId() pulumi.StringOutput {
return o.ApplyT(func(v GetFleetPerformanceTuningAnalysisResultResult) string { return v.FleetId }).(pulumi.StringOutput)
}
// The hostname of the managed instance.
func (o GetFleetPerformanceTuningAnalysisResultResultOutput) HostName() pulumi.StringOutput {
return o.ApplyT(func(v GetFleetPerformanceTuningAnalysisResultResult) string { return v.HostName }).(pulumi.StringOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o GetFleetPerformanceTuningAnalysisResultResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v GetFleetPerformanceTuningAnalysisResultResult) string { return v.Id }).(pulumi.StringOutput)
}
// The managed instance OCID.
func (o GetFleetPerformanceTuningAnalysisResultResultOutput) ManagedInstanceId() pulumi.StringOutput {
return o.ApplyT(func(v GetFleetPerformanceTuningAnalysisResultResult) string { return v.ManagedInstanceId }).(pulumi.StringOutput)
}
// The Object Storage namespace of this analysis result.
func (o GetFleetPerformanceTuningAnalysisResultResultOutput) Namespace() pulumi.StringOutput {
return o.ApplyT(func(v GetFleetPerformanceTuningAnalysisResultResult) string { return v.Namespace }).(pulumi.StringOutput)
}
// The Object Storage object name of this analysis result.
func (o GetFleetPerformanceTuningAnalysisResultResultOutput) Object() pulumi.StringOutput {
return o.ApplyT(func(v GetFleetPerformanceTuningAnalysisResultResult) string { return v.Object }).(pulumi.StringOutput)
}
func (o GetFleetPerformanceTuningAnalysisResultResultOutput) PerformanceTuningAnalysisResultId() pulumi.StringOutput {
return o.ApplyT(func(v GetFleetPerformanceTuningAnalysisResultResult) string {
return v.PerformanceTuningAnalysisResultId
}).(pulumi.StringOutput)
}
// Result of the analysis based on whether warnings have been found or not.
func (o GetFleetPerformanceTuningAnalysisResultResultOutput) Result() pulumi.StringOutput {
return o.ApplyT(func(v GetFleetPerformanceTuningAnalysisResultResult) string { return v.Result }).(pulumi.StringOutput)
}
// The time the result is compiled.
func (o GetFleetPerformanceTuningAnalysisResultResultOutput) TimeCreated() pulumi.StringOutput {
return o.ApplyT(func(v GetFleetPerformanceTuningAnalysisResultResult) string { return v.TimeCreated }).(pulumi.StringOutput)
}
// The time the JFR capture finished.
func (o GetFleetPerformanceTuningAnalysisResultResultOutput) TimeFinished() pulumi.StringOutput {
return o.ApplyT(func(v GetFleetPerformanceTuningAnalysisResultResult) string { return v.TimeFinished }).(pulumi.StringOutput)
}
// The time the JFR capture started.
func (o GetFleetPerformanceTuningAnalysisResultResultOutput) TimeStarted() pulumi.StringOutput {
return o.ApplyT(func(v GetFleetPerformanceTuningAnalysisResultResult) string { return v.TimeStarted }).(pulumi.StringOutput)
}
// Total number of warnings reported by the analysis.
func (o GetFleetPerformanceTuningAnalysisResultResultOutput) WarningCount() pulumi.IntOutput {
return o.ApplyT(func(v GetFleetPerformanceTuningAnalysisResultResult) int { return v.WarningCount }).(pulumi.IntOutput)
}
// The OCID of the work request to start the analysis.
func (o GetFleetPerformanceTuningAnalysisResultResultOutput) WorkRequestId() pulumi.StringOutput {
return o.ApplyT(func(v GetFleetPerformanceTuningAnalysisResultResult) string { return v.WorkRequestId }).(pulumi.StringOutput)
}
func init() {
pulumi.RegisterOutputType(GetFleetPerformanceTuningAnalysisResultResultOutput{})
}