Struct EntityV3ServiceDatadog

Source
#[non_exhaustive]
pub struct EntityV3ServiceDatadog { pub code_locations: Option<Vec<EntityV3DatadogCodeLocationItem>>, pub events: Option<Vec<EntityV3DatadogEventItem>>, pub logs: Option<Vec<EntityV3DatadogLogItem>>, pub performance_data: Option<EntityV3DatadogPerformance>, pub pipelines: Option<EntityV3DatadogPipelines>, /* private fields */ }
Expand description

Datadog product integrations for the service entity.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§code_locations: Option<Vec<EntityV3DatadogCodeLocationItem>>

Schema for mapping source code locations to an entity.

§events: Option<Vec<EntityV3DatadogEventItem>>

Events associations.

§logs: Option<Vec<EntityV3DatadogLogItem>>

Logs association.

§performance_data: Option<EntityV3DatadogPerformance>

Performance stats association.

§pipelines: Option<EntityV3DatadogPipelines>

CI Pipelines association.

Implementations§

Source§

impl EntityV3ServiceDatadog

Source

pub fn new() -> EntityV3ServiceDatadog

Examples found in repository?
examples/v2_software-catalog_UpsertCatalogEntity_586948155.rs (line 46)
25async fn main() {
26    let body = UpsertCatalogEntityRequest::EntityV3(Box::new(EntityV3::EntityV3Service(Box::new(
27        EntityV3Service::new(
28            EntityV3APIVersion::V3,
29            EntityV3ServiceKind::SERVICE,
30            EntityV3Metadata::new("service-examplesoftwarecatalog".to_string())
31                .additional_owners(vec![])
32                .contacts(vec![EntityV3MetadataContactsItems::new(
33                    "https://slack/".to_string(),
34                    "slack".to_string(),
35                )])
36                .id("4b163705-23c0-4573-b2fb-f6cea2163fcb".to_string())
37                .inherit_from("application:default/myapp".to_string())
38                .links(vec![EntityV3MetadataLinksItems::new(
39                    "mylink".to_string(),
40                    "link".to_string(),
41                    "https://mylink".to_string(),
42                )])
43                .tags(vec!["this:tag".to_string(), "that:tag".to_string()]),
44        )
45        .datadog(
46            EntityV3ServiceDatadog::new()
47                .code_locations(vec![EntityV3DatadogCodeLocationItem::new().paths(vec![])])
48                .events(vec![EntityV3DatadogEventItem::new()])
49                .logs(vec![EntityV3DatadogLogItem::new()])
50                .performance_data(EntityV3DatadogPerformance::new().tags(vec![]))
51                .pipelines(EntityV3DatadogPipelines::new().fingerprints(vec![])),
52        )
53        .integrations(
54            EntityV3Integrations::new()
55                .opsgenie(EntityV3DatadogIntegrationOpsgenie::new(
56                    "https://www.opsgenie.com/service/shopping-cart".to_string(),
57                ))
58                .pagerduty(EntityV3DatadogIntegrationPagerduty::new(
59                    "https://www.pagerduty.com/service-directory/Pshopping-cart".to_string(),
60                )),
61        )
62        .spec(
63            EntityV3ServiceSpec::new()
64                .depends_on(vec![])
65                .languages(vec![]),
66        ),
67    ))));
68    let configuration = datadog::Configuration::new();
69    let api = SoftwareCatalogAPI::with_config(configuration);
70    let resp = api.upsert_catalog_entity(body).await;
71    if let Ok(value) = resp {
72        println!("{:#?}", value);
73    } else {
74        println!("{:#?}", resp.unwrap_err());
75    }
76}
More examples
Hide additional examples
examples/v2_software-catalog_UpsertCatalogEntity.rs (line 49)
25async fn main() {
26    let body = UpsertCatalogEntityRequest::EntityV3(Box::new(EntityV3::EntityV3Service(Box::new(
27        EntityV3Service::new(
28            EntityV3APIVersion::V3,
29            EntityV3ServiceKind::SERVICE,
30            EntityV3Metadata::new("myService".to_string())
31                .additional_owners(vec![EntityV3MetadataAdditionalOwnersItems::new(
32                    "".to_string(),
33                )])
34                .contacts(vec![EntityV3MetadataContactsItems::new(
35                    "https://slack/".to_string(),
36                    "slack".to_string(),
37                )])
38                .id("4b163705-23c0-4573-b2fb-f6cea2163fcb".to_string())
39                .inherit_from("application:default/myapp".to_string())
40                .links(vec![EntityV3MetadataLinksItems::new(
41                    "mylink".to_string(),
42                    "link".to_string(),
43                    "https://mylink".to_string(),
44                )])
45                .namespace("default".to_string())
46                .tags(vec!["this:tag".to_string(), "that:tag".to_string()]),
47        )
48        .datadog(
49            EntityV3ServiceDatadog::new()
50                .code_locations(vec![EntityV3DatadogCodeLocationItem::new().paths(vec![])])
51                .events(vec![EntityV3DatadogEventItem::new()])
52                .logs(vec![EntityV3DatadogLogItem::new()])
53                .performance_data(EntityV3DatadogPerformance::new().tags(vec![]))
54                .pipelines(EntityV3DatadogPipelines::new().fingerprints(vec![])),
55        )
56        .integrations(
57            EntityV3Integrations::new()
58                .opsgenie(EntityV3DatadogIntegrationOpsgenie::new(
59                    "https://www.opsgenie.com/service/shopping-cart".to_string(),
60                ))
61                .pagerduty(EntityV3DatadogIntegrationPagerduty::new(
62                    "https://www.pagerduty.com/service-directory/Pshopping-cart".to_string(),
63                )),
64        )
65        .spec(
66            EntityV3ServiceSpec::new()
67                .component_of(vec![])
68                .depends_on(vec![])
69                .languages(vec![]),
70        ),
71    ))));
72    let configuration = datadog::Configuration::new();
73    let api = SoftwareCatalogAPI::with_config(configuration);
74    let resp = api.upsert_catalog_entity(body).await;
75    if let Ok(value) = resp {
76        println!("{:#?}", value);
77    } else {
78        println!("{:#?}", resp.unwrap_err());
79    }
80}
Source

