小编eri*_*rol的帖子

对于指标警报类型,搜索查询应包含“AggregatedValue”和“bin(timestamp, [roundTo])”

我正在尝试根据 Application Insights 日志中的某些指标创建自定义指标警报。以下是我正在使用的查询;

let start = customEvents
| where customDimensions.configName == "configName" 
| where name == "name"
| extend timestamp, correlationId = tostring(customDimensions.correlationId), configName = tostring(customDimensions.configName);

let ending = customEvents
| where customDimensions.configName == configName" 
| where name == "anotherName" 
| where customDimensions.taskName == "taskName" 
| extend timestamp, correlationId = tostring(customDimensions.correlationId), configName = tostring(customDimensions.configName), name= name, nameTimeStamp= timestamp ;


let timeDiffs = start
| join (ending) on correlationId
| extend timeDiff = nameTimeStamp- timestamp
| project timeDiff, timestamp, nameTimeStamp, …
Run Code Online (Sandbox Code Playgroud)

azure azure-application-insights azure-devops

8
推荐指数
1
解决办法
3419
查看次数

如何更改 Azure Application Insights 的保留期限?

目前大部分数据默认保留 90 天。我想知道是否有办法将此设置更改为 30-40 天。我知道我可以导出它们以保留更长的数据,但我正在寻找的主要是为即将到来的法规保留更短的数据。

azure azure-application-insights

7
推荐指数
2
解决办法
3848
查看次数

Magento getModel('catalog/product') - > getCollection(),addAttributeToSelect('*')没有返回描述

我有以下代码从magento获取所有产品数据,但它没有返回我的描述字段.我只是得到了short_description.实际上,除了描述之外,它缺少了几个字段.无论如何这里是代码:

$collection = Mage::getModel('catalog/product')->getCollection()
            ->joinField(
                    'qty', 'cataloginventory/stock_item', 'qty', 'product_id=entity_id', '{{table}}.stock_id=1', 'left'
            )
            ->addAttributeToFilter('status', 1) // enabled
            ->addUrlRewrite()
            ->addPriceData()
            ->addStoreFilter($store_id)
            ->addAttributeToSelect('*');
    Mage::getSingleton('catalog/product_status')->addSaleableFilterToCollection($collection);
    Mage::getSingleton('cataloginventory/stock')->addInStockFilterToCollection($collection);
    $collection->setOrder('sku', 'desc');
Run Code Online (Sandbox Code Playgroud)

这会在我var_dump时创建以下查询:

SELECT 1 AS `status`, `e`.`entity_id`, `e`.`type_id`, `e`.`attribute_set_id`, `at_qty`.`qty`, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `e`.`entity_id`, `e`.`attribute_set_id`, `e`.`type_id`, `e`.`allow_open_amount`, `e`.`cost`, `e`.`created_at`, `e`.`email_template`, `e`.`enable_googlecheckout`, `e`.`giftcard_amounts`, `e`.`giftcard_type`, `e`.`gift_message_available`, `e`.`gift_wrapping_available`, `e`.`gift_wrapping_price`, `e`.`has_options`, `e`.`image_label`, `e`.`is_recurring`, `e`.`is_redeemable`, `e`.`lifetime`, `e`.`links_exist`, `e`.`links_purchased_separately`, `e`.`links_title`, `e`.`msrp`, `e`.`msrp_display_actual_price_type`, `e`.`msrp_enabled`, `e`.`name`, `e`.`news_from_date`, `e`.`news_to_date`, `e`.`open_amount_max`, `e`.`open_amount_min`, `e`.`price`, `e`.`price_type`, `e`.`price_view`, …
Run Code Online (Sandbox Code Playgroud)

php magento

4
推荐指数
1
解决办法
3万
查看次数

向触发的 Azure webjos 发送多个参数

我正在尝试在触发时向 azure webjob 发送多个参数。根据这个https://github.com/projectkudu/kudu/wiki/WebJobs-API#invoke-a-triggered-job

我可以这样称呼它: POST /api/triggeredwebjobs/{job name}/run?arguments={arguments}

我尝试了几种方法来添加多个参数,例如:

?arguments=1&arguments=2
?arguments[]=1&arguments[]=2
?arguments[0]=1&arguments[1]=2
?arguments={1,2}
Run Code Online (Sandbox Code Playgroud)

等等,我尝试了一些更愚蠢的东西,也尝试使用表单数据。似乎都没有工作。我的网络作业只接受第一个参数。例如,当我这样做时:

static void Main(string[] args)
{
        Console.WriteLine(args[0]);
        Console.WriteLine(args[1]);
}
Run Code Online (Sandbox Code Playgroud)

第一个适用于上述示例,但随后我收到第二行的异常,表示索引超出范围。有没有办法用多个参数触发 webjob,如果是这样,我该如何实现?

.net c# azure azure-webjobs

3
推荐指数
2
解决办法
1181
查看次数

Azure功能不会超过设置值超时

我已经看到Azure功能将超时时间增加到10分钟,而默认值仍然是5分钟.

我的host.json

{
  "queues": {
  "maxPollingInterval": 2000,
  "visibilityTimeout": "00:00:30",
  "batchSize": 16,
  "maxDequeueCount": 3,
  "newBatchThreshold": 8,
  "functionTimeout": "00:10:00"
 }
}
Run Code Online (Sandbox Code Playgroud)

我可以在门户网站中看到超时值为10分钟,虽然它没有从我在本地Visual Studio中的host.json中提取它,所以我在门户网站中手动设置它.

但是,任何通过5分钟的工作都会超时.我似乎无法找到任何信息,除了它应该工作.

timeout azure azure-functions

0
推荐指数
1
解决办法
113
查看次数