coralogix.ArchiveMetrics
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as coralogix from "@pulumi/coralogix";
const example = new coralogix.ArchiveMetrics("example", {s3: {
bucket: "coralogix-c4c-eu2-prometheus-data",
region: "eu-north-1",
}});
import pulumi
import pulumi_coralogix as coralogix
example = coralogix.ArchiveMetrics("example", s3={
"bucket": "coralogix-c4c-eu2-prometheus-data",
"region": "eu-north-1",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/coralogix/v2/coralogix"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := coralogix.NewArchiveMetrics(ctx, "example", &coralogix.ArchiveMetricsArgs{
S3: &coralogix.ArchiveMetricsS3Args{
Bucket: pulumi.String("coralogix-c4c-eu2-prometheus-data"),
Region: pulumi.String("eu-north-1"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Coralogix = Pulumi.Coralogix;
return await Deployment.RunAsync(() =>
{
var example = new Coralogix.ArchiveMetrics("example", new()
{
S3 = new Coralogix.Inputs.ArchiveMetricsS3Args
{
Bucket = "coralogix-c4c-eu2-prometheus-data",
Region = "eu-north-1",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.coralogix.ArchiveMetrics;
import com.pulumi.coralogix.ArchiveMetricsArgs;
import com.pulumi.coralogix.inputs.ArchiveMetricsS3Args;
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) {
var example = new ArchiveMetrics("example", ArchiveMetricsArgs.builder()
.s3(ArchiveMetricsS3Args.builder()
.bucket("coralogix-c4c-eu2-prometheus-data")
.region("eu-north-1")
.build())
.build());
}
}
resources:
example:
type: coralogix:ArchiveMetrics
properties:
s3:
bucket: coralogix-c4c-eu2-prometheus-data
region: eu-north-1
Create ArchiveMetrics Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ArchiveMetrics(name: string, args?: ArchiveMetricsArgs, opts?: CustomResourceOptions);
@overload
def ArchiveMetrics(resource_name: str,
args: Optional[ArchiveMetricsArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ArchiveMetrics(resource_name: str,
opts: Optional[ResourceOptions] = None,
ibm: Optional[ArchiveMetricsIbmArgs] = None,
retention_policy: Optional[ArchiveMetricsRetentionPolicyArgs] = None,
s3: Optional[ArchiveMetricsS3Args] = None)
func NewArchiveMetrics(ctx *Context, name string, args *ArchiveMetricsArgs, opts ...ResourceOption) (*ArchiveMetrics, error)
public ArchiveMetrics(string name, ArchiveMetricsArgs? args = null, CustomResourceOptions? opts = null)
public ArchiveMetrics(String name, ArchiveMetricsArgs args)
public ArchiveMetrics(String name, ArchiveMetricsArgs args, CustomResourceOptions options)
type: coralogix:ArchiveMetrics
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 ArchiveMetricsArgs
- 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 ArchiveMetricsArgs
- 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 ArchiveMetricsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ArchiveMetricsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ArchiveMetricsArgs
- 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 archiveMetricsResource = new Coralogix.ArchiveMetrics("archiveMetricsResource", new()
{
Ibm = new Coralogix.Inputs.ArchiveMetricsIbmArgs
{
Crn = "string",
Endpoint = "string",
},
RetentionPolicy = new Coralogix.Inputs.ArchiveMetricsRetentionPolicyArgs
{
FiveMinutesResolution = 0,
OneHourResolution = 0,
RawResolution = 0,
},
S3 = new Coralogix.Inputs.ArchiveMetricsS3Args
{
Bucket = "string",
Region = "string",
},
});
example, err := coralogix.NewArchiveMetrics(ctx, "archiveMetricsResource", &coralogix.ArchiveMetricsArgs{
Ibm: &coralogix.ArchiveMetricsIbmArgs{
Crn: pulumi.String("string"),
Endpoint: pulumi.String("string"),
},
RetentionPolicy: &coralogix.ArchiveMetricsRetentionPolicyArgs{
FiveMinutesResolution: pulumi.Float64(0),
OneHourResolution: pulumi.Float64(0),
RawResolution: pulumi.Float64(0),
},
S3: &coralogix.ArchiveMetricsS3Args{
Bucket: pulumi.String("string"),
Region: pulumi.String("string"),
},
})
var archiveMetricsResource = new ArchiveMetrics("archiveMetricsResource", ArchiveMetricsArgs.builder()
.ibm(ArchiveMetricsIbmArgs.builder()
.crn("string")
.endpoint("string")
.build())
.retentionPolicy(ArchiveMetricsRetentionPolicyArgs.builder()
.fiveMinutesResolution(0)
.oneHourResolution(0)
.rawResolution(0)
.build())
.s3(ArchiveMetricsS3Args.builder()
.bucket("string")
.region("string")
.build())
.build());
archive_metrics_resource = coralogix.ArchiveMetrics("archiveMetricsResource",
ibm={
"crn": "string",
"endpoint": "string",
},
retention_policy={
"five_minutes_resolution": 0,
"one_hour_resolution": 0,
"raw_resolution": 0,
},
s3={
"bucket": "string",
"region": "string",
})
const archiveMetricsResource = new coralogix.ArchiveMetrics("archiveMetricsResource", {
ibm: {
crn: "string",
endpoint: "string",
},
retentionPolicy: {
fiveMinutesResolution: 0,
oneHourResolution: 0,
rawResolution: 0,
},
s3: {
bucket: "string",
region: "string",
},
});
type: coralogix:ArchiveMetrics
properties:
ibm:
crn: string
endpoint: string
retentionPolicy:
fiveMinutesResolution: 0
oneHourResolution: 0
rawResolution: 0
s3:
bucket: string
region: string
ArchiveMetrics 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 ArchiveMetrics resource accepts the following input properties:
- Ibm
Archive
Metrics Ibm - Retention
Policy ArchiveMetrics Retention Policy - The retention policy (in days) for the archived metrics. Having default values when not specified.
- S3
Archive
Metrics S3
- Ibm
Archive
Metrics Ibm Args - Retention
Policy ArchiveMetrics Retention Policy Args - The retention policy (in days) for the archived metrics. Having default values when not specified.
- S3
Archive
Metrics S3Args
- ibm
Archive
Metrics Ibm - retention
Policy ArchiveMetrics Retention Policy - The retention policy (in days) for the archived metrics. Having default values when not specified.
- s3
Archive
Metrics S3
- ibm
Archive
Metrics Ibm - retention
Policy ArchiveMetrics Retention Policy - The retention policy (in days) for the archived metrics. Having default values when not specified.
- s3
Archive
Metrics S3
- ibm
Archive
Metrics Ibm Args - retention_
policy ArchiveMetrics Retention Policy Args - The retention policy (in days) for the archived metrics. Having default values when not specified.
- s3
Archive
Metrics S3Args
- ibm Property Map
- retention
Policy Property Map - The retention policy (in days) for the archived metrics. Having default values when not specified.
- s3 Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the ArchiveMetrics resource produces the following output properties:
Look up Existing ArchiveMetrics Resource
Get an existing ArchiveMetrics 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?: ArchiveMetricsState, opts?: CustomResourceOptions): ArchiveMetrics
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ibm: Optional[ArchiveMetricsIbmArgs] = None,
prefix: Optional[str] = None,
retention_policy: Optional[ArchiveMetricsRetentionPolicyArgs] = None,
s3: Optional[ArchiveMetricsS3Args] = None,
tenant_id: Optional[float] = None) -> ArchiveMetrics
func GetArchiveMetrics(ctx *Context, name string, id IDInput, state *ArchiveMetricsState, opts ...ResourceOption) (*ArchiveMetrics, error)
public static ArchiveMetrics Get(string name, Input<string> id, ArchiveMetricsState? state, CustomResourceOptions? opts = null)
public static ArchiveMetrics get(String name, Output<String> id, ArchiveMetricsState state, CustomResourceOptions options)
resources: _: type: coralogix:ArchiveMetrics get: id: ${id}
- 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.
- Ibm
Archive
Metrics Ibm - Prefix string
- Retention
Policy ArchiveMetrics Retention Policy - The retention policy (in days) for the archived metrics. Having default values when not specified.
- S3
Archive
Metrics S3 - Tenant
Id double
- Ibm
Archive
Metrics Ibm Args - Prefix string
- Retention
Policy ArchiveMetrics Retention Policy Args - The retention policy (in days) for the archived metrics. Having default values when not specified.
- S3
Archive
Metrics S3Args - Tenant
Id float64
- ibm
Archive
Metrics Ibm - prefix String
- retention
Policy ArchiveMetrics Retention Policy - The retention policy (in days) for the archived metrics. Having default values when not specified.
- s3
Archive
Metrics S3 - tenant
Id Double
- ibm
Archive
Metrics Ibm - prefix string
- retention
Policy ArchiveMetrics Retention Policy - The retention policy (in days) for the archived metrics. Having default values when not specified.
- s3
Archive
Metrics S3 - tenant
Id number
- ibm
Archive
Metrics Ibm Args - prefix str
- retention_
policy ArchiveMetrics Retention Policy Args - The retention policy (in days) for the archived metrics. Having default values when not specified.
- s3
Archive
Metrics S3Args - tenant_
id float
- ibm Property Map
- prefix String
- retention
Policy Property Map - The retention policy (in days) for the archived metrics. Having default values when not specified.
- s3 Property Map
- tenant
Id Number
Supporting Types
ArchiveMetricsIbm, ArchiveMetricsIbmArgs
ArchiveMetricsRetentionPolicy, ArchiveMetricsRetentionPolicyArgs
- Five
Minutes doubleResolution - One
Hour doubleResolution - Raw
Resolution double
- Five
Minutes float64Resolution - One
Hour float64Resolution - Raw
Resolution float64
- five
Minutes DoubleResolution - one
Hour DoubleResolution - raw
Resolution Double
- five
Minutes numberResolution - one
Hour numberResolution - raw
Resolution number
- five_
minutes_ floatresolution - one_
hour_ floatresolution - raw_
resolution float
- five
Minutes NumberResolution - one
Hour NumberResolution - raw
Resolution Number
ArchiveMetricsS3, ArchiveMetricsS3Args
Package Details
- Repository
- coralogix coralogix/terraform-provider-coralogix
- License
- Notes
- This Pulumi package is based on the
coralogix
Terraform Provider.