pub fn code_locations(self, value: Vec<EntityV3DatadogCodeLocationItem>) -> Self

Examples found in repository?
examples/v2_software-catalog_UpsertCatalogEntity_586948155.rs (line 47)
25async fn main() {
26    let body = UpsertCatalogEntityRequest::EntityV3(Box::new(EntityV3::EntityV3Service(Box::new(
27        EntityV3Service::new(
28            EntityV3APIVersion::V3,
29            EntityV3ServiceKind::SERVICE,
30            EntityV3Metadata::new("service-examplesoftwarecatalog".to_string())
31                .additional_owners(vec![])
32                .contacts(vec![EntityV3MetadataContactsItems::new(
33                    "https://slack/".to_string(),
34                    "slack".to_string(),
35                )])
36                .id("4b163705-23c0-4573-b2fb-f6cea2163fcb".to_string())
37                .inherit_from("application:default/myapp".to_string())
38                .links(vec![EntityV3MetadataLinksItems::new(
39                    "mylink".to_string(),
40                    "link".to_string(),
41                    "https://mylink".to_string(),
42                )])
43                .tags(vec!["this:tag".to_string(), "that:tag".to_string()]),
44        )
45        .datadog(
46            EntityV3ServiceDatadog::new()
47                .code_locations(vec![EntityV3DatadogCodeLocationItem::new().paths(vec![])])
48                .events(vec![EntityV3DatadogEventItem::new()])
49                .logs(vec![EntityV3DatadogLogItem::new()])
50                .performance_data(EntityV3DatadogPerformance::new().tags(vec![]))
51                .pipelines(EntityV3DatadogPipelines::new().fingerprints(vec![])),
52        )
53        .integrations(
54            EntityV3Integrations::new()
55                .opsgenie(EntityV3DatadogIntegrationOpsgenie::new(
56                    "https://www.opsgenie.com/service/shopping-cart".to_string(),
57                ))
58                .pagerduty(EntityV3DatadogIntegrationPagerduty::new(
59                    "https://www.pagerduty.com/service-directory/Pshopping-cart".to_string(),
60                )),
61        )
62        .spec(
63            EntityV3ServiceSpec::new()
64                .depends_on(vec![])
65                .languages(vec![]),
66        ),
67    ))));
68    let configuration = datadog::Configuration::new();
69    let api = SoftwareCatalogAPI::with_config(configuration);
70    let resp = api.upsert_catalog_entity(body).await;
71    if let Ok(value) = resp {
72        println!("{:#?}", value);
73    } else {
74        println!("{:#?}", resp.unwrap_err());
75    }
76}
More examples
Hide additional examples
examples/v2_software-catalog_UpsertCatalogEntity.rs (line 50)
25async fn main() {
26    let body = UpsertCatalogEntityRequest::EntityV3(Box::new(EntityV3::EntityV3Service(Box::new(
27        EntityV3Service::new(
28            EntityV3APIVersion::V3,
29            EntityV3ServiceKind::SERVICE,
30            EntityV3Metadata::new("myService".to_string())
31                .additional_owners(vec![EntityV3MetadataAdditionalOwnersItems::new(
32                    "".to_string(),
33                )])
34                .contacts(vec![EntityV3MetadataContactsItems::new(
35                    "https://slack/".to_string(),
36                    "slack".to_string(),
37                )])
38                .id("4b163705-23c0-4573-b2fb-f6cea2163fcb".to_string())
39                .inherit_from("application:default/myapp".to_string())
40                .links(vec![EntityV3MetadataLinksItems::new(
41                    "mylink".to_string(),
42                    "link".to_string(),
43                    "https://mylink".to_string(),
44                )])
45                .namespace("default".to_string())
46                .tags(vec!["this:tag".to_string(), "that:tag".to_string()]),
47        )
48        .datadog(
49            EntityV3ServiceDatadog::new()
50                .code_locations(vec![EntityV3DatadogCodeLocationItem::new().paths(vec![])])
51                .events(vec![EntityV3DatadogEventItem::new()])
52                .logs(vec![EntityV3DatadogLogItem::new()])
53                .performance_data(EntityV3DatadogPerformance::new().tags(vec![]))
54                .pipelines(EntityV3DatadogPipelines::new().fingerprints(vec![])),
55        )
56        .integrations(
57            EntityV3Integrations::new()
58                .opsgenie(EntityV3DatadogIntegrationOpsgenie::new(
59                    "https://www.opsgenie.com/service/shopping-cart".to_string(),
60                ))
61                .pagerduty(EntityV3DatadogIntegrationPagerduty::new(
62                    "https://www.pagerduty.com/service-directory/Pshopping-cart".to_string(),
63                )),
64        )
65        .spec(
66            EntityV3ServiceSpec::new()
67                .component_of(vec![])
68                .depends_on(vec![])
69                .languages(vec![]),
70        ),
71    ))));
72    let configuration = datadog::Configuration::new();
73    let api = SoftwareCatalogAPI::with_config(configuration);
74    let resp = api.upsert_catalog_entity(body).await;
75    if let Ok(value) = resp {
76        println!("{:#?}", value);
77    } else {
78        println!("{:#?}", resp.unwrap_err());
79    }
80}
Source

