logdna.View
Explore with Pulumi AI
# Resource: logdna.View
Manages LogDNA Views as well as View-specific Alerts. These differ from logdna.Alert
which are “preset alerts”, while these are specific to certain views. To get started, specify a name
and one of: apps
, hosts
, levels
, query
or tags
. We currently support configuring these view alerts to be sent via email, webhook, or PagerDuty.
Example - Basic View
import * as pulumi from "@pulumi/pulumi";
import * as logdna from "@pulumi/logdna";
const myView = new logdna.View("myView", {
categories: ["My Category"],
query: "level:debug my query",
});
import pulumi
import pulumi_logdna as logdna
my_view = logdna.View("myView",
categories=["My Category"],
query="level:debug my query")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/logdna/logdna"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := logdna.NewView(ctx, "myView", &logdna.ViewArgs{
Categories: pulumi.StringArray{
pulumi.String("My Category"),
},
Query: pulumi.String("level:debug my query"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Logdna = Pulumi.Logdna;
return await Deployment.RunAsync(() =>
{
var myView = new Logdna.View("myView", new()
{
Categories = new[]
{
"My Category",
},
Query = "level:debug my query",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.logdna.View;
import com.pulumi.logdna.ViewArgs;
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 myView = new View("myView", ViewArgs.builder()
.categories("My Category")
.query("level:debug my query")
.build());
}
}
resources:
myView:
type: logdna:View
properties:
categories:
- My Category
query: level:debug my query
Example - Preset Alert View
import * as pulumi from "@pulumi/pulumi";
import * as logdna from "@pulumi/logdna";
const myAlert = new logdna.Alert("myAlert", {});
const myView = new logdna.View("myView", {
query: "level:debug my query",
categories: ["My Category"],
presetid: myAlert.alertId,
}, {
dependsOn: ["logdna_alert.my_alert"],
});
import pulumi
import pulumi_logdna as logdna
my_alert = logdna.Alert("myAlert")
my_view = logdna.View("myView",
query="level:debug my query",
categories=["My Category"],
presetid=my_alert.alert_id,
opts = pulumi.ResourceOptions(depends_on=["logdna_alert.my_alert"]))
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/logdna/logdna"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
myAlert, err := logdna.NewAlert(ctx, "myAlert", nil)
if err != nil {
return err
}
_, err = logdna.NewView(ctx, "myView", &logdna.ViewArgs{
Query: pulumi.String("level:debug my query"),
Categories: pulumi.StringArray{
pulumi.String("My Category"),
},
Presetid: myAlert.AlertId,
}, pulumi.DependsOn([]pulumi.Resource{
pulumi.Resource("logdna_alert.my_alert"),
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Logdna = Pulumi.Logdna;
return await Deployment.RunAsync(() =>
{
var myAlert = new Logdna.Alert("myAlert");
var myView = new Logdna.View("myView", new()
{
Query = "level:debug my query",
Categories = new[]
{
"My Category",
},
Presetid = myAlert.AlertId,
}, new CustomResourceOptions
{
DependsOn =
{
"logdna_alert.my_alert",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.logdna.Alert;
import com.pulumi.logdna.View;
import com.pulumi.logdna.ViewArgs;
import com.pulumi.resources.CustomResourceOptions;
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 myAlert = new Alert("myAlert");
var myView = new View("myView", ViewArgs.builder()
.query("level:debug my query")
.categories("My Category")
.presetid(myAlert.alertId())
.build(), CustomResourceOptions.builder()
.dependsOn("logdna_alert.my_alert")
.build());
}
}
resources:
myAlert:
type: logdna:Alert
myView:
type: logdna:View
properties:
query: level:debug my query
categories:
- My Category
presetid: ${myAlert.alertId}
options:
dependsOn:
- logdna_alert.my_alert
Example - Multi-channel View
import * as pulumi from "@pulumi/pulumi";
import * as logdna from "@pulumi/logdna";
const myView = new logdna.View("myView", {
apps: [
"app1",
"app2",
],
categories: [
"Demo1",
"Demo2",
],
hosts: ["host1"],
levels: [
"warn",
"error",
],
query: "my query",
tags: [
"tag1",
"tag2",
],
emailChannels: [{
emails: ["test@logdna.com"],
immediate: "false",
operator: "absence",
terminal: "true",
timezone: "Pacific/Samoa",
triggerinterval: "15m",
triggerlimit: 15,
}],
pagerdutyChannels: [{
key: "Your PagerDuty API key goes here",
terminal: "true",
triggerinterval: "15m",
triggerlimit: 15,
}],
webhookChannels: [{
bodytemplate: JSON.stringify({
message: "Alerts from {{name}}",
}),
headers: {
Authentication: "auth_header_value",
HeaderTwo: "ValueTwo",
},
immediate: "false",
method: "post",
terminal: "true",
triggerinterval: "15m",
triggerlimit: 15,
url: "https://yourwebhook/endpoint",
}],
});
import pulumi
import json
import pulumi_logdna as logdna
my_view = logdna.View("myView",
apps=[
"app1",
"app2",
],
categories=[
"Demo1",
"Demo2",
],
hosts=["host1"],
levels=[
"warn",
"error",
],
query="my query",
tags=[
"tag1",
"tag2",
],
email_channels=[{
"emails": ["test@logdna.com"],
"immediate": "false",
"operator": "absence",
"terminal": "true",
"timezone": "Pacific/Samoa",
"triggerinterval": "15m",
"triggerlimit": 15,
}],
pagerduty_channels=[{
"key": "Your PagerDuty API key goes here",
"terminal": "true",
"triggerinterval": "15m",
"triggerlimit": 15,
}],
webhook_channels=[{
"bodytemplate": json.dumps({
"message": "Alerts from {{name}}",
}),
"headers": {
"Authentication": "auth_header_value",
"HeaderTwo": "ValueTwo",
},
"immediate": "false",
"method": "post",
"terminal": "true",
"triggerinterval": "15m",
"triggerlimit": 15,
"url": "https://yourwebhook/endpoint",
}])
package main
import (
"encoding/json"
"github.com/pulumi/pulumi-terraform-provider/sdks/go/logdna/logdna"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
tmpJSON0, err := json.Marshal(map[string]interface{}{
"message": "Alerts from {{name}}",
})
if err != nil {
return err
}
json0 := string(tmpJSON0)
_, err = logdna.NewView(ctx, "myView", &logdna.ViewArgs{
Apps: pulumi.StringArray{
pulumi.String("app1"),
pulumi.String("app2"),
},
Categories: pulumi.StringArray{
pulumi.String("Demo1"),
pulumi.String("Demo2"),
},
Hosts: pulumi.StringArray{
pulumi.String("host1"),
},
Levels: pulumi.StringArray{
pulumi.String("warn"),
pulumi.String("error"),
},
Query: pulumi.String("my query"),
Tags: pulumi.StringArray{
pulumi.String("tag1"),
pulumi.String("tag2"),
},
EmailChannels: logdna.ViewEmailChannelArray{
&logdna.ViewEmailChannelArgs{
Emails: pulumi.StringArray{
pulumi.String("test@logdna.com"),
},
Immediate: pulumi.String("false"),
Operator: pulumi.String("absence"),
Terminal: pulumi.String("true"),
Timezone: pulumi.String("Pacific/Samoa"),
Triggerinterval: pulumi.String("15m"),
Triggerlimit: pulumi.Float64(15),
},
},
PagerdutyChannels: logdna.ViewPagerdutyChannelArray{
&logdna.ViewPagerdutyChannelArgs{
Key: pulumi.String("Your PagerDuty API key goes here"),
Terminal: pulumi.String("true"),
Triggerinterval: pulumi.String("15m"),
Triggerlimit: pulumi.Float64(15),
},
},
WebhookChannels: logdna.ViewWebhookChannelArray{
&logdna.ViewWebhookChannelArgs{
Bodytemplate: pulumi.String(json0),
Headers: pulumi.StringMap{
"Authentication": pulumi.String("auth_header_value"),
"HeaderTwo": pulumi.String("ValueTwo"),
},
Immediate: pulumi.String("false"),
Method: pulumi.String("post"),
Terminal: pulumi.String("true"),
Triggerinterval: pulumi.String("15m"),
Triggerlimit: pulumi.Float64(15),
Url: pulumi.String("https://yourwebhook/endpoint"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using Logdna = Pulumi.Logdna;
return await Deployment.RunAsync(() =>
{
var myView = new Logdna.View("myView", new()
{
Apps = new[]
{
"app1",
"app2",
},
Categories = new[]
{
"Demo1",
"Demo2",
},
Hosts = new[]
{
"host1",
},
Levels = new[]
{
"warn",
"error",
},
Query = "my query",
Tags = new[]
{
"tag1",
"tag2",
},
EmailChannels = new[]
{
new Logdna.Inputs.ViewEmailChannelArgs
{
Emails = new[]
{
"test@logdna.com",
},
Immediate = "false",
Operator = "absence",
Terminal = "true",
Timezone = "Pacific/Samoa",
Triggerinterval = "15m",
Triggerlimit = 15,
},
},
PagerdutyChannels = new[]
{
new Logdna.Inputs.ViewPagerdutyChannelArgs
{
Key = "Your PagerDuty API key goes here",
Terminal = "true",
Triggerinterval = "15m",
Triggerlimit = 15,
},
},
WebhookChannels = new[]
{
new Logdna.Inputs.ViewWebhookChannelArgs
{
Bodytemplate = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["message"] = "Alerts from {{name}}",
}),
Headers =
{
{ "Authentication", "auth_header_value" },
{ "HeaderTwo", "ValueTwo" },
},
Immediate = "false",
Method = "post",
Terminal = "true",
Triggerinterval = "15m",
Triggerlimit = 15,
Url = "https://yourwebhook/endpoint",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.logdna.View;
import com.pulumi.logdna.ViewArgs;
import com.pulumi.logdna.inputs.ViewEmailChannelArgs;
import com.pulumi.logdna.inputs.ViewPagerdutyChannelArgs;
import com.pulumi.logdna.inputs.ViewWebhookChannelArgs;
import static com.pulumi.codegen.internal.Serialization.*;
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 myView = new View("myView", ViewArgs.builder()
.apps(
"app1",
"app2")
.categories(
"Demo1",
"Demo2")
.hosts("host1")
.levels(
"warn",
"error")
.query("my query")
.tags(
"tag1",
"tag2")
.emailChannels(ViewEmailChannelArgs.builder()
.emails("test@logdna.com")
.immediate("false")
.operator("absence")
.terminal("true")
.timezone("Pacific/Samoa")
.triggerinterval("15m")
.triggerlimit(15)
.build())
.pagerdutyChannels(ViewPagerdutyChannelArgs.builder()
.key("Your PagerDuty API key goes here")
.terminal("true")
.triggerinterval("15m")
.triggerlimit(15)
.build())
.webhookChannels(ViewWebhookChannelArgs.builder()
.bodytemplate(serializeJson(
jsonObject(
jsonProperty("message", "Alerts from {{name}}")
)))
.headers(Map.ofEntries(
Map.entry("Authentication", "auth_header_value"),
Map.entry("HeaderTwo", "ValueTwo")
))
.immediate("false")
.method("post")
.terminal("true")
.triggerinterval("15m")
.triggerlimit(15)
.url("https://yourwebhook/endpoint")
.build())
.build());
}
}
resources:
myView:
type: logdna:View
properties:
apps:
- app1
- app2
categories:
- Demo1
- Demo2
hosts:
- host1
levels:
- warn
- error
query: my query
tags:
- tag1
- tag2
emailChannels:
- emails:
- test@logdna.com
immediate: 'false'
operator: absence
terminal: 'true'
timezone: Pacific/Samoa
triggerinterval: 15m
triggerlimit: 15
pagerdutyChannels:
- key: Your PagerDuty API key goes here
terminal: 'true'
triggerinterval: 15m
triggerlimit: 15
webhookChannels:
- bodytemplate:
fn::toJSON:
message: Alerts from {{name}}
headers:
Authentication: auth_header_value
HeaderTwo: ValueTwo
immediate: 'false'
method: post
terminal: 'true'
triggerinterval: 15m
triggerlimit: 15
url: https://yourwebhook/endpoint
Create View Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new View(name: string, args?: ViewArgs, opts?: CustomResourceOptions);
@overload
def View(resource_name: str,
args: Optional[ViewArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def View(resource_name: str,
opts: Optional[ResourceOptions] = None,
apps: Optional[Sequence[str]] = None,
categories: Optional[Sequence[str]] = None,
email_channels: Optional[Sequence[ViewEmailChannelArgs]] = None,
hosts: Optional[Sequence[str]] = None,
levels: Optional[Sequence[str]] = None,
name: Optional[str] = None,
pagerduty_channels: Optional[Sequence[ViewPagerdutyChannelArgs]] = None,
presetid: Optional[str] = None,
query: Optional[str] = None,
slack_channels: Optional[Sequence[ViewSlackChannelArgs]] = None,
tags: Optional[Sequence[str]] = None,
view_id: Optional[str] = None,
webhook_channels: Optional[Sequence[ViewWebhookChannelArgs]] = None)
func NewView(ctx *Context, name string, args *ViewArgs, opts ...ResourceOption) (*View, error)
public View(string name, ViewArgs? args = null, CustomResourceOptions? opts = null)
type: logdna:View
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 ViewArgs
- 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 ViewArgs
- 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 ViewArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ViewArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ViewArgs
- 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 viewResource = new Logdna.View("viewResource", new()
{
Apps = new[]
{
"string",
},
Categories = new[]
{
"string",
},
EmailChannels = new[]
{
new Logdna.Inputs.ViewEmailChannelArgs
{
Emails = new[]
{
"string",
},
Triggerlimit = 0,
Immediate = "string",
Operator = "string",
Terminal = "string",
Timezone = "string",
Triggerinterval = "string",
},
},
Hosts = new[]
{
"string",
},
Levels = new[]
{
"string",
},
Name = "string",
PagerdutyChannels = new[]
{
new Logdna.Inputs.ViewPagerdutyChannelArgs
{
Key = "string",
Triggerlimit = 0,
Autoresolve = false,
Autoresolveinterval = "string",
Autoresolvelimit = 0,
Immediate = "string",
Operator = "string",
Terminal = "string",
Triggerinterval = "string",
},
},
Presetid = "string",
Query = "string",
SlackChannels = new[]
{
new Logdna.Inputs.ViewSlackChannelArgs
{
Triggerlimit = 0,
Url = "string",
Immediate = "string",
Operator = "string",
Terminal = "string",
Triggerinterval = "string",
},
},
Tags = new[]
{
"string",
},
ViewId = "string",
WebhookChannels = new[]
{
new Logdna.Inputs.ViewWebhookChannelArgs
{
Triggerlimit = 0,
Url = "string",
Bodytemplate = "string",
Headers =
{
{ "string", "string" },
},
Immediate = "string",
Method = "string",
Operator = "string",
Terminal = "string",
Triggerinterval = "string",
},
},
});
example, err := logdna.NewView(ctx, "viewResource", &logdna.ViewArgs{
Apps: pulumi.StringArray{
pulumi.String("string"),
},
Categories: pulumi.StringArray{
pulumi.String("string"),
},
EmailChannels: logdna.ViewEmailChannelArray{
&logdna.ViewEmailChannelArgs{
Emails: pulumi.StringArray{
pulumi.String("string"),
},
Triggerlimit: pulumi.Float64(0),
Immediate: pulumi.String("string"),
Operator: pulumi.String("string"),
Terminal: pulumi.String("string"),
Timezone: pulumi.String("string"),
Triggerinterval: pulumi.String("string"),
},
},
Hosts: pulumi.StringArray{
pulumi.String("string"),
},
Levels: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
PagerdutyChannels: logdna.ViewPagerdutyChannelArray{
&logdna.ViewPagerdutyChannelArgs{
Key: pulumi.String("string"),
Triggerlimit: pulumi.Float64(0),
Autoresolve: pulumi.Bool(false),
Autoresolveinterval: pulumi.String("string"),
Autoresolvelimit: pulumi.Float64(0),
Immediate: pulumi.String("string"),
Operator: pulumi.String("string"),
Terminal: pulumi.String("string"),
Triggerinterval: pulumi.String("string"),
},
},
Presetid: pulumi.String("string"),
Query: pulumi.String("string"),
SlackChannels: logdna.ViewSlackChannelArray{
&logdna.ViewSlackChannelArgs{
Triggerlimit: pulumi.Float64(0),
Url: pulumi.String("string"),
Immediate: pulumi.String("string"),
Operator: pulumi.String("string"),
Terminal: pulumi.String("string"),
Triggerinterval: pulumi.String("string"),
},
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
ViewId: pulumi.String("string"),
WebhookChannels: logdna.ViewWebhookChannelArray{
&logdna.ViewWebhookChannelArgs{
Triggerlimit: pulumi.Float64(0),
Url: pulumi.String("string"),
Bodytemplate: pulumi.String("string"),
Headers: pulumi.StringMap{
"string": pulumi.String("string"),
},
Immediate: pulumi.String("string"),
Method: pulumi.String("string"),
Operator: pulumi.String("string"),
Terminal: pulumi.String("string"),
Triggerinterval: pulumi.String("string"),
},
},
})
var viewResource = new View("viewResource", ViewArgs.builder()
.apps("string")
.categories("string")
.emailChannels(ViewEmailChannelArgs.builder()
.emails("string")
.triggerlimit(0)
.immediate("string")
.operator("string")
.terminal("string")
.timezone("string")
.triggerinterval("string")
.build())
.hosts("string")
.levels("string")
.name("string")
.pagerdutyChannels(ViewPagerdutyChannelArgs.builder()
.key("string")
.triggerlimit(0)
.autoresolve(false)
.autoresolveinterval("string")
.autoresolvelimit(0)
.immediate("string")
.operator("string")
.terminal("string")
.triggerinterval("string")
.build())
.presetid("string")
.query("string")
.slackChannels(ViewSlackChannelArgs.builder()
.triggerlimit(0)
.url("string")
.immediate("string")
.operator("string")
.terminal("string")
.triggerinterval("string")
.build())
.tags("string")
.viewId("string")
.webhookChannels(ViewWebhookChannelArgs.builder()
.triggerlimit(0)
.url("string")
.bodytemplate("string")
.headers(Map.of("string", "string"))
.immediate("string")
.method("string")
.operator("string")
.terminal("string")
.triggerinterval("string")
.build())
.build());
view_resource = logdna.View("viewResource",
apps=["string"],
categories=["string"],
email_channels=[{
"emails": ["string"],
"triggerlimit": 0,
"immediate": "string",
"operator": "string",
"terminal": "string",
"timezone": "string",
"triggerinterval": "string",
}],
hosts=["string"],
levels=["string"],
name="string",
pagerduty_channels=[{
"key": "string",
"triggerlimit": 0,
"autoresolve": False,
"autoresolveinterval": "string",
"autoresolvelimit": 0,
"immediate": "string",
"operator": "string",
"terminal": "string",
"triggerinterval": "string",
}],
presetid="string",
query="string",
slack_channels=[{
"triggerlimit": 0,
"url": "string",
"immediate": "string",
"operator": "string",
"terminal": "string",
"triggerinterval": "string",
}],
tags=["string"],
view_id="string",
webhook_channels=[{
"triggerlimit": 0,
"url": "string",
"bodytemplate": "string",
"headers": {
"string": "string",
},
"immediate": "string",
"method": "string",
"operator": "string",
"terminal": "string",
"triggerinterval": "string",
}])
const viewResource = new logdna.View("viewResource", {
apps: ["string"],
categories: ["string"],
emailChannels: [{
emails: ["string"],
triggerlimit: 0,
immediate: "string",
operator: "string",
terminal: "string",
timezone: "string",
triggerinterval: "string",
}],
hosts: ["string"],
levels: ["string"],
name: "string",
pagerdutyChannels: [{
key: "string",
triggerlimit: 0,
autoresolve: false,
autoresolveinterval: "string",
autoresolvelimit: 0,
immediate: "string",
operator: "string",
terminal: "string",
triggerinterval: "string",
}],
presetid: "string",
query: "string",
slackChannels: [{
triggerlimit: 0,
url: "string",
immediate: "string",
operator: "string",
terminal: "string",
triggerinterval: "string",
}],
tags: ["string"],
viewId: "string",
webhookChannels: [{
triggerlimit: 0,
url: "string",
bodytemplate: "string",
headers: {
string: "string",
},
immediate: "string",
method: "string",
operator: "string",
terminal: "string",
triggerinterval: "string",
}],
});
type: logdna:View
properties:
apps:
- string
categories:
- string
emailChannels:
- emails:
- string
immediate: string
operator: string
terminal: string
timezone: string
triggerinterval: string
triggerlimit: 0
hosts:
- string
levels:
- string
name: string
pagerdutyChannels:
- autoresolve: false
autoresolveinterval: string
autoresolvelimit: 0
immediate: string
key: string
operator: string
terminal: string
triggerinterval: string
triggerlimit: 0
presetid: string
query: string
slackChannels:
- immediate: string
operator: string
terminal: string
triggerinterval: string
triggerlimit: 0
url: string
tags:
- string
viewId: string
webhookChannels:
- bodytemplate: string
headers:
string: string
immediate: string
method: string
operator: string
terminal: string
triggerinterval: string
triggerlimit: 0
url: string
View 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 View resource accepts the following input properties:
- Apps List<string>
- Categories List<string>
- Email
Channels List<ViewEmail Channel> - Hosts List<string>
- Levels List<string>
- Name string
- Pagerduty
Channels List<ViewPagerduty Channel> - Presetid string
- Query string
- Slack
Channels List<ViewSlack Channel> - List<string>
- View
Id string - Webhook
Channels List<ViewWebhook Channel>
- Apps []string
- Categories []string
- Email
Channels []ViewEmail Channel Args - Hosts []string
- Levels []string
- Name string
- Pagerduty
Channels []ViewPagerduty Channel Args - Presetid string
- Query string
- Slack
Channels []ViewSlack Channel Args - []string
- View
Id string - Webhook
Channels []ViewWebhook Channel Args
- apps List<String>
- categories List<String>
- email
Channels List<ViewEmail Channel> - hosts List<String>
- levels List<String>
- name String
- pagerduty
Channels List<ViewPagerduty Channel> - presetid String
- query String
- slack
Channels List<ViewSlack Channel> - List<String>
- view
Id String - webhook
Channels List<ViewWebhook Channel>
- apps string[]
- categories string[]
- email
Channels ViewEmail Channel[] - hosts string[]
- levels string[]
- name string
- pagerduty
Channels ViewPagerduty Channel[] - presetid string
- query string
- slack
Channels ViewSlack Channel[] - string[]
- view
Id string - webhook
Channels ViewWebhook Channel[]
- apps Sequence[str]
- categories Sequence[str]
- email_
channels Sequence[ViewEmail Channel Args] - hosts Sequence[str]
- levels Sequence[str]
- name str
- pagerduty_
channels Sequence[ViewPagerduty Channel Args] - presetid str
- query str
- slack_
channels Sequence[ViewSlack Channel Args] - Sequence[str]
- view_
id str - webhook_
channels Sequence[ViewWebhook Channel Args]
- apps List<String>
- categories List<String>
- email
Channels List<Property Map> - hosts List<String>
- levels List<String>
- name String
- pagerduty
Channels List<Property Map> - presetid String
- query String
- slack
Channels List<Property Map> - List<String>
- view
Id String - webhook
Channels List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the View 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 View Resource
Get an existing View 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?: ViewState, opts?: CustomResourceOptions): View
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
apps: Optional[Sequence[str]] = None,
categories: Optional[Sequence[str]] = None,
email_channels: Optional[Sequence[ViewEmailChannelArgs]] = None,
hosts: Optional[Sequence[str]] = None,
levels: Optional[Sequence[str]] = None,
name: Optional[str] = None,
pagerduty_channels: Optional[Sequence[ViewPagerdutyChannelArgs]] = None,
presetid: Optional[str] = None,
query: Optional[str] = None,
slack_channels: Optional[Sequence[ViewSlackChannelArgs]] = None,
tags: Optional[Sequence[str]] = None,
view_id: Optional[str] = None,
webhook_channels: Optional[Sequence[ViewWebhookChannelArgs]] = None) -> View
func GetView(ctx *Context, name string, id IDInput, state *ViewState, opts ...ResourceOption) (*View, error)
public static View Get(string name, Input<string> id, ViewState? state, CustomResourceOptions? opts = null)
public static View get(String name, Output<String> id, ViewState state, CustomResourceOptions options)
resources: _: type: logdna:View 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.
- Apps List<string>
- Categories List<string>
- Email
Channels List<ViewEmail Channel> - Hosts List<string>
- Levels List<string>
- Name string
- Pagerduty
Channels List<ViewPagerduty Channel> - Presetid string
- Query string
- Slack
Channels List<ViewSlack Channel> - List<string>
- View
Id string - Webhook
Channels List<ViewWebhook Channel>
- Apps []string
- Categories []string
- Email
Channels []ViewEmail Channel Args - Hosts []string
- Levels []string
- Name string
- Pagerduty
Channels []ViewPagerduty Channel Args - Presetid string
- Query string
- Slack
Channels []ViewSlack Channel Args - []string
- View
Id string - Webhook
Channels []ViewWebhook Channel Args
- apps List<String>
- categories List<String>
- email
Channels List<ViewEmail Channel> - hosts List<String>
- levels List<String>
- name String
- pagerduty
Channels List<ViewPagerduty Channel> - presetid String
- query String
- slack
Channels List<ViewSlack Channel> - List<String>
- view
Id String - webhook
Channels List<ViewWebhook Channel>
- apps string[]
- categories string[]
- email
Channels ViewEmail Channel[] - hosts string[]
- levels string[]
- name string
- pagerduty
Channels ViewPagerduty Channel[] - presetid string
- query string
- slack
Channels ViewSlack Channel[] - string[]
- view
Id string - webhook
Channels ViewWebhook Channel[]
- apps Sequence[str]
- categories Sequence[str]
- email_
channels Sequence[ViewEmail Channel Args] - hosts Sequence[str]
- levels Sequence[str]
- name str
- pagerduty_
channels Sequence[ViewPagerduty Channel Args] - presetid str
- query str
- slack_
channels Sequence[ViewSlack Channel Args] - Sequence[str]
- view_
id str - webhook_
channels Sequence[ViewWebhook Channel Args]
- apps List<String>
- categories List<String>
- email
Channels List<Property Map> - hosts List<String>
- levels List<String>
- name String
- pagerduty
Channels List<Property Map> - presetid String
- query String
- slack
Channels List<Property Map> - List<String>
- view
Id String - webhook
Channels List<Property Map>
Supporting Types
ViewEmailChannel, ViewEmailChannelArgs
- Emails List<string>
- []string (Required) An array of email addresses (strings) to notify in the Alert
- Triggerlimit double
- integer (Required) Number of lines before the Alert is triggered (e.g. setting a value of
10
for anabsence
Alert would alert you if10
lines were not seen in thetriggerinterval
). - Immediate string
- string (Optional; Default:
"false"
) Whether the Alert will be triggered immediately after the trigger limit is reached. Valid options are"true"
and"false"
for presence Alerts and"false"
for absence Alerts. - Operator string
- string (Optional; Defaults:
"30"
for presence;"15m"
for absence) Whether the Alert will trigger on the presence or absence of logs. Valid options arepresence
andabsence
. - Terminal string
- string (Optional; Default:
"true"
) Whether the Alert will trigger after thetriggerinterval
if the Alert condition is met (e.g., send an Alert after 30s). Valid options are"true"
and"false"
for presence Alerts, and"true"
for absence Alerts. - Timezone string
- string (Optional) Which time zone the log timestamps will be formatted in. Timezones are represented as database time zones.
- Triggerinterval string
- string (Optional; Defaults:
"30"
for presence;"15m"
for absence) Interval which the Alert will be looking for presence or absence of log lines. For presence Alerts, valid options are:30
,1m
,5m
,15m
,30m
,1h
,6h
,12h
, and24h
. For absence Alerts, valid options are:15m
,30m
,1h
,6h
,12h
, and24h
.
- Emails []string
- []string (Required) An array of email addresses (strings) to notify in the Alert
- Triggerlimit float64
- integer (Required) Number of lines before the Alert is triggered (e.g. setting a value of
10
for anabsence
Alert would alert you if10
lines were not seen in thetriggerinterval
). - Immediate string
- string (Optional; Default:
"false"
) Whether the Alert will be triggered immediately after the trigger limit is reached. Valid options are"true"
and"false"
for presence Alerts and"false"
for absence Alerts. - Operator string
- string (Optional; Defaults:
"30"
for presence;"15m"
for absence) Whether the Alert will trigger on the presence or absence of logs. Valid options arepresence
andabsence
. - Terminal string
- string (Optional; Default:
"true"
) Whether the Alert will trigger after thetriggerinterval
if the Alert condition is met (e.g., send an Alert after 30s). Valid options are"true"
and"false"
for presence Alerts, and"true"
for absence Alerts. - Timezone string
- string (Optional) Which time zone the log timestamps will be formatted in. Timezones are represented as database time zones.
- Triggerinterval string
- string (Optional; Defaults:
"30"
for presence;"15m"
for absence) Interval which the Alert will be looking for presence or absence of log lines. For presence Alerts, valid options are:30
,1m
,5m
,15m
,30m
,1h
,6h
,12h
, and24h
. For absence Alerts, valid options are:15m
,30m
,1h
,6h
,12h
, and24h
.
- emails List<String>
- []string (Required) An array of email addresses (strings) to notify in the Alert
- triggerlimit Double
- integer (Required) Number of lines before the Alert is triggered (e.g. setting a value of
10
for anabsence
Alert would alert you if10
lines were not seen in thetriggerinterval
). - immediate String
- string (Optional; Default:
"false"
) Whether the Alert will be triggered immediately after the trigger limit is reached. Valid options are"true"
and"false"
for presence Alerts and"false"
for absence Alerts. - operator String
- string (Optional; Defaults:
"30"
for presence;"15m"
for absence) Whether the Alert will trigger on the presence or absence of logs. Valid options arepresence
andabsence
. - terminal String
- string (Optional; Default:
"true"
) Whether the Alert will trigger after thetriggerinterval
if the Alert condition is met (e.g., send an Alert after 30s). Valid options are"true"
and"false"
for presence Alerts, and"true"
for absence Alerts. - timezone String
- string (Optional) Which time zone the log timestamps will be formatted in. Timezones are represented as database time zones.
- triggerinterval String
- string (Optional; Defaults:
"30"
for presence;"15m"
for absence) Interval which the Alert will be looking for presence or absence of log lines. For presence Alerts, valid options are:30
,1m
,5m
,15m
,30m
,1h
,6h
,12h
, and24h
. For absence Alerts, valid options are:15m
,30m
,1h
,6h
,12h
, and24h
.
- emails string[]
- []string (Required) An array of email addresses (strings) to notify in the Alert
- triggerlimit number
- integer (Required) Number of lines before the Alert is triggered (e.g. setting a value of
10
for anabsence
Alert would alert you if10
lines were not seen in thetriggerinterval
). - immediate string
- string (Optional; Default:
"false"
) Whether the Alert will be triggered immediately after the trigger limit is reached. Valid options are"true"
and"false"
for presence Alerts and"false"
for absence Alerts. - operator string
- string (Optional; Defaults:
"30"
for presence;"15m"
for absence) Whether the Alert will trigger on the presence or absence of logs. Valid options arepresence
andabsence
. - terminal string
- string (Optional; Default:
"true"
) Whether the Alert will trigger after thetriggerinterval
if the Alert condition is met (e.g., send an Alert after 30s). Valid options are"true"
and"false"
for presence Alerts, and"true"
for absence Alerts. - timezone string
- string (Optional) Which time zone the log timestamps will be formatted in. Timezones are represented as database time zones.
- triggerinterval string
- string (Optional; Defaults:
"30"
for presence;"15m"
for absence) Interval which the Alert will be looking for presence or absence of log lines. For presence Alerts, valid options are:30
,1m
,5m
,15m
,30m
,1h
,6h
,12h
, and24h
. For absence Alerts, valid options are:15m
,30m
,1h
,6h
,12h
, and24h
.
- emails Sequence[str]
- []string (Required) An array of email addresses (strings) to notify in the Alert
- triggerlimit float
- integer (Required) Number of lines before the Alert is triggered (e.g. setting a value of
10
for anabsence
Alert would alert you if10
lines were not seen in thetriggerinterval
). - immediate str
- string (Optional; Default:
"false"
) Whether the Alert will be triggered immediately after the trigger limit is reached. Valid options are"true"
and"false"
for presence Alerts and"false"
for absence Alerts. - operator str
- string (Optional; Defaults:
"30"
for presence;"15m"
for absence) Whether the Alert will trigger on the presence or absence of logs. Valid options arepresence
andabsence
. - terminal str
- string (Optional; Default:
"true"
) Whether the Alert will trigger after thetriggerinterval
if the Alert condition is met (e.g., send an Alert after 30s). Valid options are"true"
and"false"
for presence Alerts, and"true"
for absence Alerts. - timezone str
- string (Optional) Which time zone the log timestamps will be formatted in. Timezones are represented as database time zones.
- triggerinterval str
- string (Optional; Defaults:
"30"
for presence;"15m"
for absence) Interval which the Alert will be looking for presence or absence of log lines. For presence Alerts, valid options are:30
,1m
,5m
,15m
,30m
,1h
,6h
,12h
, and24h
. For absence Alerts, valid options are:15m
,30m
,1h
,6h
,12h
, and24h
.
- emails List<String>
- []string (Required) An array of email addresses (strings) to notify in the Alert
- triggerlimit Number
- integer (Required) Number of lines before the Alert is triggered (e.g. setting a value of
10
for anabsence
Alert would alert you if10
lines were not seen in thetriggerinterval
). - immediate String
- string (Optional; Default:
"false"
) Whether the Alert will be triggered immediately after the trigger limit is reached. Valid options are"true"
and"false"
for presence Alerts and"false"
for absence Alerts. - operator String
- string (Optional; Defaults:
"30"
for presence;"15m"
for absence) Whether the Alert will trigger on the presence or absence of logs. Valid options arepresence
andabsence
. - terminal String
- string (Optional; Default:
"true"
) Whether the Alert will trigger after thetriggerinterval
if the Alert condition is met (e.g., send an Alert after 30s). Valid options are"true"
and"false"
for presence Alerts, and"true"
for absence Alerts. - timezone String
- string (Optional) Which time zone the log timestamps will be formatted in. Timezones are represented as database time zones.
- triggerinterval String
- string (Optional; Defaults:
"30"
for presence;"15m"
for absence) Interval which the Alert will be looking for presence or absence of log lines. For presence Alerts, valid options are:30
,1m
,5m
,15m
,30m
,1h
,6h
,12h
, and24h
. For absence Alerts, valid options are:15m
,30m
,1h
,6h
,12h
, and24h
.
ViewPagerdutyChannel, ViewPagerdutyChannelArgs
- Key string
- string (Required) The service key used for PagerDuty.
- Triggerlimit double
- integer (Required) Number of lines before the Alert is triggered (e.g. setting a value of
10
for anabsence
Alert would alert you if10
lines were not seen in thetriggerinterval
). - Autoresolve bool
- boolean Set to true if you want the set a condition to resolve the incident that was raised by this alert.
- Autoresolveinterval string
- string (Required if autoresolve is set to true) Interval of time to aggregate and check # of matched lines against the auto resolve limit. Valid values are: 30 seconds, 1 minute, 5 minutes, 15 minutes, 30 minutes, 1 hour, 6 hours, 12 hours, 24 hours.
- Autoresolvelimit double
- integer (Required if autoresolve is set to true) Specify the number of log lines that match the view's filtering and search criteria. When the number of log lines is reached, this incident will be set to resolved in PagerDuty.
- Immediate string
- string (Optional; Default:
"false"
) Whether the Alert will be triggered immediately after the trigger limit is reached. Valid options are"true"
and"false"
for presence Alerts, and"false"
for absence Alerts. - Operator string
- string (Optional; Default:
presence
) Whether the Alert will trigger on the presence or absence of logs. Valid options arepresence
andabsence
. - Terminal string
- string (Optional; Default:
"true"
) Whether the Alert will trigger after thetriggerinterval
if the Alert condition is met (e.g. send an Alert after 30s). Valid options are"true"
and"false"
for presence Alerts, and"true"
for absence Alerts. - Triggerinterval string
- string (Optional; Defaults:
"30"
for presence;"15m"
for absence) Interval which the Alert will be looking for presence or absence of log lines. For presence Alerts, valid options are:30
,1m
,5m
,15m
,30m
,1h
,6h
,12h
, and24h
. For absence Alerts, valid options are:15m
,30m
,1h
,6h
,12h
, and24h
.
- Key string
- string (Required) The service key used for PagerDuty.
- Triggerlimit float64
- integer (Required) Number of lines before the Alert is triggered (e.g. setting a value of
10
for anabsence
Alert would alert you if10
lines were not seen in thetriggerinterval
). - Autoresolve bool
- boolean Set to true if you want the set a condition to resolve the incident that was raised by this alert.
- Autoresolveinterval string
- string (Required if autoresolve is set to true) Interval of time to aggregate and check # of matched lines against the auto resolve limit. Valid values are: 30 seconds, 1 minute, 5 minutes, 15 minutes, 30 minutes, 1 hour, 6 hours, 12 hours, 24 hours.
- Autoresolvelimit float64
- integer (Required if autoresolve is set to true) Specify the number of log lines that match the view's filtering and search criteria. When the number of log lines is reached, this incident will be set to resolved in PagerDuty.
- Immediate string
- string (Optional; Default:
"false"
) Whether the Alert will be triggered immediately after the trigger limit is reached. Valid options are"true"
and"false"
for presence Alerts, and"false"
for absence Alerts. - Operator string
- string (Optional; Default:
presence
) Whether the Alert will trigger on the presence or absence of logs. Valid options arepresence
andabsence
. - Terminal string
- string (Optional; Default:
"true"
) Whether the Alert will trigger after thetriggerinterval
if the Alert condition is met (e.g. send an Alert after 30s). Valid options are"true"
and"false"
for presence Alerts, and"true"
for absence Alerts. - Triggerinterval string
- string (Optional; Defaults:
"30"
for presence;"15m"
for absence) Interval which the Alert will be looking for presence or absence of log lines. For presence Alerts, valid options are:30
,1m
,5m
,15m
,30m
,1h
,6h
,12h
, and24h
. For absence Alerts, valid options are:15m
,30m
,1h
,6h
,12h
, and24h
.
- key String
- string (Required) The service key used for PagerDuty.
- triggerlimit Double
- integer (Required) Number of lines before the Alert is triggered (e.g. setting a value of
10
for anabsence
Alert would alert you if10
lines were not seen in thetriggerinterval
). - autoresolve Boolean
- boolean Set to true if you want the set a condition to resolve the incident that was raised by this alert.
- autoresolveinterval String
- string (Required if autoresolve is set to true) Interval of time to aggregate and check # of matched lines against the auto resolve limit. Valid values are: 30 seconds, 1 minute, 5 minutes, 15 minutes, 30 minutes, 1 hour, 6 hours, 12 hours, 24 hours.
- autoresolvelimit Double
- integer (Required if autoresolve is set to true) Specify the number of log lines that match the view's filtering and search criteria. When the number of log lines is reached, this incident will be set to resolved in PagerDuty.
- immediate String
- string (Optional; Default:
"false"
) Whether the Alert will be triggered immediately after the trigger limit is reached. Valid options are"true"
and"false"
for presence Alerts, and"false"
for absence Alerts. - operator String
- string (Optional; Default:
presence
) Whether the Alert will trigger on the presence or absence of logs. Valid options arepresence
andabsence
. - terminal String
- string (Optional; Default:
"true"
) Whether the Alert will trigger after thetriggerinterval
if the Alert condition is met (e.g. send an Alert after 30s). Valid options are"true"
and"false"
for presence Alerts, and"true"
for absence Alerts. - triggerinterval String
- string (Optional; Defaults:
"30"
for presence;"15m"
for absence) Interval which the Alert will be looking for presence or absence of log lines. For presence Alerts, valid options are:30
,1m
,5m
,15m
,30m
,1h
,6h
,12h
, and24h
. For absence Alerts, valid options are:15m
,30m
,1h
,6h
,12h
, and24h
.
- key string
- string (Required) The service key used for PagerDuty.
- triggerlimit number
- integer (Required) Number of lines before the Alert is triggered (e.g. setting a value of
10
for anabsence
Alert would alert you if10
lines were not seen in thetriggerinterval
). - autoresolve boolean
- boolean Set to true if you want the set a condition to resolve the incident that was raised by this alert.
- autoresolveinterval string
- string (Required if autoresolve is set to true) Interval of time to aggregate and check # of matched lines against the auto resolve limit. Valid values are: 30 seconds, 1 minute, 5 minutes, 15 minutes, 30 minutes, 1 hour, 6 hours, 12 hours, 24 hours.
- autoresolvelimit number
- integer (Required if autoresolve is set to true) Specify the number of log lines that match the view's filtering and search criteria. When the number of log lines is reached, this incident will be set to resolved in PagerDuty.
- immediate string
- string (Optional; Default:
"false"
) Whether the Alert will be triggered immediately after the trigger limit is reached. Valid options are"true"
and"false"
for presence Alerts, and"false"
for absence Alerts. - operator string
- string (Optional; Default:
presence
) Whether the Alert will trigger on the presence or absence of logs. Valid options arepresence
andabsence
. - terminal string
- string (Optional; Default:
"true"
) Whether the Alert will trigger after thetriggerinterval
if the Alert condition is met (e.g. send an Alert after 30s). Valid options are"true"
and"false"
for presence Alerts, and"true"
for absence Alerts. - triggerinterval string
- string (Optional; Defaults:
"30"
for presence;"15m"
for absence) Interval which the Alert will be looking for presence or absence of log lines. For presence Alerts, valid options are:30
,1m
,5m
,15m
,30m
,1h
,6h
,12h
, and24h
. For absence Alerts, valid options are:15m
,30m
,1h
,6h
,12h
, and24h
.
- key str
- string (Required) The service key used for PagerDuty.
- triggerlimit float
- integer (Required) Number of lines before the Alert is triggered (e.g. setting a value of
10
for anabsence
Alert would alert you if10
lines were not seen in thetriggerinterval
). - autoresolve bool
- boolean Set to true if you want the set a condition to resolve the incident that was raised by this alert.
- autoresolveinterval str
- string (Required if autoresolve is set to true) Interval of time to aggregate and check # of matched lines against the auto resolve limit. Valid values are: 30 seconds, 1 minute, 5 minutes, 15 minutes, 30 minutes, 1 hour, 6 hours, 12 hours, 24 hours.
- autoresolvelimit float
- integer (Required if autoresolve is set to true) Specify the number of log lines that match the view's filtering and search criteria. When the number of log lines is reached, this incident will be set to resolved in PagerDuty.
- immediate str
- string (Optional; Default:
"false"
) Whether the Alert will be triggered immediately after the trigger limit is reached. Valid options are"true"
and"false"
for presence Alerts, and"false"
for absence Alerts. - operator str
- string (Optional; Default:
presence
) Whether the Alert will trigger on the presence or absence of logs. Valid options arepresence
andabsence
. - terminal str
- string (Optional; Default:
"true"
) Whether the Alert will trigger after thetriggerinterval
if the Alert condition is met (e.g. send an Alert after 30s). Valid options are"true"
and"false"
for presence Alerts, and"true"
for absence Alerts. - triggerinterval str
- string (Optional; Defaults:
"30"
for presence;"15m"
for absence) Interval which the Alert will be looking for presence or absence of log lines. For presence Alerts, valid options are:30
,1m
,5m
,15m
,30m
,1h
,6h
,12h
, and24h
. For absence Alerts, valid options are:15m
,30m
,1h
,6h
,12h
, and24h
.
- key String
- string (Required) The service key used for PagerDuty.
- triggerlimit Number
- integer (Required) Number of lines before the Alert is triggered (e.g. setting a value of
10
for anabsence
Alert would alert you if10
lines were not seen in thetriggerinterval
). - autoresolve Boolean
- boolean Set to true if you want the set a condition to resolve the incident that was raised by this alert.
- autoresolveinterval String
- string (Required if autoresolve is set to true) Interval of time to aggregate and check # of matched lines against the auto resolve limit. Valid values are: 30 seconds, 1 minute, 5 minutes, 15 minutes, 30 minutes, 1 hour, 6 hours, 12 hours, 24 hours.
- autoresolvelimit Number
- integer (Required if autoresolve is set to true) Specify the number of log lines that match the view's filtering and search criteria. When the number of log lines is reached, this incident will be set to resolved in PagerDuty.
- immediate String
- string (Optional; Default:
"false"
) Whether the Alert will be triggered immediately after the trigger limit is reached. Valid options are"true"
and"false"
for presence Alerts, and"false"
for absence Alerts. - operator String
- string (Optional; Default:
presence
) Whether the Alert will trigger on the presence or absence of logs. Valid options arepresence
andabsence
. - terminal String
- string (Optional; Default:
"true"
) Whether the Alert will trigger after thetriggerinterval
if the Alert condition is met (e.g. send an Alert after 30s). Valid options are"true"
and"false"
for presence Alerts, and"true"
for absence Alerts. - triggerinterval String
- string (Optional; Defaults:
"30"
for presence;"15m"
for absence) Interval which the Alert will be looking for presence or absence of log lines. For presence Alerts, valid options are:30
,1m
,5m
,15m
,30m
,1h
,6h
,12h
, and24h
. For absence Alerts, valid options are:15m
,30m
,1h
,6h
,12h
, and24h
.
ViewSlackChannel, ViewSlackChannelArgs
- Triggerlimit double
- Url string
- string (Required) The URL of the webhook.
- Immediate string
- Operator string
- Terminal string
- Triggerinterval string
- Triggerlimit float64
- Url string
- string (Required) The URL of the webhook.
- Immediate string
- Operator string
- Terminal string
- Triggerinterval string
- triggerlimit Double
- url String
- string (Required) The URL of the webhook.
- immediate String
- operator String
- terminal String
- triggerinterval String
- triggerlimit number
- url string
- string (Required) The URL of the webhook.
- immediate string
- operator string
- terminal string
- triggerinterval string
- triggerlimit float
- url str
- string (Required) The URL of the webhook.
- immediate str
- operator str
- terminal str
- triggerinterval str
- triggerlimit Number
- url String
- string (Required) The URL of the webhook.
- immediate String
- operator String
- terminal String
- triggerinterval String
ViewWebhookChannel, ViewWebhookChannelArgs
- Triggerlimit double
- integer (Required) Number of lines before the Alert is triggered. (eg. Setting a value of
10
for anabsence
Alert would alert you if10
lines were not seen in thetriggerinterval
) - Url string
- string (Required) The URL of the webhook.
- Bodytemplate string
- Headers Dictionary<string, string>
- _map<string, string> (Optional) Key-value pair for webhook request headers and header values. Example:
"MyHeader" = "MyValue"
- Immediate string
- string (Optional; Default:
"false"
) Whether the Alert will trigger immediately after the trigger limit is reached. Valid options are"true"
and"false"
for presence Alerts, and"false"
for absence Alerts. - Method string
- string (Optional; Default:
post
) Method used for the webhook request. Valid options are:post
,put
,patch
,get
,delete
. - Operator string
- string (Optional; Default:
presence
) Whether the Alert will trigger on the presence or absence of logs. Valid options arepresence
andabsence
. - Terminal string
- string (Optional; Default:
"true"
) Whether the Alert will trigger after thetriggerinterval
if the Alert condition is met (e.g. send an Alert after 30s). Valid options are"true"
and"false"
for presence Alerts, and"true"
for absence Alerts. - Triggerinterval string
- string (Optional; Defaults:
"30"
for presence;"15m"
for absence) Interval which the Alert will be looking for presence or absence of log lines. For presence Alerts, valid options are:30
,1m
,5m
,15m
,30m
,1h
,6h
,12h
, and24h
. For absence Alerts, valid options are:15m
,30m
,1h
,6h
,12h
, and24h
.
- Triggerlimit float64
- integer (Required) Number of lines before the Alert is triggered. (eg. Setting a value of
10
for anabsence
Alert would alert you if10
lines were not seen in thetriggerinterval
) - Url string
- string (Required) The URL of the webhook.
- Bodytemplate string
- Headers map[string]string
- _map<string, string> (Optional) Key-value pair for webhook request headers and header values. Example:
"MyHeader" = "MyValue"
- Immediate string
- string (Optional; Default:
"false"
) Whether the Alert will trigger immediately after the trigger limit is reached. Valid options are"true"
and"false"
for presence Alerts, and"false"
for absence Alerts. - Method string
- string (Optional; Default:
post
) Method used for the webhook request. Valid options are:post
,put
,patch
,get
,delete
. - Operator string
- string (Optional; Default:
presence
) Whether the Alert will trigger on the presence or absence of logs. Valid options arepresence
andabsence
. - Terminal string
- string (Optional; Default:
"true"
) Whether the Alert will trigger after thetriggerinterval
if the Alert condition is met (e.g. send an Alert after 30s). Valid options are"true"
and"false"
for presence Alerts, and"true"
for absence Alerts. - Triggerinterval string
- string (Optional; Defaults:
"30"
for presence;"15m"
for absence) Interval which the Alert will be looking for presence or absence of log lines. For presence Alerts, valid options are:30
,1m
,5m
,15m
,30m
,1h
,6h
,12h
, and24h
. For absence Alerts, valid options are:15m
,30m
,1h
,6h
,12h
, and24h
.
- triggerlimit Double
- integer (Required) Number of lines before the Alert is triggered. (eg. Setting a value of
10
for anabsence
Alert would alert you if10
lines were not seen in thetriggerinterval
) - url String
- string (Required) The URL of the webhook.
- bodytemplate String
- headers Map<String,String>
- _map<string, string> (Optional) Key-value pair for webhook request headers and header values. Example:
"MyHeader" = "MyValue"
- immediate String
- string (Optional; Default:
"false"
) Whether the Alert will trigger immediately after the trigger limit is reached. Valid options are"true"
and"false"
for presence Alerts, and"false"
for absence Alerts. - method String
- string (Optional; Default:
post
) Method used for the webhook request. Valid options are:post
,put
,patch
,get
,delete
. - operator String
- string (Optional; Default:
presence
) Whether the Alert will trigger on the presence or absence of logs. Valid options arepresence
andabsence
. - terminal String
- string (Optional; Default:
"true"
) Whether the Alert will trigger after thetriggerinterval
if the Alert condition is met (e.g. send an Alert after 30s). Valid options are"true"
and"false"
for presence Alerts, and"true"
for absence Alerts. - triggerinterval String
- string (Optional; Defaults:
"30"
for presence;"15m"
for absence) Interval which the Alert will be looking for presence or absence of log lines. For presence Alerts, valid options are:30
,1m
,5m
,15m
,30m
,1h
,6h
,12h
, and24h
. For absence Alerts, valid options are:15m
,30m
,1h
,6h
,12h
, and24h
.
- triggerlimit number
- integer (Required) Number of lines before the Alert is triggered. (eg. Setting a value of
10
for anabsence
Alert would alert you if10
lines were not seen in thetriggerinterval
) - url string
- string (Required) The URL of the webhook.
- bodytemplate string
- headers {[key: string]: string}
- _map<string, string> (Optional) Key-value pair for webhook request headers and header values. Example:
"MyHeader" = "MyValue"
- immediate string
- string (Optional; Default:
"false"
) Whether the Alert will trigger immediately after the trigger limit is reached. Valid options are"true"
and"false"
for presence Alerts, and"false"
for absence Alerts. - method string
- string (Optional; Default:
post
) Method used for the webhook request. Valid options are:post
,put
,patch
,get
,delete
. - operator string
- string (Optional; Default:
presence
) Whether the Alert will trigger on the presence or absence of logs. Valid options arepresence
andabsence
. - terminal string
- string (Optional; Default:
"true"
) Whether the Alert will trigger after thetriggerinterval
if the Alert condition is met (e.g. send an Alert after 30s). Valid options are"true"
and"false"
for presence Alerts, and"true"
for absence Alerts. - triggerinterval string
- string (Optional; Defaults:
"30"
for presence;"15m"
for absence) Interval which the Alert will be looking for presence or absence of log lines. For presence Alerts, valid options are:30
,1m
,5m
,15m
,30m
,1h
,6h
,12h
, and24h
. For absence Alerts, valid options are:15m
,30m
,1h
,6h
,12h
, and24h
.
- triggerlimit float
- integer (Required) Number of lines before the Alert is triggered. (eg. Setting a value of
10
for anabsence
Alert would alert you if10
lines were not seen in thetriggerinterval
) - url str
- string (Required) The URL of the webhook.
- bodytemplate str
- headers Mapping[str, str]
- _map<string, string> (Optional) Key-value pair for webhook request headers and header values. Example:
"MyHeader" = "MyValue"
- immediate str
- string (Optional; Default:
"false"
) Whether the Alert will trigger immediately after the trigger limit is reached. Valid options are"true"
and"false"
for presence Alerts, and"false"
for absence Alerts. - method str
- string (Optional; Default:
post
) Method used for the webhook request. Valid options are:post
,put
,patch
,get
,delete
. - operator str
- string (Optional; Default:
presence
) Whether the Alert will trigger on the presence or absence of logs. Valid options arepresence
andabsence
. - terminal str
- string (Optional; Default:
"true"
) Whether the Alert will trigger after thetriggerinterval
if the Alert condition is met (e.g. send an Alert after 30s). Valid options are"true"
and"false"
for presence Alerts, and"true"
for absence Alerts. - triggerinterval str
- string (Optional; Defaults:
"30"
for presence;"15m"
for absence) Interval which the Alert will be looking for presence or absence of log lines. For presence Alerts, valid options are:30
,1m
,5m
,15m
,30m
,1h
,6h
,12h
, and24h
. For absence Alerts, valid options are:15m
,30m
,1h
,6h
,12h
, and24h
.
- triggerlimit Number
- integer (Required) Number of lines before the Alert is triggered. (eg. Setting a value of
10
for anabsence
Alert would alert you if10
lines were not seen in thetriggerinterval
) - url String
- string (Required) The URL of the webhook.
- bodytemplate String
- headers Map<String>
- _map<string, string> (Optional) Key-value pair for webhook request headers and header values. Example:
"MyHeader" = "MyValue"
- immediate String
- string (Optional; Default:
"false"
) Whether the Alert will trigger immediately after the trigger limit is reached. Valid options are"true"
and"false"
for presence Alerts, and"false"
for absence Alerts. - method String
- string (Optional; Default:
post
) Method used for the webhook request. Valid options are:post
,put
,patch
,get
,delete
. - operator String
- string (Optional; Default:
presence
) Whether the Alert will trigger on the presence or absence of logs. Valid options arepresence
andabsence
. - terminal String
- string (Optional; Default:
"true"
) Whether the Alert will trigger after thetriggerinterval
if the Alert condition is met (e.g. send an Alert after 30s). Valid options are"true"
and"false"
for presence Alerts, and"true"
for absence Alerts. - triggerinterval String
- string (Optional; Defaults:
"30"
for presence;"15m"
for absence) Interval which the Alert will be looking for presence or absence of log lines. For presence Alerts, valid options are:30
,1m
,5m
,15m
,30m
,1h
,6h
,12h
, and24h
. For absence Alerts, valid options are:15m
,30m
,1h
,6h
,12h
, and24h
.
Import
Views can be imported by id
, which can be found in the URL when editing the
View in the web UI:
$ pulumi import logdna:index/view:View your-view-name <id>
Note that only the alert channels supported by this provider will be imported.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- logdna logdna/terraform-provider-logdna
- License
- Notes
- This Pulumi package is based on the
logdna
Terraform Provider.