pub fn events(self, value: Vec<EntityV3DatadogEventItem>) -> Self

Examples found in repository?
examples/v2_software-catalog_UpsertCatalogEntity_586948155.rs (line 48)
25async fn main() {
26    let body = UpsertCatalogEntityRequest::EntityV3(Box::new(EntityV3::EntityV3Service(Box::new(
27        EntityV3Service::new(
28            EntityV3APIVersion::V3,
29            EntityV3ServiceKind::SERVICE,
30            EntityV3Metadata::new("service-examplesoftwarecatalog".to_string())
31                .additional_owners(vec![])
32                .contacts(vec![EntityV3MetadataContactsItems::new(
33                    "https://slack/".to_string(),
34                    "slack".to_string(),
35                )])
36                .id("4b163705-23c0-4573-b2fb-f6cea2163fcb".to_string())
37                .inherit_from("application:default/myapp".to_string())
38                .links(vec![EntityV3MetadataLinksItems::new(
39                    "mylink".to_string(),
40                    "link".to_string(),
41                    "https://mylink".to_string(),
42                )])
43                .tags(vec!["this:tag".to_string(), "that:tag".to_string()]),
44        )
45        .datadog(
46            EntityV3ServiceDatadog::new()
47                .code_locations(vec![EntityV3DatadogCodeLocationItem::new().paths(vec![])])
48                .events(vec![EntityV3DatadogEventItem::new()])
49                .logs(vec![EntityV3DatadogLogItem::new()])
50                .performance_data(EntityV3DatadogPerformance::new().tags(vec![]))
51                .pipelines(EntityV3DatadogPipelines::new().fingerprints(vec![])),
52        )
53        .integrations(
54            EntityV3Integrations::new()
55                .opsgenie(EntityV3DatadogIntegrationOpsgenie::new(
56                    "https://www.opsgenie.com/service/shopping-cart".to_string(),
57                ))
58                .pagerduty(EntityV3DatadogIntegrationPagerduty::new(
59                    "https://www.pagerduty.com/service-directory/Pshopping-cart".to_string(),
60                )),
61        )
62        .spec(
63            EntityV3ServiceSpec::new()
64                .depends_on(vec![])
65                .languages(vec![]),
66        ),
67    ))));
68    let configuration = datadog::Configuration::new();
69    let api = SoftwareCatalogAPI::with_config(configuration);
70    let resp = api.upsert_catalog_entity(body).await;
71    if let Ok(value) = resp {
72        println!("{:#?}", value);
73    } else {
74        println!("{:#?}", resp.unwrap_err());
75    }
76}
More examples
Hide additional examples
examples/v2_software-catalog_UpsertCatalogEntity.rs (line 51)
25async fn main() {
26    let body = UpsertCatalogEntityRequest::EntityV3(Box::new(EntityV3::EntityV3Service(Box::new(
27        EntityV3Service::new(
28            EntityV3APIVersion::V3,
29            EntityV3ServiceKind::SERVICE,
30            EntityV3Metadata::new("myService".to_string())
31                .additional_owners(vec![EntityV3MetadataAdditionalOwnersItems::new(
32                    "".to_string(),
33                )])
34                .contacts(vec![EntityV3MetadataContactsItems::new(
35                    "https://slack/".to_string(),
36                    "slack".to_string(),
37                )])
38                .id("4b163705-23c0-4573-b2fb-f6cea2163fcb".to_string())
39                .inherit_from("application:default/myapp".to_string())
40                .links(vec![EntityV3MetadataLinksItems::new(
41                    "mylink".to_string(),
42                    "link".to_string(),
43                    "https://mylink".to_string(),
44                )])
45                .namespace("default".to_string())
46                .tags(vec!["this:tag".to_string(), "that:tag".to_string()]),
47        )
48        .datadog(
49            EntityV3ServiceDatadog::new()
50                .code_locations(vec![EntityV3DatadogCodeLocationItem::new().paths(vec![])])
51                .events(vec![EntityV3DatadogEventItem::new()])
52                .logs(vec![EntityV3DatadogLogItem::new()])
53                .performance_data(EntityV3DatadogPerformance::new().tags(vec![]))
54                .pipelines(EntityV3DatadogPipelines::new().fingerprints(vec![])),
55        )
56        .integrations(
57            EntityV3Integrations::new()
58                .opsgenie(EntityV3DatadogIntegrationOpsgenie::new(
59                    "https://www.opsgenie.com/service/shopping-cart".to_string(),
60                ))
61                .pagerduty(EntityV3DatadogIntegrationPagerduty::new(
62                    "https://www.pagerduty.com/service-directory/Pshopping-cart".to_string(),
63                )),
64        )
65        .spec(
66            EntityV3ServiceSpec::new()
67                .component_of(vec![])
68                .depends_on(vec![])
69                .languages(vec![]),
70        ),
71    ))));
72    let configuration = datadog::Configuration::new();
73    let api = SoftwareCatalogAPI::with_config(configuration);
74    let resp = api.upsert_catalog_entity(body).await;
75    if let Ok(value) = resp {
76        println!("{:#?}", value);
77    } else {
78        println!("{:#?}", resp.unwrap_err());
79    }
80}
Source

pub fn logs(self, value: Vec<EntityV3DatadogLogItem>) -> Self

Examples found in repository?
examples/v2_software-catalog_UpsertCatalogEntity_586948155.rs (line 49)
25async fn main() {
26    let body = UpsertCatalogEntityRequest::EntityV3(Box::new(EntityV3::EntityV3Service(Box::new(
27        EntityV3Service::new(
28            EntityV3APIVersion::V3,
29            EntityV3ServiceKind::SERVICE,
30            EntityV3Metadata::new("service-examplesoftwarecatalog".to_string())
31                .additional_owners(vec![])
32                .contacts(vec![EntityV3MetadataContactsItems::new(
33                    "https://slack/".to_string(),
34                    "slack".to_string(),
35                )])
36                .id("4b163705-23c0-4573-b2fb-f6cea2163fcb".to_string())
37                .inherit_from("application:default/myapp".to_string())
38                .links(vec![EntityV3MetadataLinksItems::new(
39                    "mylink".to_string(),
40                    "link".to_string(),
41                    "https://mylink".to_string(),
42                )])
43                .tags(vec!["this:tag".to_string(), "that:tag".to_string()]),
44        )
45        .datadog(
46            EntityV3ServiceDatadog::new()
47                .code_locations(vec![EntityV3DatadogCodeLocationItem::new().paths(vec![])])
48                .events(vec![EntityV3DatadogEventItem::new()])
49                .logs(vec![EntityV3DatadogLogItem::new()])
50                .performance_data(EntityV3DatadogPerformance::new().tags(vec![]))
51                .pipelines(EntityV3DatadogPipelines::new().fingerprints(vec![])),
52        )
53        .integrations(
54            EntityV3Integrations::new()
55                .opsgenie(EntityV3DatadogIntegrationOpsgenie::new(
56                    "https://www.opsgenie.com/service/shopping-cart".to_string(),
57                ))
58                .pagerduty(EntityV3DatadogIntegrationPagerduty::new(
59                    "https://www.pagerduty.com/service-directory/Pshopping-cart".to_string(),
60                )),
61        )
62        .spec(
63            EntityV3ServiceSpec::new()
64                .depends_on(vec![])
65                .languages(vec![]),
66        ),
67    ))));
68    let configuration = datadog::Configuration::new();
69    let api = SoftwareCatalogAPI::with_config(configuration);
70    let resp = api.upsert_catalog_entity(body).await;
71    if let Ok(value) = resp {
72        println!("{:#?}", value);
73    } else {
74        println!("{:#?}", resp.unwrap_err());
75    }
76}
More examples
Hide additional examples
examples/v2_software-catalog_UpsertCatalogEntity.rs (line 52)
25async fn main() {
26    let body = UpsertCatalogEntityRequest::EntityV3(Box::new(EntityV3::EntityV3Service(Box::new(
27        EntityV3Service::new(
28            EntityV3APIVersion::V3,
29            EntityV3ServiceKind::SERVICE,
30            EntityV3Metadata::new("myService".to_string())
31                .additional_owners(vec![EntityV3MetadataAdditionalOwnersItems::new(
32                    "".to_string(),
33                )])
34                .contacts(vec![EntityV3MetadataContactsItems::new(
35                    "https://slack/".to_string(),
36                    "slack".to_string(),
37                )])
38                .id("4b163705-23c0-4573-b2fb-f6cea2163fcb".to_string())
39                .inherit_from("application:default/myapp".to_string())
40                .links(vec![EntityV3MetadataLinksItems::new(
41                    "mylink".to_string(),
42                    "link".to_string(),
43                    "https://mylink".to_string(),
44                )])
45                .namespace("default".to_string())
46                .tags(vec!["this:tag".to_string(), "that:tag".to_string()]),
47        )
48        .datadog(
49            EntityV3ServiceDatadog::new()
50                .code_locations(vec![EntityV3DatadogCodeLocationItem::new().paths(vec![])])
51                .events(vec![EntityV3DatadogEventItem::new()])
52                .logs(vec![EntityV3DatadogLogItem::new()])
53                .performance_data(EntityV3DatadogPerformance::new().tags(vec![]))
54                .pipelines(EntityV3DatadogPipelines::new().fingerprints(vec![])),
55        )
56        .integrations(
57            EntityV3Integrations::new()
58                .opsgenie(EntityV3DatadogIntegrationOpsgenie::new(
59                    "https://www.opsgenie.com/service/shopping-cart".to_string(),
60                ))
61                .pagerduty(EntityV3DatadogIntegrationPagerduty::new(
62                    "https://www.pagerduty.com/service-directory/Pshopping-cart".to_string(),
63                )),
64        )
65        .spec(
66            EntityV3ServiceSpec::new()
67                .component_of(vec![])
68                .depends_on(vec![])
69                .languages(vec![]),
70        ),
71    ))));
72    let configuration = datadog::Configuration::new();
73    let api = SoftwareCatalogAPI::with_config(configuration);
74    let resp = api.upsert_catalog_entity(body).await;
75    if let Ok(value) = resp {
76        println!("{:#?}", value);
77    } else {
78        println!("{:#?}", resp.unwrap_err());
79    }
80}
Source

pub fn performance_data(self, value: EntityV3DatadogPerformance) -> Self

Examples found in repository?
examples/v2_software-catalog_UpsertCatalogEntity_586948155.rs (line 50)
25async fn main() {
26    let body = UpsertCatalogEntityRequest::EntityV3(Box::new(EntityV3::EntityV3Service(Box::new(
27        EntityV3Service::new(
28            EntityV3APIVersion::V3,
29            EntityV3ServiceKind::SERVICE,
30            EntityV3Metadata::new("service-examplesoftwarecatalog".to_string())
31                .additional_owners(vec![])
32                .contacts(vec![EntityV3MetadataContactsItems::new(
33                    "https://slack/".to_string(),
34                    "slack".to_string(),
35                )])
36                .id("4b163705-23c0-4573-b2fb-f6cea2163fcb".to_string())
37                .inherit_from("application:default/myapp".to_string())
38                .links(vec![EntityV3MetadataLinksItems::new(
39                    "mylink".to_string(),
40                    "link".to_string(),
41                    "https://mylink".to_string(),
42                )])
43                .tags(vec!["this:tag".to_string(), "that:tag".to_string()]),
44        )
45        .datadog(
46            EntityV3ServiceDatadog::new()
47                .code_locations(vec![EntityV3DatadogCodeLocationItem::new().paths(vec![])])
48                .events(vec![EntityV3DatadogEventItem::new()])
49                .logs(vec![EntityV3DatadogLogItem::new()])
50                .performance_data(EntityV3DatadogPerformance::new().tags(vec![]))
51                .pipelines(EntityV3DatadogPipelines::new().fingerprints(vec![])),
52        )
53        .integrations(
54            EntityV3Integrations::new()
55                .opsgenie(EntityV3DatadogIntegrationOpsgenie::new(
56                    "https://www.opsgenie.com/service/shopping-cart".to_string(),
57                ))
58                .pagerduty(EntityV3DatadogIntegrationPagerduty::new(
59                    "https://www.pagerduty.com/service-directory/Pshopping-cart".to_string(),
60                )),
61        )
62        .spec(
63            EntityV3ServiceSpec::new()
64                .depends_on(vec![])
65                .languages(vec![]),
66        ),
67    ))));
68    let configuration = datadog::Configuration::new();
69    let api = SoftwareCatalogAPI::with_config(configuration);
70    let resp = api.upsert_catalog_entity(body).await;
71    if let Ok(value) = resp {
72        println!("{:#?}", value);
73    } else {
74        println!("{:#?}", resp.unwrap_err());
75    }
76}
More examples
Hide additional examples
examples/v2_software-catalog_UpsertCatalogEntity.rs (line 53)
25async fn main() {
26    let body = UpsertCatalogEntityRequest::EntityV3(Box::new(EntityV3::EntityV3Service(Box::new(
27        EntityV3Service::new(
28            EntityV3APIVersion::V3,
29            EntityV3ServiceKind::SERVICE,
30            EntityV3Metadata::new("myService".to_string())
31                .additional_owners(vec![EntityV3MetadataAdditionalOwnersItems::new(
32                    "".to_string(),
33                )])
34                .contacts(vec![EntityV3MetadataContactsItems::new(
35                    "https://slack/".to_string(),
36                    "slack".to_string(),
37                )])
38                .id("4b163705-23c0-4573-b2fb-f6cea2163fcb".to_string())
39                .inherit_from("application:default/myapp".to_string())
40                .links(vec![EntityV3MetadataLinksItems::new(
41                    "mylink".to_string(),
42                    "link".to_string(),
43                    "https://mylink".to_string(),
44                )])
45                .namespace("default".to_string())
46                .tags(vec!["this:tag".to_string(), "that:tag".to_string()]),
47        )
48        .datadog(
49            EntityV3ServiceDatadog::new()
50                .code_locations(vec![EntityV3DatadogCodeLocationItem::new().paths(vec![])])
51                .events(vec![EntityV3DatadogEventItem::new()])
52                .logs(vec![EntityV3DatadogLogItem::new()])
53                .performance_data(EntityV3DatadogPerformance::new().tags(vec![]))
54                .pipelines(EntityV3DatadogPipelines::new().fingerprints(vec![])),
55        )
56        .integrations(
57            EntityV3Integrations::new()
58                .opsgenie(EntityV3DatadogIntegrationOpsgenie::new(
59                    "https://www.opsgenie.com/service/shopping-cart".to_string(),
60                ))
61                .pagerduty(EntityV3DatadogIntegrationPagerduty::new(
62                    "https://www.pagerduty.com/service-directory/Pshopping-cart".to_string(),
63                )),
64        )
65        .spec(
66            EntityV3ServiceSpec::new()
67                .component_of(vec![])
68                .depends_on(vec![])
69                .languages(vec![]),
70        ),
71    ))));
72    let configuration = datadog::Configuration::new();
73    let api = SoftwareCatalogAPI::with_config(configuration);
74    let resp = api.upsert_catalog_entity(body).await;
75    if let Ok(value) = resp {
76        println!("{:#?}", value);
77    } else {
78        println!("{:#?}", resp.unwrap_err());
79    }
80}
Source

pub fn pipelines(self, value: EntityV3DatadogPipelines) -> Self

Examples found in repository?
examples/v2_software-catalog_UpsertCatalogEntity_586948155.rs (line 51)
25async fn main() {
26    let body = UpsertCatalogEntityRequest::EntityV3(Box::new(EntityV3::EntityV3Service(Box::new(
27        EntityV3Service::new(
28            EntityV3APIVersion::V3,
29            EntityV3ServiceKind::SERVICE,
30            EntityV3Metadata::new("service-examplesoftwarecatalog".to_string())
31                .additional_owners(vec![])
32                .contacts(vec![EntityV3MetadataContactsItems::new(
33                    "https://slack/".to_string(),
34                    "slack".to_string(),
35                )])
36                .id("4b163705-23c0-4573-b2fb-f6cea2163fcb".to_string())
37                .inherit_from("application:default/myapp".to_string())
38                .links(vec![EntityV3MetadataLinksItems::new(
39                    "mylink".to_string(),
40                    "link".to_string(),
41                    "https://mylink".to_string(),
42                )])
43                .tags(vec!["this:tag".to_string(), "that:tag".to_string()]),
44        )
45        .datadog(
46            EntityV3ServiceDatadog::new()
47                .code_locations(vec![EntityV3DatadogCodeLocationItem::new().paths(vec![])])
48                .events(vec![EntityV3DatadogEventItem::new()])
49                .logs(vec![EntityV3DatadogLogItem::new()])
50                .performance_data(EntityV3DatadogPerformance::new().tags(vec![]))
51                .pipelines(EntityV3DatadogPipelines::new().fingerprints(vec![])),
52        )
53        .integrations(
54            EntityV3Integrations::new()
55                .opsgenie(EntityV3DatadogIntegrationOpsgenie::new(
56                    "https://www.opsgenie.com/service/shopping-cart".to_string(),
57                ))
58                .pagerduty(EntityV3DatadogIntegrationPagerduty::new(
59                    "https://www.pagerduty.com/service-directory/Pshopping-cart".to_string(),
60                )),
61        )
62        .spec(
63            EntityV3ServiceSpec::new()
64                .depends_on(vec![])
65                .languages(vec![]),
66        ),
67    ))));
68    let configuration = datadog::Configuration::new();
69    let api = SoftwareCatalogAPI::with_config(configuration);
70    let resp = api.upsert_catalog_entity(body).await;
71    if let Ok(value) = resp {
72        println!("{:#?}", value);
73    } else {
74        println!("{:#?}", resp.unwrap_err());
75    }
76}
More examples
Hide additional examples
examples/v2_software-catalog_UpsertCatalogEntity.rs (line 54)
25async fn main() {
26    let body = UpsertCatalogEntityRequest::EntityV3(Box::new(EntityV3::EntityV3Service(Box::new(
27        EntityV3Service::new(
28            EntityV3APIVersion::V3,
29            EntityV3ServiceKind::SERVICE,
30            EntityV3Metadata::new("myService".to_string())
31                .additional_owners(vec![EntityV3MetadataAdditionalOwnersItems::new(
32                    "".to_string(),
33                )])
34                .contacts(vec![EntityV3MetadataContactsItems::new(
35                    "https://slack/".to_string(),
36                    "slack".to_string(),
37                )])
38                .id("4b163705-23c0-4573-b2fb-f6cea2163fcb".to_string())
39                .inherit_from("application:default/myapp".to_string())
40                .links(vec![EntityV3MetadataLinksItems::new(
41                    "mylink".to_string(),
42                    "link".to_string(),
43                    "https://mylink".to_string(),
44                )])
45                .namespace("default".to_string())
46                .tags(vec!["this:tag".to_string(), "that:tag".to_string()]),
47        )
48        .datadog(
49            EntityV3ServiceDatadog::new()
50                .code_locations(vec![EntityV3DatadogCodeLocationItem::new().paths(vec![])])
51                .events(vec![EntityV3DatadogEventItem::new()])
52                .logs(vec![EntityV3DatadogLogItem::new()])
53                .performance_data(EntityV3DatadogPerformance::new().tags(vec![]))
54                .pipelines(EntityV3DatadogPipelines::new().fingerprints(vec![])),
55        )
56        .integrations(
57            EntityV3Integrations::new()
58                .opsgenie(EntityV3DatadogIntegrationOpsgenie::new(
59                    "https://www.opsgenie.com/service/shopping-cart".to_string(),
60                ))
61                .pagerduty(EntityV3DatadogIntegrationPagerduty::new(
62                    "https://www.pagerduty.com/service-directory/Pshopping-cart".to_string(),
63                )),
64        )
65        .spec(
66            EntityV3ServiceSpec::new()
67                .component_of(vec![])
68                .depends_on(vec![])
69                .languages(vec![]),
70        ),
71    ))));
72    let configuration = datadog::Configuration::new();
73    let api = SoftwareCatalogAPI::with_config(configuration);
74    let resp = api.upsert_catalog_entity(body).await;
75    if let Ok(value) = resp {
76        println!("{:#?}", value);
77    } else {
78        println!("{:#?}", resp.unwrap_err());
79    }
80}

Trait Implementations§

Source§

impl Clone for EntityV3ServiceDatadog

Source§

fn clone(&self) -> EntityV3ServiceDatadog

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EntityV3ServiceDatadog

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for EntityV3ServiceDatadog

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for EntityV3ServiceDatadog

Source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for EntityV3ServiceDatadog

Source§

fn eq(&self, other: &EntityV3ServiceDatadog) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for EntityV3ServiceDatadog

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for EntityV3ServiceDatadog

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,